sigs.k8s.io/cluster-api-provider-azure@v1.14.3/test/e2e/data/infrastructure-azure/v1beta1/cluster-template-upgrades.yaml (about) 1 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 2 kind: KubeadmConfig 3 metadata: 4 name: ${CLUSTER_NAME}-mp-0 5 namespace: default 6 spec: 7 files: 8 - contentFrom: 9 secret: 10 key: worker-node-azure.json 11 name: ${CLUSTER_NAME}-mp-0-azure-json 12 owner: root:root 13 path: /etc/kubernetes/azure.json 14 permissions: "0644" 15 joinConfiguration: 16 nodeRegistration: 17 kubeletExtraArgs: 18 cloud-provider: external 19 name: '{{ ds.meta_data["local_hostname"] }}' 20 --- 21 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 22 kind: KubeadmConfigTemplate 23 metadata: 24 name: ${CLUSTER_NAME}-md-0 25 namespace: default 26 spec: 27 template: 28 spec: 29 files: 30 - contentFrom: 31 secret: 32 key: worker-node-azure.json 33 name: ${CLUSTER_NAME}-md-0-azure-json 34 owner: root:root 35 path: /etc/kubernetes/azure.json 36 permissions: "0644" 37 joinConfiguration: 38 nodeRegistration: 39 kubeletExtraArgs: 40 cloud-provider: external 41 name: '{{ ds.meta_data["local_hostname"] }}' 42 --- 43 apiVersion: cluster.x-k8s.io/v1beta1 44 kind: Cluster 45 metadata: 46 name: ${CLUSTER_NAME} 47 namespace: default 48 spec: 49 clusterNetwork: 50 pods: 51 cidrBlocks: 52 - 192.168.0.0/16 53 controlPlaneRef: 54 apiVersion: controlplane.cluster.x-k8s.io/v1beta1 55 kind: KubeadmControlPlane 56 name: ${CLUSTER_NAME}-control-plane 57 infrastructureRef: 58 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 59 kind: AzureCluster 60 name: ${CLUSTER_NAME} 61 --- 62 apiVersion: cluster.x-k8s.io/v1beta1 63 kind: MachineDeployment 64 metadata: 65 name: ${CLUSTER_NAME}-md-0 66 namespace: default 67 spec: 68 clusterName: ${CLUSTER_NAME} 69 replicas: ${WORKER_MACHINE_COUNT} 70 selector: 71 matchLabels: null 72 template: 73 spec: 74 bootstrap: 75 configRef: 76 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 77 kind: KubeadmConfigTemplate 78 name: ${CLUSTER_NAME}-md-0 79 clusterName: ${CLUSTER_NAME} 80 infrastructureRef: 81 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 82 kind: AzureMachineTemplate 83 name: ${CLUSTER_NAME}-md-0 84 version: ${KUBERNETES_VERSION} 85 --- 86 apiVersion: cluster.x-k8s.io/v1beta1 87 kind: MachinePool 88 metadata: 89 name: ${CLUSTER_NAME}-mp-0 90 namespace: default 91 spec: 92 clusterName: ${CLUSTER_NAME} 93 replicas: ${WORKER_MACHINE_COUNT} 94 template: 95 spec: 96 bootstrap: 97 configRef: 98 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 99 kind: KubeadmConfig 100 name: ${CLUSTER_NAME}-mp-0 101 clusterName: ${CLUSTER_NAME} 102 infrastructureRef: 103 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 104 kind: AzureMachinePool 105 name: ${CLUSTER_NAME}-mp-0 106 version: ${KUBERNETES_VERSION} 107 --- 108 apiVersion: controlplane.cluster.x-k8s.io/v1beta1 109 kind: KubeadmControlPlane 110 metadata: 111 labels: 112 cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME} 113 name: ${CLUSTER_NAME}-control-plane 114 spec: 115 kubeadmConfigSpec: 116 clusterConfiguration: 117 apiServer: 118 extraArgs: 119 cloud-provider: external 120 extraVolumes: 121 - hostPath: /etc/kubernetes/azure.json 122 mountPath: /etc/kubernetes/azure.json 123 name: cloud-config 124 readOnly: true 125 timeoutForControlPlane: 20m 126 controllerManager: 127 extraArgs: 128 allocate-node-cidrs: "false" 129 cloud-provider: external 130 cluster-name: ${CLUSTER_NAME} 131 extraVolumes: 132 - hostPath: /etc/kubernetes/azure.json 133 mountPath: /etc/kubernetes/azure.json 134 name: cloud-config 135 readOnly: true 136 etcd: 137 local: 138 dataDir: /var/lib/etcddisk/etcd 139 diskSetup: 140 filesystems: 141 - device: /dev/disk/azure/scsi1/lun0 142 extraOpts: 143 - -E 144 - lazy_itable_init=1,lazy_journal_init=1 145 filesystem: ext4 146 label: etcd_disk 147 - device: ephemeral0.1 148 filesystem: ext4 149 label: ephemeral0 150 replaceFS: ntfs 151 partitions: 152 - device: /dev/disk/azure/scsi1/lun0 153 layout: true 154 overwrite: false 155 tableType: gpt 156 files: 157 - contentFrom: 158 secret: 159 key: control-plane-azure.json 160 name: ${CLUSTER_NAME}-control-plane-azure-json 161 owner: root:root 162 path: /etc/kubernetes/azure.json 163 permissions: "0644" 164 initConfiguration: 165 nodeRegistration: 166 kubeletExtraArgs: 167 cloud-provider: external 168 name: '{{ ds.meta_data["local_hostname"] }}' 169 joinConfiguration: 170 nodeRegistration: 171 kubeletExtraArgs: 172 cloud-provider: external 173 name: '{{ ds.meta_data["local_hostname"] }}' 174 mounts: 175 - - LABEL=etcd_disk 176 - /var/lib/etcddisk 177 machineTemplate: 178 infrastructureRef: 179 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 180 kind: AzureMachineTemplate 181 name: ${CLUSTER_NAME}-control-plane 182 replicas: ${CONTROL_PLANE_MACHINE_COUNT} 183 version: ${KUBERNETES_VERSION} 184 --- 185 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 186 kind: AzureCluster 187 metadata: 188 name: ${CLUSTER_NAME} 189 spec: 190 additionalTags: 191 creationTimestamp: ${TIMESTAMP} 192 jobName: ${JOB_NAME} 193 identityRef: 194 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 195 kind: AzureClusterIdentity 196 name: ${CLUSTER_IDENTITY_NAME} 197 location: ${AZURE_LOCATION} 198 networkSpec: 199 vnet: 200 name: ${AZURE_VNET_NAME:=${CLUSTER_NAME}-vnet} 201 resourceGroup: ${AZURE_RESOURCE_GROUP:=${CLUSTER_NAME}} 202 subscriptionID: ${AZURE_SUBSCRIPTION_ID} 203 --- 204 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 205 kind: AzureClusterIdentity 206 metadata: 207 labels: 208 clusterctl.cluster.x-k8s.io/move-hierarchy: "true" 209 name: ${CLUSTER_IDENTITY_NAME} 210 spec: 211 allowedNamespaces: {} 212 clientID: ${AZURE_CLIENT_ID} 213 clientSecret: 214 name: ${AZURE_CLUSTER_IDENTITY_SECRET_NAME} 215 namespace: ${AZURE_CLUSTER_IDENTITY_SECRET_NAMESPACE} 216 tenantID: ${AZURE_TENANT_ID} 217 type: ServicePrincipal 218 --- 219 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 220 kind: AzureMachinePool 221 metadata: 222 name: ${CLUSTER_NAME}-mp-0 223 namespace: default 224 spec: 225 identity: SystemAssigned 226 location: ${AZURE_LOCATION} 227 template: 228 osDisk: 229 diskSizeGB: 30 230 managedDisk: 231 storageAccountType: Premium_LRS 232 osType: Linux 233 sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""} 234 vmSize: ${AZURE_NODE_MACHINE_TYPE} 235 --- 236 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 237 kind: AzureMachineTemplate 238 metadata: 239 name: ${CLUSTER_NAME}-control-plane 240 namespace: default 241 spec: 242 template: 243 spec: 244 dataDisks: 245 - diskSizeGB: 256 246 lun: 0 247 nameSuffix: etcddisk 248 osDisk: 249 diskSizeGB: 128 250 osType: Linux 251 sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""} 252 vmSize: ${AZURE_CONTROL_PLANE_MACHINE_TYPE} 253 --- 254 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 255 kind: AzureMachineTemplate 256 metadata: 257 name: ${CLUSTER_NAME}-md-0 258 namespace: default 259 spec: 260 template: 261 spec: 262 osDisk: 263 diskSizeGB: 128 264 managedDisk: 265 storageAccountType: Premium_LRS 266 osType: Linux 267 sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""} 268 vmSize: ${AZURE_NODE_MACHINE_TYPE}