Fix README: Change centos to admin user when copying kubeconfig file

pull/11130/head
Maxat Akbanov 2024-04-28 09:09:56 +05:00
parent 709f0b817f
commit e2a7fdb754
No known key found for this signature in database
GPG Key ID: 4E4E04BC12EA2DDC
1 changed files with 2 additions and 2 deletions

View File

@ -95,8 +95,8 @@ ssh-keyscan -H $CONTROLLER_IP >> ~/.ssh/known_hosts 2>/dev/null
# Get the kubeconfig from the controller.
mkdir -p ~/.kube
ssh -F ssh-bastion.conf centos@$CONTROLLER_IP "sudo chmod 644 /etc/kubernetes/admin.conf"
scp -F ssh-bastion.conf centos@$CONTROLLER_IP:/etc/kubernetes/admin.conf ~/.kube/config
ssh -F ssh-bastion.conf admin@$CONTROLLER_IP "sudo chmod 644 /etc/kubernetes/admin.conf"
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
kubectl get nodes
```