sigs.k8s.io/cluster-api-provider-azure@v1.14.3/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 template: 153 spec: 154 bootstrap: 155 configRef: 156 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 157 kind: KubeadmConfigTemplate 158 name: ${CLUSTER_NAME}-md-0 159 clusterName: ${CLUSTER_NAME} 160 infrastructureRef: 161 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 162 kind: AzureMachineTemplate 163 name: ${CLUSTER_NAME}-md-0 164 nodeDrainTimeout: ${NODE_DRAIN_TIMEOUT} 165 version: ${KUBERNETES_VERSION} 166 --- 167 apiVersion: controlplane.cluster.x-k8s.io/v1beta1 168 kind: KubeadmControlPlane 169 metadata: 170 labels: 171 cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME} 172 name: ${CLUSTER_NAME}-control-plane 173 spec: 174 kubeadmConfigSpec: 175 clusterConfiguration: 176 apiServer: 177 extraArgs: 178 cloud-provider: external 179 extraVolumes: 180 - hostPath: /etc/kubernetes/azure.json 181 mountPath: /etc/kubernetes/azure.json 182 name: cloud-config 183 readOnly: true 184 timeoutForControlPlane: 20m 185 controllerManager: 186 extraArgs: 187 allocate-node-cidrs: "false" 188 cloud-provider: external 189 cluster-name: ${CLUSTER_NAME} 190 extraVolumes: 191 - hostPath: /etc/kubernetes/azure.json 192 mountPath: /etc/kubernetes/azure.json 193 name: cloud-config 194 readOnly: true 195 etcd: 196 local: 197 dataDir: /var/lib/etcddisk/etcd 198 diskSetup: 199 filesystems: 200 - device: /dev/disk/azure/scsi1/lun0 201 extraOpts: 202 - -E 203 - lazy_itable_init=1,lazy_journal_init=1 204 filesystem: ext4 205 label: etcd_disk 206 - device: ephemeral0.1 207 filesystem: ext4 208 label: ephemeral0 209 replaceFS: ntfs 210 partitions: 211 - device: /dev/disk/azure/scsi1/lun0 212 layout: true 213 overwrite: false 214 tableType: gpt 215 files: 216 - contentFrom: 217 secret: 218 key: control-plane-azure.json 219 name: ${CLUSTER_NAME}-control-plane-azure-json 220 owner: root:root 221 path: /etc/kubernetes/azure.json 222 permissions: "0644" 223 initConfiguration: 224 nodeRegistration: 225 kubeletExtraArgs: 226 cloud-provider: external 227 name: '{{ ds.meta_data["local_hostname"] }}' 228 joinConfiguration: 229 nodeRegistration: 230 kubeletExtraArgs: 231 cloud-provider: external 232 name: '{{ ds.meta_data["local_hostname"] }}' 233 mounts: 234 - - LABEL=etcd_disk 235 - /var/lib/etcddisk 236 machineTemplate: 237 infrastructureRef: 238 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 239 kind: AzureMachineTemplate 240 name: ${CLUSTER_NAME}-control-plane 241 nodeDrainTimeout: ${NODE_DRAIN_TIMEOUT} 242 replicas: ${CONTROL_PLANE_MACHINE_COUNT} 243 version: ${KUBERNETES_VERSION} 244 --- 245 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 246 kind: AzureCluster 247 metadata: 248 name: ${CLUSTER_NAME} 249 spec: 250 additionalTags: 251 creationTimestamp: ${TIMESTAMP} 252 jobName: ${JOB_NAME} 253 identityRef: 254 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 255 kind: AzureClusterIdentity 256 name: ${CLUSTER_IDENTITY_NAME} 257 location: ${AZURE_LOCATION} 258 networkSpec: 259 vnet: 260 name: ${AZURE_VNET_NAME:=${CLUSTER_NAME}-vnet} 261 resourceGroup: ${AZURE_RESOURCE_GROUP:=${CLUSTER_NAME}} 262 subscriptionID: ${AZURE_SUBSCRIPTION_ID} 263 --- 264 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 265 kind: AzureClusterIdentity 266 metadata: 267 labels: 268 clusterctl.cluster.x-k8s.io/move-hierarchy: "true" 269 name: ${CLUSTER_IDENTITY_NAME} 270 spec: 271 allowedNamespaces: {} 272 clientID: ${AZURE_CLIENT_ID} 273 clientSecret: 274 name: ${AZURE_CLUSTER_IDENTITY_SECRET_NAME} 275 namespace: ${AZURE_CLUSTER_IDENTITY_SECRET_NAMESPACE} 276 tenantID: ${AZURE_TENANT_ID} 277 type: ServicePrincipal 278 --- 279 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 280 kind: AzureMachineTemplate 281 metadata: 282 name: ${CLUSTER_NAME}-control-plane 283 namespace: default 284 spec: 285 template: 286 spec: 287 dataDisks: 288 - diskSizeGB: 256 289 lun: 0 290 nameSuffix: etcddisk 291 osDisk: 292 diskSizeGB: 128 293 osType: Linux 294 sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""} 295 vmSize: ${AZURE_CONTROL_PLANE_MACHINE_TYPE} 296 --- 297 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 298 kind: AzureMachineTemplate 299 metadata: 300 name: ${CLUSTER_NAME}-md-0 301 namespace: default 302 spec: 303 template: 304 spec: 305 osDisk: 306 diskSizeGB: 128 307 managedDisk: 308 storageAccountType: Premium_LRS 309 osType: Linux 310 sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""} 311 vmSize: ${AZURE_NODE_MACHINE_TYPE}