Skip to content

Commit

Permalink
Use kubeadm reset force flag (#21)
Browse files Browse the repository at this point in the history
This prevents the cluster from starting up with current K8S versions (1.12>= it seems).
Otherwise the startup fails with `kubeadm reset` waiting for interactive response.
  • Loading branch information
galexrt committed Nov 23, 2018
2 parents c3f6a7b + b1d2155 commit 2cc840c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ SCRIPT
$kubeMasterScript = <<SCRIPT
set -x
kubeadm reset
kubeadm reset -f
kubeadm init #{KUBEADM_INIT_FLAGS} \
--apiserver-advertise-address=#{MASTER_IP} \
--pod-network-cidr=#{POD_NW_CIDR} \
Expand Down
2 changes: 1 addition & 1 deletion Vagrantfile_nodes
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ SCRIPT
$kubeMinionScript = <<SCRIPT

set -x
kubeadm reset
kubeadm reset -f

if [ -n "#{KUBEADM_JOIN_FLAGS}" ]; then
kubeadm join \
Expand Down

0 comments on commit 2cc840c

Please sign in to comment.