We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3e88c94 + 72cbed3 commit d67fd0cCopy full SHA for d67fd0c
1 file changed
templates/k8s.yaml
@@ -122,9 +122,14 @@ provision:
122
apiVersion: kubeadm.k8s.io/v1beta4
123
nodeRegistration:
124
criSocket: unix:///run/containerd/containerd.sock
125
+ discovery:
126
+ bootstrapToken:
127
+ apiServerEndpoint: "{{.Param.url}}"
128
+ token: "{{.Param.token}}"
129
+ caCertHashes:
130
+ - "{{.Param.discoveryTokenCaCertHash}}"
131
EOF
- kubeadm join --config kubeadm-config.yaml {{.Param.url}} --token {{.Param.token}} \
- --discovery-token-ca-cert-hash {{.Param.discoveryTokenCaCertHash}}
132
+ kubeadm join --config kubeadm-config.yaml
133
{{end}}
134
135
{{if not ( and .Param.url .Param.token )}}
0 commit comments