KubeZero/charts/kubeadm/templates/InitConfiguration.yaml

24 lines
695 B
YAML
Raw Normal View History

2022-04-08 15:09:40 +00:00
apiVersion: kubeadm.k8s.io/v1beta3
2021-01-03 15:33:13 +00:00
kind: InitConfiguration
localAPIEndpoint:
advertiseAddress: {{ .Values.listenAddress }}
2021-05-28 15:16:36 +00:00
bindPort: {{ .Values.api.listenPort }}
2022-04-08 15:09:40 +00:00
patches:
directory: /tmp/patches
2021-01-03 15:33:13 +00:00
nodeRegistration:
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 15:16:36 +00:00
- KubeletVersion
2021-01-03 15:33:13 +00:00
kubeletExtraArgs:
node-labels: {{ .Values.nodeLabels | quote }}
2021-06-29 15:39:44 +00:00
{{- with .Values.providerID }}
provider-id: {{ . }}
{{- end }}
{{- if ne .Values.listenAddress "0.0.0.0" }}
node-ip: {{ .Values.listenAddress }}
{{- end }}