a20eb0b4ba
* Below manifests integrates capd to v1alpha4 * Cluster templates updated to v1alpha4 Closes: #647 Change-Id: I53f25cb2dd1eeed901d8582ddb873f0894bc45b9
51 lines
1.7 KiB
YAML
51 lines
1.7 KiB
YAML
---
|
|
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
|
|
kind: DockerMachineTemplate
|
|
metadata:
|
|
name: "target-cluster-control-plane"
|
|
spec:
|
|
template:
|
|
spec:
|
|
extraMounts:
|
|
- containerPath: "/var/run/docker.sock"
|
|
hostPath: "/var/run/docker.sock"
|
|
---
|
|
apiVersion: controlplane.cluster.x-k8s.io/v1alpha4
|
|
kind: KubeadmControlPlane
|
|
metadata:
|
|
name: "target-cluster-control-plane"
|
|
spec:
|
|
replicas: ${ CONTROL_PLANE_MACHINE_COUNT }
|
|
version: v1.21.2
|
|
machineTemplate:
|
|
infrastructureRef:
|
|
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
|
|
kind: DockerMachineTemplate
|
|
name: "target-cluster-control-plane"
|
|
kubeadmConfigSpec:
|
|
clusterConfiguration:
|
|
apiServer:
|
|
certSANs:
|
|
- localhost
|
|
- 127.0.0.1
|
|
- 0.0.0.0
|
|
controllerManager:
|
|
extraArgs:
|
|
enable-hostpath-provisioner: "true"
|
|
initConfiguration:
|
|
nodeRegistration:
|
|
criSocket: /var/run/containerd/containerd.sock
|
|
kubeletExtraArgs:
|
|
# We have to pin the cgroupDriver to cgroupfs as kubeadm >=1.21 defaults to systemd
|
|
# kind will implement systemd support in: https://github.com/kubernetes-sigs/kind/issues/1726
|
|
cgroup-driver: cgroupfs
|
|
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
|
|
joinConfiguration:
|
|
nodeRegistration:
|
|
criSocket: /var/run/containerd/containerd.sock
|
|
kubeletExtraArgs:
|
|
# We have to pin the cgroupDriver to cgroupfs as kubeadm >=1.21 defaults to systemd
|
|
# kind will implement systemd support in: https://github.com/kubernetes-sigs/kind/issues/1726
|
|
cgroup-driver: cgroupfs
|
|
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
|