sigs.k8s.io/cluster-api-provider-azure@v1.14.3/test/e2e/data/infrastructure-azure/v1beta1/cluster-template.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 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 replicas: ${CONTROL_PLANE_MACHINE_COUNT} 242 version: ${KUBERNETES_VERSION} 243 --- 244 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 245 kind: AzureCluster 246 metadata: 247 name: ${CLUSTER_NAME} 248 spec: 249 additionalTags: 250 creationTimestamp: ${TIMESTAMP} 251 jobName: ${JOB_NAME} 252 identityRef: 253 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 254 kind: AzureClusterIdentity 255 name: ${CLUSTER_IDENTITY_NAME} 256 location: ${AZURE_LOCATION} 257 networkSpec: 258 vnet: 259 name: ${AZURE_VNET_NAME:=${CLUSTER_NAME}-vnet} 260 resourceGroup: ${AZURE_RESOURCE_GROUP:=${CLUSTER_NAME}} 261 subscriptionID: ${AZURE_SUBSCRIPTION_ID} 262 --- 263 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 264 kind: AzureClusterIdentity 265 metadata: 266 labels: 267 clusterctl.cluster.x-k8s.io/move-hierarchy: "true" 268 name: ${CLUSTER_IDENTITY_NAME} 269 spec: 270 allowedNamespaces: {} 271 clientID: ${AZURE_CLIENT_ID} 272 clientSecret: 273 name: ${AZURE_CLUSTER_IDENTITY_SECRET_NAME} 274 namespace: ${AZURE_CLUSTER_IDENTITY_SECRET_NAMESPACE} 275 tenantID: ${AZURE_TENANT_ID} 276 type: ServicePrincipal 277 --- 278 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 279 kind: AzureMachineTemplate 280 metadata: 281 name: ${CLUSTER_NAME}-control-plane 282 namespace: default 283 spec: 284 template: 285 spec: 286 dataDisks: 287 - diskSizeGB: 256 288 lun: 0 289 nameSuffix: etcddisk 290 osDisk: 291 diskSizeGB: 128 292 osType: Linux 293 sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""} 294 vmSize: ${AZURE_CONTROL_PLANE_MACHINE_TYPE} 295 --- 296 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 297 kind: AzureMachineTemplate 298 metadata: 299 name: ${CLUSTER_NAME}-md-0 300 namespace: default 301 spec: 302 template: 303 spec: 304 osDisk: 305 diskSizeGB: 128 306 managedDisk: 307 storageAccountType: Premium_LRS 308 osType: Linux 309 sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""} 310 vmSize: ${AZURE_NODE_MACHINE_TYPE}