From 0878216dddc08de3d8ebc842a2d0da1a8c1dceeb Mon Sep 17 00:00:00 2001 From: Cedric Verstraeten Date: Sun, 11 Aug 2024 09:03:18 +0200 Subject: [PATCH] Update README.microk8s.md --- README.microk8s.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.microk8s.md b/README.microk8s.md index 123efa8..7a2d00a 100644 --- a/README.microk8s.md +++ b/README.microk8s.md @@ -44,6 +44,20 @@ To install MicroK8s on your system, follow these steps. microk8s status --wait-ready ``` +6. Add an alias for kubectl as microk8s: + +To simplify the usage of `kubectl` with MicroK8s, you can create an alias. This allows you to use the `kubectl` command without needing to prefix it with `microk8s.` every time. Add the following line to your shell configuration file (e.g., `.bashrc`, `.zshrc`): + +```sh +alias kubectl='microk8s kubectl' +``` + +or use the `snap` command: + +```sh +sudo snap alias microk8s.kubectl kubectl +``` + For more detailed instructions and troubleshooting, please refer to the official MicroK8s documentation. ## Dependencies