mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-24 17:00:22 +00:00
copy kubeconfig file to rke2 folder
This commit is contained in:
parent
3ef9a77921
commit
029134e214
1 changed files with 1 additions and 0 deletions
|
@ -153,6 +153,7 @@ token=`cat token`
|
||||||
sudo cat ~/.kube/rke2.yaml | sed 's/127.0.0.1/'$vip'/g' > $HOME/.kube/config
|
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
|
sudo chown $(id -u):$(id -g) $HOME/.kube/config
|
||||||
export KUBECONFIG=${HOME}/.kube/config
|
export KUBECONFIG=${HOME}/.kube/config
|
||||||
|
sudo cp ~/.kube/config /etc/rancher/rke2/rke2.yaml
|
||||||
kubectl get nodes
|
kubectl get nodes
|
||||||
|
|
||||||
# Step 6: Add other Masternodes, note we import the token we extracted from step 3
|
# Step 6: Add other Masternodes, note we import the token we extracted from step 3
|
||||||
|
|
Loading…
Reference in a new issue