Fix troubleshooting instruction at troubleshooting-kubeadm.md (#15234)

## Issue

Section: *Another workaround is to overwrite the existing `kubeconfig` for the "admin" user*
Line: 173

`sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config` fails, since the directory `$HOME/.kube` doesn't exist.

## Fix

`mkdir $HOME/.kube` added prior to `sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config`.
This commit is contained in:
Tahmid Shakil 2019-08-07 06:34:51 +07:00 committed by Kubernetes Prow Robot
parent dd6f88dfe7
commit 2928d6ac9c
1 changed files with 1 additions and 0 deletions

View File

@ -170,6 +170,7 @@ Unable to connect to the server: x509: certificate signed by unknown authority (
```sh
mv $HOME/.kube $HOME/.kube.bak
mkdir $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
```