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