sigs.k8s.io/cluster-api-provider-azure@v1.17.0/templates/test/ci/cluster-template-prow-azure-cni-v1.yaml (about) 1 apiVersion: cluster.x-k8s.io/v1beta1 2 kind: Cluster 3 metadata: 4 labels: 5 cloud-provider: ${CLOUD_PROVIDER_AZURE_LABEL:=azure} 6 name: ${CLUSTER_NAME} 7 namespace: default 8 spec: 9 clusterNetwork: 10 pods: 11 cidrBlocks: 12 - 192.168.0.0/16 13 controlPlaneRef: 14 apiVersion: controlplane.cluster.x-k8s.io/v1beta1 15 kind: KubeadmControlPlane 16 name: ${CLUSTER_NAME}-control-plane 17 infrastructureRef: 18 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 19 kind: AzureCluster 20 name: ${CLUSTER_NAME} 21 --- 22 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 23 kind: AzureCluster 24 metadata: 25 name: ${CLUSTER_NAME} 26 namespace: default 27 spec: 28 additionalTags: 29 buildProvenance: ${BUILD_PROVENANCE} 30 creationTimestamp: ${TIMESTAMP} 31 jobName: ${JOB_NAME} 32 identityRef: 33 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 34 kind: AzureClusterIdentity 35 name: ${CLUSTER_IDENTITY_NAME} 36 location: ${AZURE_LOCATION} 37 networkSpec: 38 subnets: 39 - name: control-plane-subnet 40 role: control-plane 41 - name: node-subnet 42 role: node 43 vnet: 44 name: ${AZURE_VNET_NAME:=${CLUSTER_NAME}-vnet} 45 resourceGroup: ${AZURE_RESOURCE_GROUP:=${CLUSTER_NAME}} 46 subscriptionID: ${AZURE_SUBSCRIPTION_ID} 47 --- 48 apiVersion: controlplane.cluster.x-k8s.io/v1beta1 49 kind: KubeadmControlPlane 50 metadata: 51 name: ${CLUSTER_NAME}-control-plane 52 namespace: default 53 spec: 54 kubeadmConfigSpec: 55 clusterConfiguration: 56 apiServer: 57 extraArgs: 58 cloud-provider: external 59 timeoutForControlPlane: 20m 60 controllerManager: 61 extraArgs: 62 allocate-node-cidrs: "false" 63 cloud-provider: external 64 cluster-name: ${CLUSTER_NAME} 65 v: "4" 66 etcd: 67 local: 68 dataDir: /var/lib/etcddisk/etcd 69 extraArgs: 70 quota-backend-bytes: "8589934592" 71 diskSetup: 72 filesystems: 73 - device: /dev/disk/azure/scsi1/lun0 74 extraOpts: 75 - -E 76 - lazy_itable_init=1,lazy_journal_init=1 77 filesystem: ext4 78 label: etcd_disk 79 - device: ephemeral0.1 80 filesystem: ext4 81 label: ephemeral0 82 replaceFS: ntfs 83 partitions: 84 - device: /dev/disk/azure/scsi1/lun0 85 layout: true 86 overwrite: false 87 tableType: gpt 88 files: 89 - contentFrom: 90 secret: 91 key: control-plane-azure.json 92 name: ${CLUSTER_NAME}-control-plane-azure-json 93 owner: root:root 94 path: /etc/kubernetes/azure.json 95 permissions: "0644" 96 initConfiguration: 97 nodeRegistration: 98 kubeletExtraArgs: 99 cloud-provider: external 100 max-pods: "110" 101 name: '{{ ds.meta_data["local_hostname"] }}' 102 joinConfiguration: 103 nodeRegistration: 104 kubeletExtraArgs: 105 cloud-provider: external 106 max-pods: "110" 107 name: '{{ ds.meta_data["local_hostname"] }}' 108 mounts: 109 - - LABEL=etcd_disk 110 - /var/lib/etcddisk 111 postKubeadmCommands: [] 112 preKubeadmCommands: [] 113 machineTemplate: 114 infrastructureRef: 115 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 116 kind: AzureMachineTemplate 117 name: ${CLUSTER_NAME}-control-plane 118 replicas: ${CONTROL_PLANE_MACHINE_COUNT:=1} 119 version: ${KUBERNETES_VERSION} 120 --- 121 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 122 kind: AzureMachineTemplate 123 metadata: 124 name: ${CLUSTER_NAME}-control-plane 125 namespace: default 126 spec: 127 template: 128 spec: 129 dataDisks: 130 - diskSizeGB: 256 131 lun: 0 132 nameSuffix: etcddisk 133 identity: UserAssigned 134 networkInterfaces: 135 - privateIPConfigs: 110 136 subnetName: control-plane-subnet 137 osDisk: 138 diskSizeGB: 128 139 osType: Linux 140 sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""} 141 userAssignedIdentities: 142 - providerID: /subscriptions/${AZURE_SUBSCRIPTION_ID}/resourceGroups/${CI_RG:=capz-ci}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/${USER_IDENTITY:=cloud-provider-user-identity} 143 vmSize: ${AZURE_CONTROL_PLANE_MACHINE_TYPE} 144 --- 145 apiVersion: cluster.x-k8s.io/v1beta1 146 kind: MachineDeployment 147 metadata: 148 name: ${CLUSTER_NAME}-md-0 149 namespace: default 150 spec: 151 clusterName: ${CLUSTER_NAME} 152 replicas: ${WORKER_MACHINE_COUNT:=2} 153 selector: 154 matchLabels: null 155 template: 156 spec: 157 bootstrap: 158 configRef: 159 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 160 kind: KubeadmConfigTemplate 161 name: ${CLUSTER_NAME}-md-0 162 clusterName: ${CLUSTER_NAME} 163 infrastructureRef: 164 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 165 kind: AzureMachineTemplate 166 name: ${CLUSTER_NAME}-md-0 167 version: ${KUBERNETES_VERSION} 168 --- 169 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 170 kind: AzureMachineTemplate 171 metadata: 172 name: ${CLUSTER_NAME}-md-0 173 namespace: default 174 spec: 175 template: 176 spec: 177 networkInterfaces: 178 - privateIPConfigs: 110 179 subnetName: node-subnet 180 osDisk: 181 diskSizeGB: 128 182 osType: Linux 183 sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""} 184 vmSize: ${AZURE_NODE_MACHINE_TYPE} 185 --- 186 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 187 kind: KubeadmConfigTemplate 188 metadata: 189 name: ${CLUSTER_NAME}-md-0 190 namespace: default 191 spec: 192 template: 193 spec: 194 files: 195 - contentFrom: 196 secret: 197 key: worker-node-azure.json 198 name: ${CLUSTER_NAME}-md-0-azure-json 199 owner: root:root 200 path: /etc/kubernetes/azure.json 201 permissions: "0644" 202 joinConfiguration: 203 nodeRegistration: 204 kubeletExtraArgs: 205 cloud-provider: external 206 max-pods: "110" 207 name: '{{ ds.meta_data["local_hostname"] }}' 208 preKubeadmCommands: [] 209 --- 210 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 211 kind: AzureClusterIdentity 212 metadata: 213 labels: 214 clusterctl.cluster.x-k8s.io/move-hierarchy: "true" 215 name: ${CLUSTER_IDENTITY_NAME} 216 namespace: default 217 spec: 218 allowedNamespaces: {} 219 clientID: ${AZURE_CLIENT_ID_USER_ASSIGNED_IDENTITY} 220 tenantID: ${AZURE_TENANT_ID} 221 type: ${CLUSTER_IDENTITY_TYPE:=WorkloadIdentity} 222 --- 223 apiVersion: addons.cluster.x-k8s.io/v1alpha1 224 kind: HelmChartProxy 225 metadata: 226 name: azuredisk-csi-driver-chart 227 namespace: default 228 spec: 229 chartName: azuredisk-csi-driver 230 clusterSelector: 231 matchLabels: 232 azuredisk-csi: "true" 233 namespace: kube-system 234 releaseName: azuredisk-csi-driver-oot 235 repoURL: https://raw.githubusercontent.com/kubernetes-sigs/azuredisk-csi-driver/master/charts 236 valuesTemplate: |- 237 controller: 238 replicas: 1 239 runOnControlPlane: true 240 windows: 241 useHostProcessContainers: {{ hasKey .Cluster.metadata.labels "cni-windows" }} 242 --- 243 apiVersion: addons.cluster.x-k8s.io/v1alpha1 244 kind: HelmChartProxy 245 metadata: 246 name: cloud-provider-azure-chart 247 namespace: default 248 spec: 249 chartName: cloud-provider-azure 250 clusterSelector: 251 matchLabels: 252 cloud-provider: azure 253 releaseName: cloud-provider-azure-oot 254 repoURL: https://raw.githubusercontent.com/kubernetes-sigs/cloud-provider-azure/master/helm/repo 255 valuesTemplate: | 256 infra: 257 clusterName: {{ .Cluster.metadata.name }} 258 cloudControllerManager: 259 clusterCIDR: {{ .Cluster.spec.clusterNetwork.pods.cidrBlocks | join "," }} 260 logVerbosity: 4 261 --- 262 apiVersion: addons.cluster.x-k8s.io/v1alpha1 263 kind: HelmChartProxy 264 metadata: 265 name: cloud-provider-azure-chart-ci 266 namespace: default 267 spec: 268 chartName: cloud-provider-azure 269 clusterSelector: 270 matchLabels: 271 cloud-provider: azure-ci 272 releaseName: cloud-provider-azure-oot 273 repoURL: https://raw.githubusercontent.com/kubernetes-sigs/cloud-provider-azure/master/helm/repo 274 valuesTemplate: | 275 infra: 276 clusterName: {{ .Cluster.metadata.name }} 277 cloudControllerManager: 278 cloudConfig: ${CLOUD_CONFIG:-"/etc/kubernetes/azure.json"} 279 cloudConfigSecretName: ${CONFIG_SECRET_NAME:-""} 280 clusterCIDR: {{ .Cluster.spec.clusterNetwork.pods.cidrBlocks | join "," }} 281 imageName: "${CCM_IMAGE_NAME:-""}" 282 imageRepository: "${IMAGE_REGISTRY:-""}" 283 imageTag: "${IMAGE_TAG_CCM:-""}" 284 logVerbosity: ${CCM_LOG_VERBOSITY:-4} 285 replicas: ${CCM_COUNT:-1} 286 enableDynamicReloading: ${ENABLE_DYNAMIC_RELOADING:-false} 287 cloudNodeManager: 288 imageName: "${CNM_IMAGE_NAME:-""}" 289 imageRepository: "${IMAGE_REGISTRY:-""}" 290 imageTag: "${IMAGE_TAG_CNM:-""}"