sigs.k8s.io/cluster-api-provider-azure@v1.14.3/test/e2e/data/infrastructure-azure/v1beta1/bases/mp.yaml (about) 1 --- 2 # MachinePool which references the DockerMachinePool and KubeadmConfigTemplate below 3 apiVersion: cluster.x-k8s.io/v1beta1 4 kind: MachinePool 5 metadata: 6 name: ${CLUSTER_NAME}-mp-0 7 namespace: default 8 spec: 9 clusterName: ${CLUSTER_NAME} 10 replicas: ${WORKER_MACHINE_COUNT} 11 template: 12 spec: 13 bootstrap: 14 configRef: 15 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 16 kind: KubeadmConfig 17 name: ${CLUSTER_NAME}-mp-0 18 clusterName: ${CLUSTER_NAME} 19 infrastructureRef: 20 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 21 kind: AzureMachinePool 22 name: ${CLUSTER_NAME}-mp-0 23 version: ${KUBERNETES_VERSION} 24 --- 25 # AzureMachinePool using default values referenced by the MachinePool 26 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 27 kind: AzureMachinePool 28 metadata: 29 name: ${CLUSTER_NAME}-mp-0 30 namespace: default 31 spec: 32 identity: SystemAssigned 33 location: ${AZURE_LOCATION} 34 template: 35 osDisk: 36 diskSizeGB: 30 37 managedDisk: 38 storageAccountType: Premium_LRS 39 osType: Linux 40 sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""} 41 vmSize: ${AZURE_NODE_MACHINE_TYPE} 42 --- 43 # KubeadmConfigTemplate referenced by the MachinePool 44 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 45 kind: KubeadmConfig 46 metadata: 47 name: ${CLUSTER_NAME}-mp-0 48 namespace: default 49 spec: 50 files: 51 - contentFrom: 52 secret: 53 key: worker-node-azure.json 54 name: ${CLUSTER_NAME}-mp-0-azure-json 55 owner: root:root 56 path: /etc/kubernetes/azure.json 57 permissions: "0644" 58 joinConfiguration: 59 nodeRegistration: 60 kubeletExtraArgs: 61 cloud-provider: external 62 name: '{{ ds.meta_data["local_hostname"] }}'