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