d0683139fe
This commit integrates the Azure provider to the Airship 2.0 project. It adds the following folders: - manifest/function/capz: This folder contains all manifests required for the integration of Azure provider. - manifest/function/k8scontrol-capz: This folder contains the base manifest for the Azure Workload cluster. - manifest/site/az-test-site: This folder contains the manifests used for initializing the CAPI and CAPZ components on the management cluster invoking "airshipctl cluster init" and manifests used for deploying a Workload cluster on the Azure Cloud by invoking the command "airshipctl phase apply azure". - tools/deployment/azure: provides the script shell that are used in the zuul gates and local test. Updated files: - zuul.d/project.yaml and zuul.d/jobs.yaml have been updated to include gates for validating the Azure provider integration. Change-Id: Icbdc7f6f42c159f48dd11e35626da3bc016f5487
100 lines
2.8 KiB
YAML
100 lines
2.8 KiB
YAML
apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
|
|
kind: KubeadmControlPlane
|
|
metadata:
|
|
name: az-workload-cluster-control-plane
|
|
namespace: default
|
|
spec:
|
|
infrastructureTemplate:
|
|
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
|
|
kind: AzureMachineTemplate
|
|
name: az-workload-cluster-control-plane
|
|
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: az-workload-cluster
|
|
extraVolumes:
|
|
- hostPath: /etc/kubernetes/azure.json
|
|
mountPath: /etc/kubernetes/azure.json
|
|
name: cloud-config
|
|
readOnly: true
|
|
etcd:
|
|
local:
|
|
dataDir: /var/lib/etcddisk/etcd
|
|
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: azure.json
|
|
name: az-workload-cluster-control-plane-azure-json
|
|
owner: root:root
|
|
path: /etc/kubernetes/azure.json
|
|
permissions: "0644"
|
|
initConfiguration:
|
|
nodeRegistration:
|
|
kubeletExtraArgs:
|
|
cloud-config: /etc/kubernetes/azure.json
|
|
cloud-provider: azure
|
|
name: '{{ ds.meta_data["local_hostname"] }}'
|
|
joinConfiguration:
|
|
nodeRegistration:
|
|
kubeletExtraArgs:
|
|
cloud-config: /etc/kubernetes/azure.json
|
|
cloud-provider: azure
|
|
name: '{{ ds.meta_data["local_hostname"] }}'
|
|
mounts:
|
|
- - LABEL=etcd_disk
|
|
- /var/lib/etcddisk
|
|
useExperimentalRetryJoin: true
|
|
replicas: 3
|
|
version: v1.18.2
|
|
---
|
|
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
|
|
kind: AzureMachineTemplate
|
|
metadata:
|
|
name: az-workload-cluster-control-plane
|
|
namespace: default
|
|
spec:
|
|
template:
|
|
spec:
|
|
dataDisks:
|
|
- diskSizeGB: 256
|
|
lun: 0
|
|
nameSuffix: etcddisk
|
|
location: centralus
|
|
osDisk:
|
|
diskSizeGB: 128
|
|
managedDisk:
|
|
storageAccountType: Premium_LRS
|
|
osType: Linux
|
|
sshPublicKey: ""
|
|
vmSize: Standard_D2s_v3 |