c50775039e41762acec7a3c4cb6d884dd59b4492
[icn.git] / deploy / cluster / templates / cluster.yaml
1 ---
2 apiVersion: cluster.x-k8s.io/v1alpha4
3 kind: Cluster
4 metadata:
5   labels:
6     cluster.x-k8s.io/cluster-name: {{ .Values.clusterName }}
7     {{- toYaml .Values.clusterLabels | nindent 4 }}
8   name: {{ .Values.clusterName }}
9 spec:
10   clusterNetwork:
11     pods:
12       cidrBlocks:
13       - {{ .Values.podCidr }}
14     services:
15       cidrBlocks:
16       - 10.244.0.0/18
17   controlPlaneRef:
18     apiVersion: controlplane.cluster.x-k8s.io/v1alpha4
19     kind: KubeadmControlPlane
20     name: {{ .Values.clusterName }}
21   infrastructureRef:
22     apiVersion: infrastructure.cluster.x-k8s.io/v1alpha5
23     kind: Metal3Cluster
24     name: {{ .Values.clusterName }}