630464bb8d
Change target cluster name from gtc to target-cluster for CAPG provider Relates-To: #426 Change-Id: I0e694cfae1957a84b668cd36f344dd7c2d00db3d
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
apiVersion: cluster.x-k8s.io/v1alpha3
|
|
kind: MachineDeployment
|
|
metadata:
|
|
name: "target-cluster-md-0"
|
|
namespace: default
|
|
spec:
|
|
clusterName: "target-cluster"
|
|
replicas: "${WORKER_MACHINE_COUNT}"
|
|
selector:
|
|
matchLabels:
|
|
template:
|
|
spec:
|
|
clusterName: "target-cluster"
|
|
failureDomain: "${GCP_REGION}"
|
|
version: "v1.17.14"
|
|
bootstrap:
|
|
configRef:
|
|
name: "target-cluster-md-0"
|
|
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
|
|
kind: KubeadmConfigTemplate
|
|
infrastructureRef:
|
|
name: "target-cluster-md-0"
|
|
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
|
|
kind: GCPMachineTemplate
|
|
---
|
|
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
|
|
kind: GCPMachineTemplate
|
|
metadata:
|
|
name: "target-cluster-md-0"
|
|
namespace: default
|
|
spec:
|
|
template:
|
|
spec:
|
|
instanceType: "${GCP_NODE_MACHINE_TYPE}"
|
|
---
|
|
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
|
|
kind: KubeadmConfigTemplate
|
|
metadata:
|
|
name: "target-cluster-md-0"
|
|
namespace: default
|
|
spec:
|
|
template:
|
|
spec:
|
|
joinConfiguration:
|
|
nodeRegistration:
|
|
name: '{{ ds.meta_data.local_hostname.split(".")[0] }}'
|
|
kubeletExtraArgs:
|
|
cloud-provider: gce
|