Files
open-cluster-management/solutions/deploy-a-helm-chart/README.md
xuezhaojun a27dd5c4bf Move back origin ocm files.
Signed-off-by: xuezhaojun <zxue@redhat.com>
2023-05-25 12:41:56 +08:00

1.1 KiB

Deploy a Helm Chart

Prerequisite

Set up the dev environment in your local machine following setup dev environment.

Install application addon on OCM

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 --name 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

Deploy a helm chart to cluster1

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.