rongzhang 6 years ago
parent
commit
0f63924ed4
2 changed files with 4 additions and 0 deletions
  1. 3
      roles/kubernetes/kubeadm/defaults/main.yml
  2. 1
      roles/kubernetes/kubeadm/templates/kubeadm-client.conf.v1alpha2.j2

3
roles/kubernetes/kubeadm/defaults/main.yml

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

1
roles/kubernetes/kubeadm/templates/kubeadm-client.conf.v1alpha2.j2

@ -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 }}

Loading…
Cancel
Save