Fixed the interacting with cluster section for the ubuntu installation (#6905)
* fixed the interacting with cluster section for the ubuntu installation * made changes as per request from zacharysarah
This commit is contained in:
committed by
Zach Corleissen
parent
ae9c4315b1
commit
e14bc58a28
@@ -169,19 +169,19 @@ mkdir -p ~/.kube
|
|||||||
Copy the kubeconfig file to the default location.
|
Copy the kubeconfig file to the default location.
|
||||||
|
|
||||||
```
|
```
|
||||||
juju scp kubernetes-master/0:config ~/.kube/config
|
sudo juju scp kubernetes-master/0:/home/ubuntu/config ~/.kube/config
|
||||||
```
|
```
|
||||||
|
|
||||||
Fetch a binary for the architecture you have deployed. If your client is a
|
The next step is to install the kubectl client on your local machine. The recommended way to do this on Ubuntu is using the kubectl snap ([https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-with-snap-on-ubuntu](https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-with-snap-on-ubuntu)).
|
||||||
different architecture you will need to get the appropriate `kubectl` binary
|
|
||||||
through other means. In this example we copy kubectl to `~/bin` for convenience,
|
The following command should be run on the machine you wish to use to control the kubernetes cluster:
|
||||||
by default this should be in your $PATH.
|
|
||||||
|
|
||||||
```
|
```
|
||||||
mkdir -p ~/bin
|
sudo snap install kubectl --classic
|
||||||
juju scp kubernetes-master/0:kubectl ~/bin/kubectl
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
This will install and deploy the kubectl binary. You may need to restart your terminal as your $PATH may have been updated.
|
||||||
|
|
||||||
Query the cluster:
|
Query the cluster:
|
||||||
|
|
||||||
kubectl cluster-info
|
kubectl cluster-info
|
||||||
|
|||||||
Reference in New Issue
Block a user