Change target cluster name for CAPG provider

Change target cluster name from gtc to target-cluster for
CAPG provider

Relates-To: #426

Change-Id: I0e694cfae1957a84b668cd36f344dd7c2d00db3d
This commit is contained in:
Ratnopam Chakrabarti 2020-11-29 16:09:13 -05:00
parent e187740af8
commit 630464bb8d
3 changed files with 16 additions and 18 deletions

View File

@ -2,7 +2,7 @@
apiVersion: cluster.x-k8s.io/v1alpha3 apiVersion: cluster.x-k8s.io/v1alpha3
kind: Cluster kind: Cluster
metadata: metadata:
name: "gtc" name: "target-cluster"
namespace: default namespace: default
spec: spec:
clusterNetwork: clusterNetwork:
@ -11,16 +11,16 @@ spec:
infrastructureRef: infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: GCPCluster kind: GCPCluster
name: "gtc" name: "target-cluster"
controlPlaneRef: controlPlaneRef:
kind: KubeadmControlPlane kind: KubeadmControlPlane
apiVersion: controlplane.cluster.x-k8s.io/v1alpha3 apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
name: "gtc-control-plane" name: "target-cluster-control-plane"
--- ---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: GCPCluster kind: GCPCluster
metadata: metadata:
name: "gtc" name: "target-cluster"
namespace: default namespace: default
spec: spec:
project: "${GCP_PROJECT}" project: "${GCP_PROJECT}"

View File

@ -1,14 +1,14 @@
kind: KubeadmControlPlane kind: KubeadmControlPlane
apiVersion: controlplane.cluster.x-k8s.io/v1alpha3 apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
metadata: metadata:
name: "gtc-control-plane" name: "target-cluster-control-plane"
namespace: default namespace: default
spec: spec:
replicas: "${CONTROL_PLANE_MACHINE_COUNT}" replicas: "${CONTROL_PLANE_MACHINE_COUNT}"
infrastructureTemplate: infrastructureTemplate:
kind: GCPMachineTemplate kind: GCPMachineTemplate
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
name: "gtc-control-plane" name: "target-cluster-control-plane"
kubeadmConfigSpec: kubeadmConfigSpec:
initConfiguration: initConfiguration:
nodeRegistration: nodeRegistration:
@ -29,14 +29,12 @@ spec:
name: '{{ ds.meta_data.local_hostname.split(".")[0] }}' name: '{{ ds.meta_data.local_hostname.split(".")[0] }}'
kubeletExtraArgs: kubeletExtraArgs:
cloud-provider: gce cloud-provider: gce
postKubeadmCommands: version: "v1.17.14"
- sudo kubectl --kubeconfig /etc/kubernetes/admin.conf apply -f https://docs.projectcalico.org/v3.15/manifests/calico.yaml
version: "v1.16.14"
--- ---
kind: GCPMachineTemplate kind: GCPMachineTemplate
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
metadata: metadata:
name: "gtc-control-plane" name: "target-cluster-control-plane"
namespace: default namespace: default
spec: spec:
template: template:

View File

@ -1,32 +1,32 @@
apiVersion: cluster.x-k8s.io/v1alpha3 apiVersion: cluster.x-k8s.io/v1alpha3
kind: MachineDeployment kind: MachineDeployment
metadata: metadata:
name: "gtc-md-0" name: "target-cluster-md-0"
namespace: default namespace: default
spec: spec:
clusterName: "gtc" clusterName: "target-cluster"
replicas: "${WORKER_MACHINE_COUNT}" replicas: "${WORKER_MACHINE_COUNT}"
selector: selector:
matchLabels: matchLabels:
template: template:
spec: spec:
clusterName: "gtc" clusterName: "target-cluster"
failureDomain: "${GCP_REGION}" failureDomain: "${GCP_REGION}"
version: "v1.16.14" version: "v1.17.14"
bootstrap: bootstrap:
configRef: configRef:
name: "gtc-md-0" name: "target-cluster-md-0"
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3 apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
kind: KubeadmConfigTemplate kind: KubeadmConfigTemplate
infrastructureRef: infrastructureRef:
name: "gtc-md-0" name: "target-cluster-md-0"
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: GCPMachineTemplate kind: GCPMachineTemplate
--- ---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: GCPMachineTemplate kind: GCPMachineTemplate
metadata: metadata:
name: "gtc-md-0" name: "target-cluster-md-0"
namespace: default namespace: default
spec: spec:
template: template:
@ -36,7 +36,7 @@ spec:
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3 apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
kind: KubeadmConfigTemplate kind: KubeadmConfigTemplate
metadata: metadata:
name: "gtc-md-0" name: "target-cluster-md-0"
namespace: default namespace: default
spec: spec:
template: template: