--- apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3 kind: DockerMachineTemplate metadata: name: "target-cluster-control-plane" namespace: default spec: template: spec: extraMounts: - containerPath: "/var/run/docker.sock" hostPath: "/var/run/docker.sock" --- kind: KubeadmControlPlane apiVersion: controlplane.cluster.x-k8s.io/v1alpha3 metadata: name: "target-cluster-control-plane" namespace: default spec: replicas: ${ CONTROL_PLANE_MACHINE_COUNT } infrastructureTemplate: kind: DockerMachineTemplate apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3 name: "target-cluster-control-plane" namespace: default kubeadmConfigSpec: clusterConfiguration: controllerManager: extraArgs: {enable-hostpath-provisioner: 'true'} apiServer: certSANs: [localhost, 127.0.0.1] initConfiguration: nodeRegistration: criSocket: /var/run/containerd/containerd.sock kubeletExtraArgs: {eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'} joinConfiguration: nodeRegistration: criSocket: /var/run/containerd/containerd.sock kubeletExtraArgs: {eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'} version: "v1.18.6"