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