Using microk8s 1.18.3, latest/edge, Ubuntu 20.04
When practicing on the machine where microk8s is installed. Is there any harm to install the official
kubectl instead of
Reason: I do have
alias kubectl='microk8s.kubectl' and on the command line, the
kubectl alias does work OK in interactive mode. However when running in shell script, the the
kubectl alias is not expanded. And I endup getting an error. Example: “./MyScript.sh: line 10: kubectl: command not found”.
Of course, I just need to use
microk8s.kubectl in my script. However, I share those shell scripts with other colleagues who don’t have microk8s. Each time they must edit to replace
kubectl. If I could use the official
kubectl this would be simpler to maintain the scripts.