Rishabh Kumar Jain 219b29f1a6 Integrate gcp provider (capg) with airshipctl
* add documentation for gcp provider (capg)
  * add manifests for gcp provider (capg)
  * add cluster templates for control plane and workers
  * add site definition to use gcp provider (capg) with
    control plane and workers

Zuul Gate Scripts: https://review.opendev.org/#/c/749165/
Change-Id: I3ea07fcafe49fc2698d9d961222550c45b40cd66
2020-10-13 17:34:33 +00:00

49 lines
1.1 KiB
YAML

apiVersion: cluster.x-k8s.io/v1alpha3
kind: MachineDeployment
metadata:
name: "gtc-md-0"
namespace: default
spec:
clusterName: "gtc"
replicas: "${WORKER_MACHINE_COUNT}"
selector:
matchLabels:
template:
spec:
clusterName: "gtc"
failureDomain: "${GCP_REGION}"
version: "v1.16.14"
bootstrap:
configRef:
name: "gtc-md-0"
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
kind: KubeadmConfigTemplate
infrastructureRef:
name: "gtc-md-0"
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: GCPMachineTemplate
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: GCPMachineTemplate
metadata:
name: "gtc-md-0"
namespace: default
spec:
template:
spec:
instanceType: "${GCP_NODE_MACHINE_TYPE}"
---
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
kind: KubeadmConfigTemplate
metadata:
name: "gtc-md-0"
namespace: default
spec:
template:
spec:
joinConfiguration:
nodeRegistration:
name: '{{ ds.meta_data.local_hostname.split(".")[0] }}'
kubeletExtraArgs:
cloud-provider: gce