diff --git a/Kubernetes/RKE2/rke2.sh b/Kubernetes/RKE2/rke2.sh index c3fee7b..f67bab7 100644 --- a/Kubernetes/RKE2/rke2.sh +++ b/Kubernetes/RKE2/rke2.sh @@ -153,6 +153,7 @@ token=`cat token` sudo cat ~/.kube/rke2.yaml | sed 's/127.0.0.1/'$vip'/g' > $HOME/.kube/config sudo chown $(id -u):$(id -g) $HOME/.kube/config export KUBECONFIG=${HOME}/.kube/config +sudo cp ~/.kube/config /etc/rancher/rke2/rke2.yaml kubectl get nodes # Step 6: Add other Masternodes, note we import the token we extracted from step 3