Skip to content

Latest commit

 

History

History
 
 

deploy-a-helm-chart

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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

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.