Add instructions on how to setup kubectl
This commit is contained in:
@@ -179,6 +179,13 @@ as root:
|
|||||||
kubeadm join --token <token> <master-ip>:<master-port> --discovery-token-ca-cert-hash sha256:<hash>
|
kubeadm join --token <token> <master-ip>:<master-port> --discovery-token-ca-cert-hash sha256:<hash>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To let kubectl work in the following steps, you need to run these commands as a regular user (which is part of the output above):
|
||||||
|
```
|
||||||
|
mkdir -p $HOME/.kube
|
||||||
|
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
|
||||||
|
sudo chown $(id -u):$(id -g) $HOME/.kube/config
|
||||||
|
```
|
||||||
|
|
||||||
Make a record of the `kubeadm join` command that `kubeadm init` outputs. You
|
Make a record of the `kubeadm join` command that `kubeadm init` outputs. You
|
||||||
will need this in a moment.
|
will need this in a moment.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user