Set up the dev environment in your local machine following setup dev environment.
Install application manager addon on the hub cluster
kubectl config use kind-hub
clusteradm install hub-addon --names application-manager
Install application manager agent on all the managed clusters
clusteradm addon enable --names application-manager --cluster cluster1,cluster2
You will see that all agents is available after waiting a while
$ kubectl get managedclusteraddon --all-namespaces
NAMESPACE NAME AVAILABLE DEGRADED PROGRESSING
cluster1 application-manager True
cluster2 application-manager True
Run ./deploy.sh
to deploy the helm chart on cluster1
It will create a channel which specifies a helm repo, a placement
to select one or multiple clusters, and a subscription to deploy the helm chart. Try
update placement
to see how the chart deployment is changed.