This Helm chart is used to deploy a CAPZ Managed Cluster to a Cluster API Management Cluster.
Create a Kubernetes cluster with a resource like kind and install the Cluster API Provider Azure (CAPZ) components with
clusterctl init --infrastructure azure
helm repo add capi https://mboersma.github.io/cluster-api-charts
Create a values.yaml
to specify credentials and other values for the CAPZ Managed Cluster Helm Chart. It can look like the following:
subscriptionID: <subscription-id>
identity:
clientID: <client-id>
tenantID: <tenant-id>
type: WorkloadIdentity
cluster:
location: eastus
cidrBlocks:
- 192.168.0.0/16
controlplane:
sshPublicKey: <ssh-public-key>
networkPolicy: "calico"
networkPlugin: "kubenet"
networkPluginMode: null
helm install <name> capi/azure-managed-cluster -f values.yaml
helm uninstall <name>
Note: Uninstall currently is bugged as it fails with Error: failed to delete release
.
Note: the AzureClusterIdentity and cluster identity secret are not deleted when the chart is uninstalled since deleting them would remove the credentials needed to delete the Azure resources.