Add discovery_timeout to join configuration

https://godoc.org/k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1alpha2#JoinConfiguration
This commit is contained in:
rongzhang 2018-09-07 13:54:12 +08:00
parent a47c9239e8
commit 0f63924ed4
2 changed files with 4 additions and 0 deletions

View file

@ -0,0 +1,3 @@
---
# discovery_timeout modifies the discovery timeout
discovery_timeout: 5m0s

View file

@ -3,6 +3,7 @@ kind: NodeConfiguration
clusterName: {{ cluster_name }}
discoveryFile: ""
caCertPath: {{ kube_config_dir }}/ssl/ca.crt
discoveryTimeout: {{ discovery_timeout }}
discoveryToken: {{ kubeadm_token }}
tlsBootstrapToken: {{ kubeadm_token }}
token: {{ kubeadm_token }}