|
| 1 | +apiVersion: cluster.x-k8s.io/v1alpha4 |
| 2 | +kind: Cluster |
| 3 | +metadata: |
| 4 | + labels: |
| 5 | + cni: calico |
| 6 | + name: azuretar-reactor-1 |
| 7 | + namespace: default |
| 8 | +spec: |
| 9 | + clusterNetwork: |
| 10 | + pods: |
| 11 | + cidrBlocks: |
| 12 | + - 192.168.0.0/16 |
| 13 | + controlPlaneRef: |
| 14 | + apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 |
| 15 | + kind: KubeadmControlPlane |
| 16 | + name: azuretar-reactor-1-control-plane |
| 17 | + infrastructureRef: |
| 18 | + apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4 |
| 19 | + kind: AzureCluster |
| 20 | + name: azuretar-reactor-1 |
| 21 | +--- |
| 22 | +apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4 |
| 23 | +kind: AzureCluster |
| 24 | +metadata: |
| 25 | + name: azuretar-reactor-1 |
| 26 | + namespace: default |
| 27 | +spec: |
| 28 | + identityRef: |
| 29 | + apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4 |
| 30 | + kind: AzureClusterIdentity |
| 31 | + name: cluster-identity |
| 32 | + location: eastus |
| 33 | + networkSpec: |
| 34 | + vnet: |
| 35 | + name: azuretar-reactor-1-vnet |
| 36 | + cidrBlocks: |
| 37 | + - 10.0.0.0/16 |
| 38 | + subnets: |
| 39 | + - name: azuretar-reactor-1-subnet-cp |
| 40 | + role: control-plane |
| 41 | + cidrBlocks: |
| 42 | + - 10.0.1.0/24 |
| 43 | + securityGroup: |
| 44 | + name: azuretar-reactor-1-controlplane-nsg |
| 45 | + securityRules: |
| 46 | + - name: "allow_apiserver" |
| 47 | + description: "Allow K8s API Server" |
| 48 | + direction: "Inbound" |
| 49 | + priority: 2202 |
| 50 | + protocol: "*" |
| 51 | + destination: "*" |
| 52 | + destinationPorts: "6443" |
| 53 | + source: "*" |
| 54 | + sourcePorts: "*" |
| 55 | + - name: azuretar-reactor-1-subnet-node |
| 56 | + role: node |
| 57 | + cidrBlocks: |
| 58 | + - 10.0.2.0/24 |
| 59 | + resourceGroup: azuretar-reactor-1 |
| 60 | + subscriptionID: 9daa1df0-9df4-4afc-88d0-544a7f4e3cb9 |
| 61 | +--- |
| 62 | +apiVersion: controlplane.cluster.x-k8s.io/v1alpha4 |
| 63 | +kind: KubeadmControlPlane |
| 64 | +metadata: |
| 65 | + name: azuretar-reactor-1-control-plane |
| 66 | + namespace: default |
| 67 | +spec: |
| 68 | + kubeadmConfigSpec: |
| 69 | + clusterConfiguration: |
| 70 | + apiServer: |
| 71 | + extraArgs: |
| 72 | + audit-log-maxage: "30" |
| 73 | + audit-log-maxbackup: "10" |
| 74 | + audit-log-maxsize: "100" |
| 75 | + audit-log-path: /var/log/kube-apiserver/audit.log |
| 76 | + audit-policy-file: /etc/kubernetes/audit.yaml |
| 77 | + cloud-config: /etc/kubernetes/azure.json |
| 78 | + cloud-provider: azure |
| 79 | + extraVolumes: |
| 80 | + - hostPath: /var/log/kube-apiserver |
| 81 | + mountPath: /var/log/kube-apiserver |
| 82 | + name: kubeaudit |
| 83 | + - hostPath: /etc/kubernetes/audit.yaml |
| 84 | + mountPath: /etc/kubernetes/audit.yaml |
| 85 | + name: audit-policy |
| 86 | + readOnly: true |
| 87 | + - hostPath: /etc/kubernetes/azure.json |
| 88 | + mountPath: /etc/kubernetes/azure.json |
| 89 | + name: cloud-config |
| 90 | + readOnly: true |
| 91 | + timeoutForControlPlane: 20m |
| 92 | + controllerManager: |
| 93 | + extraArgs: |
| 94 | + allocate-node-cidrs: "false" |
| 95 | + cloud-config: /etc/kubernetes/azure.json |
| 96 | + cloud-provider: azure |
| 97 | + cluster-name: azuretar-reactor-1 |
| 98 | + extraVolumes: |
| 99 | + - hostPath: /etc/kubernetes/azure.json |
| 100 | + mountPath: /etc/kubernetes/azure.json |
| 101 | + name: cloud-config |
| 102 | + readOnly: true |
| 103 | + etcd: |
| 104 | + local: |
| 105 | + dataDir: /var/lib/etcddisk/etcd |
| 106 | + extraArgs: |
| 107 | + quota-backend-bytes: "8589934592" |
| 108 | + diskSetup: |
| 109 | + filesystems: |
| 110 | + - device: /dev/disk/azure/scsi1/lun0 |
| 111 | + extraOpts: |
| 112 | + - -E |
| 113 | + - lazy_itable_init=1,lazy_journal_init=1 |
| 114 | + filesystem: ext4 |
| 115 | + label: etcd_disk |
| 116 | + - device: ephemeral0.1 |
| 117 | + filesystem: ext4 |
| 118 | + label: ephemeral0 |
| 119 | + replaceFS: ntfs |
| 120 | + partitions: |
| 121 | + - device: /dev/disk/azure/scsi1/lun0 |
| 122 | + layout: true |
| 123 | + overwrite: false |
| 124 | + tableType: gpt |
| 125 | + files: |
| 126 | + - contentFrom: |
| 127 | + secret: |
| 128 | + key: control-plane-azure.json |
| 129 | + name: azuretar-reactor-1-control-plane-azure-json |
| 130 | + owner: root:root |
| 131 | + path: /etc/kubernetes/azure.json |
| 132 | + permissions: "0644" |
| 133 | + - contentFrom: |
| 134 | + secret: |
| 135 | + key: audit.yaml |
| 136 | + name: audit |
| 137 | + owner: root:root |
| 138 | + path: /etc/kubernetes/audit.yaml |
| 139 | + permissions: "0644" |
| 140 | + initConfiguration: |
| 141 | + nodeRegistration: |
| 142 | + kubeletExtraArgs: |
| 143 | + azure-container-registry-config: /etc/kubernetes/azure.json |
| 144 | + cloud-config: /etc/kubernetes/azure.json |
| 145 | + cloud-provider: azure |
| 146 | + name: '{{ ds.meta_data["local_hostname"] }}' |
| 147 | + joinConfiguration: |
| 148 | + nodeRegistration: |
| 149 | + kubeletExtraArgs: |
| 150 | + azure-container-registry-config: /etc/kubernetes/azure.json |
| 151 | + cloud-config: /etc/kubernetes/azure.json |
| 152 | + cloud-provider: azure |
| 153 | + name: '{{ ds.meta_data["local_hostname"] }}' |
| 154 | + mounts: |
| 155 | + - - LABEL=etcd_disk |
| 156 | + - /var/lib/etcddisk |
| 157 | + postKubeadmCommands: [] |
| 158 | + preKubeadmCommands: [] |
| 159 | + machineTemplate: |
| 160 | + infrastructureRef: |
| 161 | + apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4 |
| 162 | + kind: AzureMachineTemplate |
| 163 | + name: azuretar-reactor-1-control-plane |
| 164 | + replicas: 1 |
| 165 | + version: v1.20.10 |
| 166 | +--- |
| 167 | +apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4 |
| 168 | +kind: AzureMachineTemplate |
| 169 | +metadata: |
| 170 | + name: azuretar-reactor-1-control-plane |
| 171 | + namespace: default |
| 172 | +spec: |
| 173 | + template: |
| 174 | + spec: |
| 175 | + dataDisks: |
| 176 | + - diskSizeGB: 256 |
| 177 | + lun: 0 |
| 178 | + nameSuffix: etcddisk |
| 179 | + osDisk: |
| 180 | + diskSizeGB: 128 |
| 181 | + osType: Linux |
| 182 | + sshPublicKey: "" |
| 183 | + vmSize: Standard_D2s_v3 |
| 184 | +--- |
| 185 | +apiVersion: cluster.x-k8s.io/v1alpha4 |
| 186 | +kind: MachineDeployment |
| 187 | +metadata: |
| 188 | + name: azuretar-reactor-1-md-0 |
| 189 | + namespace: default |
| 190 | +spec: |
| 191 | + clusterName: azuretar-reactor-1 |
| 192 | + replicas: 1 |
| 193 | + selector: |
| 194 | + matchLabels: null |
| 195 | + template: |
| 196 | + spec: |
| 197 | + bootstrap: |
| 198 | + configRef: |
| 199 | + apiVersion: bootstrap.cluster.x-k8s.io/v1alpha4 |
| 200 | + kind: KubeadmConfigTemplate |
| 201 | + name: azuretar-reactor-1-md-0 |
| 202 | + clusterName: azuretar-reactor-1 |
| 203 | + infrastructureRef: |
| 204 | + apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4 |
| 205 | + kind: AzureMachineTemplate |
| 206 | + name: azuretar-reactor-1-md-0 |
| 207 | + version: v1.20.10 |
| 208 | +--- |
| 209 | +apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4 |
| 210 | +kind: AzureMachineTemplate |
| 211 | +metadata: |
| 212 | + name: azuretar-reactor-1-md-0 |
| 213 | + namespace: default |
| 214 | +spec: |
| 215 | + template: |
| 216 | + spec: |
| 217 | + osDisk: |
| 218 | + diskSizeGB: 128 |
| 219 | + osType: Linux |
| 220 | + sshPublicKey: "" |
| 221 | + vmSize: Standard_D2s_v3 |
| 222 | +--- |
| 223 | +apiVersion: bootstrap.cluster.x-k8s.io/v1alpha4 |
| 224 | +kind: KubeadmConfigTemplate |
| 225 | +metadata: |
| 226 | + name: azuretar-reactor-1-md-0 |
| 227 | + namespace: default |
| 228 | +spec: |
| 229 | + template: |
| 230 | + spec: |
| 231 | + files: |
| 232 | + - contentFrom: |
| 233 | + secret: |
| 234 | + key: worker-node-azure.json |
| 235 | + name: azuretar-reactor-1-md-0-azure-json |
| 236 | + owner: root:root |
| 237 | + path: /etc/kubernetes/azure.json |
| 238 | + permissions: "0644" |
| 239 | + joinConfiguration: |
| 240 | + nodeRegistration: |
| 241 | + kubeletExtraArgs: |
| 242 | + azure-container-registry-config: /etc/kubernetes/azure.json |
| 243 | + cloud-config: /etc/kubernetes/azure.json |
| 244 | + cloud-provider: azure |
| 245 | + name: '{{ ds.meta_data["local_hostname"] }}' |
| 246 | + preKubeadmCommands: [] |
| 247 | +--- |
| 248 | +apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4 |
| 249 | +kind: AzureClusterIdentity |
| 250 | +metadata: |
| 251 | + labels: |
| 252 | + clusterctl.cluster.x-k8s.io/move-hierarchy: "true" |
| 253 | + name: cluster-identity |
| 254 | + namespace: default |
| 255 | +spec: |
| 256 | + allowedNamespaces: {} |
| 257 | + clientID: 7472d9ca-3081-48eb-9976-73cd7e288e33 |
| 258 | + clientSecret: |
| 259 | + name: cluster-identity-secret |
| 260 | + namespace: default |
| 261 | + tenantID: 72f988bf-86f1-41af-91ab-2d7cd011db47 |
| 262 | + type: ServicePrincipal |
0 commit comments