Fix README: Change centos to admin user when copying kubeconfig file
parent
709f0b817f
commit
e2a7fdb754
|
@ -95,8 +95,8 @@ ssh-keyscan -H $CONTROLLER_IP >> ~/.ssh/known_hosts 2>/dev/null
|
||||||
|
|
||||||
# Get the kubeconfig from the controller.
|
# Get the kubeconfig from the controller.
|
||||||
mkdir -p ~/.kube
|
mkdir -p ~/.kube
|
||||||
ssh -F ssh-bastion.conf centos@$CONTROLLER_IP "sudo chmod 644 /etc/kubernetes/admin.conf"
|
ssh -F ssh-bastion.conf admin@$CONTROLLER_IP "sudo chmod 644 /etc/kubernetes/admin.conf"
|
||||||
scp -F ssh-bastion.conf centos@$CONTROLLER_IP:/etc/kubernetes/admin.conf ~/.kube/config
|
scp -F ssh-bastion.conf admin@$CONTROLLER_IP:/etc/kubernetes/admin.conf ~/.kube/config
|
||||||
sed -i "s^server:.*^server: https://$LB_HOST:6443^" ~/.kube/config
|
sed -i "s^server:.*^server: https://$LB_HOST:6443^" ~/.kube/config
|
||||||
kubectl get nodes
|
kubectl get nodes
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue