Skip to content

Commit d67fd0c

Browse files
authored
Merge pull request #4829 from techthumb/master
Update k8s.yaml for bootstrapToken configuration in kubeadm
2 parents 3e88c94 + 72cbed3 commit d67fd0c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

templates/k8s.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,14 @@ provision:
122122
apiVersion: kubeadm.k8s.io/v1beta4
123123
nodeRegistration:
124124
criSocket: unix:///run/containerd/containerd.sock
125+
discovery:
126+
bootstrapToken:
127+
apiServerEndpoint: "{{.Param.url}}"
128+
token: "{{.Param.token}}"
129+
caCertHashes:
130+
- "{{.Param.discoveryTokenCaCertHash}}"
125131
EOF
126-
kubeadm join --config kubeadm-config.yaml {{.Param.url}} --token {{.Param.token}} \
127-
--discovery-token-ca-cert-hash {{.Param.discoveryTokenCaCertHash}}
132+
kubeadm join --config kubeadm-config.yaml
128133
{{end}}
129134
130135
{{if not ( and .Param.url .Param.token )}}

0 commit comments

Comments
 (0)