KubeZero/charts/kubeadm/templates/JoinConfiguration.yaml

24 lines
637 B
YAML
Raw Normal View History

2021-01-03 15:33:13 +00:00
apiVersion: kubeadm.k8s.io/v1beta2
kind: JoinConfiguration
discovery:
file:
kubeConfigPath: /root/.kube/config
controlPlane:
localAPIEndpoint:
2021-05-28 15:16:36 +00:00
advertiseAddress: {{ .Values.serviceIp }}
bindPort: {{ .Values.api.listenPort }}
2021-01-03 15:33:13 +00:00
nodeRegistration:
ignorePreflightErrors:
- DirAvailable--var-lib-etcd
2021-03-15 10:51:56 +00:00
- FileAvailable--etc-kubernetes-pki-ca.crt
2021-01-03 15:33:13 +00:00
- Swap
2021-05-28 15:16:36 +00:00
- KubeletVersion
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 }}