012a4f27de
Change target cluster name for capd provider from "dtc" to "target-cluster" target cluster name changed at below entrypoints: - manifests/function/k8scontrol-capd - manifests/function/workers-capd - manifests/site/docker-test-site Change-Id: I72adeaf80a0d098d18e4334b02511d9917fe77b2
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
---
|
|
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
|
|
kind: DockerMachineTemplate
|
|
metadata:
|
|
name: "target-cluster-md-0"
|
|
spec:
|
|
template:
|
|
spec:
|
|
extraMounts:
|
|
- containerPath: "/var/run/docker.sock"
|
|
hostPath: "/var/run/docker.sock"
|
|
---
|
|
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
|
|
kind: KubeadmConfigTemplate
|
|
metadata:
|
|
name: "target-cluster-md-0"
|
|
spec:
|
|
template:
|
|
spec:
|
|
joinConfiguration:
|
|
nodeRegistration:
|
|
criSocket: /var/run/containerd/containerd.sock
|
|
kubeletExtraArgs: {eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'}
|
|
---
|
|
apiVersion: cluster.x-k8s.io/v1alpha3
|
|
kind: MachineDeployment
|
|
metadata:
|
|
name: "target-cluster-md-0"
|
|
spec:
|
|
clusterName: "target-cluster"
|
|
replicas: ${ WORKER_MACHINE_COUNT }
|
|
selector:
|
|
matchLabels:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
"nodepool": "pool1"
|
|
spec:
|
|
clusterName: "target-cluster"
|
|
version: "v1.18.6"
|
|
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: DockerMachineTemplate
|