mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-22 07:50:19 +00:00
change ~ to ${HOME} for kubectl
This commit is contained in:
parent
42ada9bdbe
commit
3ef9a77921
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ kubectl create configmap -n kube-system kubevip --from-literal range-global=$lbr
|
|||
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=~/.kube/config
|
||||
export KUBECONFIG=${HOME}/.kube/config
|
||||
kubectl get nodes
|
||||
|
||||
# Step 6: Add other Masternodes, note we import the token we extracted from step 3
|
||||
|
|
Loading…
Reference in a new issue