Update documentation for Cluster-API and Flux
[icn.git] / deploy / cluster / templates / machinedeployment.yaml
1 ---
2 apiVersion: cluster.x-k8s.io/v1alpha4
3 kind: MachineDeployment
4 metadata:
5   labels:
6     cluster.x-k8s.io/cluster-name: {{ .Values.clusterName }}
7   name: {{ .Values.clusterName }}
8 spec:
9   clusterName: {{ .Values.clusterName }}
10   replicas: {{ .Values.numWorkerMachines }}
11   selector:
12     matchLabels:
13       cluster.x-k8s.io/cluster-name: {{ .Values.clusterName }}
14   template:
15     metadata:
16       labels:
17         cluster.x-k8s.io/cluster-name: {{ .Values.clusterName }}
18     spec:
19       bootstrap:
20         configRef:
21           apiVersion: bootstrap.cluster.x-k8s.io/v1alpha4
22           kind: KubeadmConfigTemplate
23           name: {{ .Values.clusterName }}-workers
24       clusterName: {{ .Values.clusterName }}
25       infrastructureRef:
26         apiVersion: infrastructure.cluster.x-k8s.io/v1alpha5
27         kind: Metal3MachineTemplate
28         name: {{ .Values.clusterName }}-workers
29       nodeDrainTimeout: 0s
30       version: {{ .Values.k8sVersion }}