![Shiba, Sidney](/assets/img/avatar_default.png)
This patchset provides the manifests supporting CAPZ v0.5.2. It requires CAPI v1alpha4 (v0.4.2) manifests and clusterctl v0.4.2 binary to work properly. Depends-on: https://review.opendev.org/c/airship/airshipctl/+/804834 Relates-to: #600 Change-Id: Icccaf84d8765c75fb19bb2be352086cc33647f30
105 lines
2.9 KiB
YAML
105 lines
2.9 KiB
YAML
---
|
|
apiVersion: controlplane.cluster.x-k8s.io/v1alpha4
|
|
kind: KubeadmControlPlane
|
|
metadata:
|
|
name: target-cluster-control-plane
|
|
namespace: default
|
|
spec:
|
|
kubeadmConfigSpec:
|
|
clusterConfiguration:
|
|
apiServer:
|
|
extraArgs:
|
|
cloud-config: /etc/kubernetes/azure.json
|
|
cloud-provider: azure
|
|
extraVolumes:
|
|
- hostPath: /etc/kubernetes/azure.json
|
|
mountPath: /etc/kubernetes/azure.json
|
|
name: cloud-config
|
|
readOnly: true
|
|
timeoutForControlPlane: 20m
|
|
controllerManager:
|
|
extraArgs:
|
|
allocate-node-cidrs: "false"
|
|
cloud-config: /etc/kubernetes/azure.json
|
|
cloud-provider: azure
|
|
cluster-name: target-cluster
|
|
extraVolumes:
|
|
- hostPath: /etc/kubernetes/azure.json
|
|
mountPath: /etc/kubernetes/azure.json
|
|
name: cloud-config
|
|
readOnly: true
|
|
etcd:
|
|
local:
|
|
dataDir: /var/lib/etcddisk/etcd
|
|
extraArgs:
|
|
quota-backend-bytes: "8589934592"
|
|
diskSetup:
|
|
filesystems:
|
|
- device: /dev/disk/azure/scsi1/lun0
|
|
extraOpts:
|
|
- -E
|
|
- lazy_itable_init=1,lazy_journal_init=1
|
|
filesystem: ext4
|
|
label: etcd_disk
|
|
- device: ephemeral0.1
|
|
filesystem: ext4
|
|
label: ephemeral0
|
|
replaceFS: ntfs
|
|
partitions:
|
|
- device: /dev/disk/azure/scsi1/lun0
|
|
layout: true
|
|
overwrite: false
|
|
tableType: gpt
|
|
files:
|
|
- contentFrom:
|
|
secret:
|
|
key: control-plane-azure.json
|
|
name: target-cluster-control-plane-azure-json
|
|
owner: root:root
|
|
path: /etc/kubernetes/azure.json
|
|
permissions: "0644"
|
|
initConfiguration:
|
|
nodeRegistration:
|
|
kubeletExtraArgs:
|
|
azure-container-registry-config: /etc/kubernetes/azure.json
|
|
cloud-config: /etc/kubernetes/azure.json
|
|
cloud-provider: azure
|
|
name: '{{ ds.meta_data["local_hostname"] }}'
|
|
joinConfiguration:
|
|
nodeRegistration:
|
|
kubeletExtraArgs:
|
|
azure-container-registry-config: /etc/kubernetes/azure.json
|
|
cloud-config: /etc/kubernetes/azure.json
|
|
cloud-provider: azure
|
|
name: '{{ ds.meta_data["local_hostname"] }}'
|
|
mounts:
|
|
- - LABEL=etcd_disk
|
|
- /var/lib/etcddisk
|
|
postKubeadmCommands: []
|
|
preKubeadmCommands: []
|
|
machineTemplate:
|
|
infrastructureRef:
|
|
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
|
|
kind: AzureMachineTemplate
|
|
name: target-cluster-control-plane
|
|
replicas: 1
|
|
version: v1.21.1
|
|
---
|
|
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
|
|
kind: AzureMachineTemplate
|
|
metadata:
|
|
name: target-cluster-control-plane
|
|
namespace: default
|
|
spec:
|
|
template:
|
|
spec:
|
|
dataDisks:
|
|
- diskSizeGB: 256
|
|
lun: 0
|
|
nameSuffix: etcddisk
|
|
osDisk:
|
|
diskSizeGB: 128
|
|
osType: Linux
|
|
sshPublicKey: ""
|
|
vmSize: Standard_D2s_v3
|