airshipctl/manifests/function/workers-capd/workers.yaml
Snehal a20eb0b4ba Integrate CAPD
* Below manifests integrates capd to v1alpha4

* Cluster templates updated to v1alpha4

Closes: #647

Change-Id: I53f25cb2dd1eeed901d8582ddb873f0894bc45b9
2021-11-08 12:02:52 +00:00

45 lines
1.1 KiB
YAML

apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
kind: DockerMachineTemplate
metadata:
name: "target-cluster-md-0"
spec:
template:
spec: {}
---
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha4
kind: KubeadmConfigTemplate
metadata:
name: "target-cluster-md-0"
spec:
template:
spec:
joinConfiguration:
nodeRegistration:
kubeletExtraArgs:
cgroup-driver: cgroupfs
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
---
apiVersion: cluster.x-k8s.io/v1alpha4
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"
version: "v1.21.2"
bootstrap:
configRef:
name: "target-cluster-md-0"
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha4
kind: KubeadmConfigTemplate
infrastructureRef:
name: "target-cluster-md-0"
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
kind: DockerMachineTemplate