Remove kubeconfig on root everytime
This commit is contained in:
parent
2a86de44ec
commit
c583771f90
@ -278,6 +278,9 @@ apt-cache policy kubelet | grep 'Installed: (none)' -A 1000 | grep 'Candidate:'
|
|||||||
|
|
||||||
# Installing Kubectl, Kubeadm and kubelet
|
# Installing Kubectl, Kubeadm and kubelet
|
||||||
|
|
||||||
|
# Always remove kubeconfig
|
||||||
|
rm -rf /root/.kube/ || true
|
||||||
|
|
||||||
apt install -y kubeadm=${KUBEVERSION} kubelet=${KUBEVERSION} kubectl=${KUBEVERSION}
|
apt install -y kubeadm=${KUBEVERSION} kubelet=${KUBEVERSION} kubectl=${KUBEVERSION}
|
||||||
kubeadm init --apiserver-advertise-address=${VM_IP} --pod-network-cidr=10.244.0.0/16 --v=5
|
kubeadm init --apiserver-advertise-address=${VM_IP} --pod-network-cidr=10.244.0.0/16 --v=5
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user