docs(bot): 📝 Add copy-pastable command to create an alias to kubectl in README.

This commit is contained in:
Nyeki.py
2024-11-01 04:24:42 -03:00
parent 6e12d2fc01
commit f9da23fc1a
+6
View File
@@ -94,6 +94,12 @@ The rest of the guide uses `kubectl`, but `microk8s` has `kubectl` as a subcomma
2. Use `microk8s kubectl` instead of `kubectl` in the following steps. This'll require you to type 2. Use `microk8s kubectl` instead of `kubectl` in the following steps. This'll require you to type
`microk8s` at the front of all `kubectl` commands that are run from now on. `microk8s` at the front of all `kubectl` commands that are run from now on.
To add an alias, run the following command:
```sh
echo "alias kubectl='microk8s kubectl'" >> ~/.bash_aliases && source ~/.bash_aliases
```
##### Add a Node to the Cluster ##### Add a Node to the Cluster
To add a new node to the cluster, run the following command on a master node: To add a new node to the cluster, run the following command on a master node: