KubeZero/charts/kubeadm/templates/InitConfiguration.yaml

27 lines
783 B
YAML
Raw Normal View History

2022-04-08 17:09:40 +02:00
apiVersion: kubeadm.k8s.io/v1beta3
2021-01-03 16:33:13 +01:00
kind: InitConfiguration
localAPIEndpoint:
advertiseAddress: {{ .Values.listenAddress }}
2021-05-28 17:16:36 +02:00
bindPort: {{ .Values.api.listenPort }}
2024-10-16 12:20:20 +01:00
{{- with .Values.patches }}
2022-04-08 17:09:40 +02:00
patches:
2024-10-16 12:20:20 +01:00
directory: {{ . }}
{{- end }}
2021-01-03 16:33:13 +01:00
nodeRegistration:
criSocket: "unix:///run/containerd/containerd.sock"
2021-01-03 16:33:13 +01:00
ignorePreflightErrors:
- DirAvailable--var-lib-etcd
- DirAvailable--etc-kubernetes-manifests
- FileAvailable--etc-kubernetes-pki-ca.crt
- FileAvailable--etc-kubernetes-manifests-etcd.yaml
- Swap
2021-05-28 17:16:36 +02:00
- KubeletVersion
2021-01-03 16:33:13 +01:00
kubeletExtraArgs:
node-labels: {{ .Values.nodeLabels | quote }}
2021-06-29 17:39:44 +02:00
{{- with .Values.providerID }}
provider-id: {{ . }}
{{- end }}
{{- if ne .Values.listenAddress "0.0.0.0" }}
node-ip: {{ .Values.listenAddress }}
{{- end }}