sigs.k8s.io/cluster-api-provider-azure@v1.14.3/templates/cluster-template-aks-clusterclass.yaml (about) 1 apiVersion: cluster.x-k8s.io/v1beta1 2 kind: ClusterClass 3 metadata: 4 name: ${CLUSTER_CLASS_NAME} 5 namespace: default 6 spec: 7 controlPlane: 8 ref: 9 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 10 kind: AzureManagedControlPlaneTemplate 11 name: ${CLUSTER_NAME}-control-plane 12 infrastructure: 13 ref: 14 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 15 kind: AzureManagedClusterTemplate 16 name: ${CLUSTER_NAME} 17 workers: 18 machinePools: 19 - class: default-system 20 template: 21 bootstrap: 22 ref: 23 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 24 kind: KubeadmConfigTemplate 25 name: ${CLUSTER_NAME}-pool0 26 infrastructure: 27 ref: 28 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 29 kind: AzureManagedMachinePoolTemplate 30 name: ${CLUSTER_NAME}-pool0 31 - class: default-worker 32 template: 33 bootstrap: 34 ref: 35 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 36 kind: KubeadmConfigTemplate 37 name: ${CLUSTER_NAME}-pool1 38 infrastructure: 39 ref: 40 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 41 kind: AzureManagedMachinePoolTemplate 42 name: ${CLUSTER_NAME}-pool1 43 --- 44 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 45 kind: AzureManagedControlPlaneTemplate 46 metadata: 47 name: ${CLUSTER_NAME}-control-plane 48 namespace: default 49 spec: 50 template: 51 spec: 52 identityRef: 53 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 54 kind: AzureClusterIdentity 55 name: ${CLUSTER_IDENTITY_NAME} 56 location: ${AZURE_LOCATION} 57 subscriptionID: ${AZURE_SUBSCRIPTION_ID} 58 version: ${KUBERNETES_VERSION} 59 --- 60 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 61 kind: AzureManagedClusterTemplate 62 metadata: 63 name: ${CLUSTER_NAME} 64 namespace: default 65 spec: 66 template: 67 spec: {} 68 --- 69 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 70 kind: AzureManagedMachinePoolTemplate 71 metadata: 72 name: ${CLUSTER_NAME}-pool0 73 namespace: default 74 spec: 75 template: 76 spec: 77 mode: System 78 name: pool0 79 sku: ${AZURE_NODE_MACHINE_TYPE} 80 --- 81 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 82 kind: AzureManagedMachinePoolTemplate 83 metadata: 84 name: ${CLUSTER_NAME}-pool1 85 namespace: default 86 spec: 87 template: 88 spec: 89 mode: User 90 name: pool1 91 sku: ${AZURE_NODE_MACHINE_TYPE} 92 --- 93 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 94 kind: AzureClusterIdentity 95 metadata: 96 labels: 97 clusterctl.cluster.x-k8s.io/move-hierarchy: "true" 98 name: ${CLUSTER_IDENTITY_NAME} 99 namespace: default 100 spec: 101 allowedNamespaces: {} 102 clientID: ${AZURE_CLIENT_ID} 103 clientSecret: 104 name: ${AZURE_CLUSTER_IDENTITY_SECRET_NAME} 105 namespace: ${AZURE_CLUSTER_IDENTITY_SECRET_NAMESPACE} 106 tenantID: ${AZURE_TENANT_ID} 107 type: ServicePrincipal 108 --- 109 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 110 kind: KubeadmConfigTemplate 111 metadata: 112 name: ${CLUSTER_NAME}-pool0 113 namespace: default 114 spec: 115 template: 116 spec: {} 117 --- 118 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 119 kind: KubeadmConfigTemplate 120 metadata: 121 name: ${CLUSTER_NAME}-pool1 122 namespace: default 123 spec: 124 template: 125 spec: {}