Difference between revisions of "Kubectl"
Jump to navigation
Jump to search
(Created page with "# On Microk8s Quick ``` mkdir $HOME/.kube microk8s config > $HOME/.kube/config snap install kubectl --classic kubectl get nodes ``` or alias ``` alias kubectl='sudo microk8s...") |
|||
Line 1: | Line 1: | ||
+ | ``` | ||
+ | kubectl run my-testshell --rm -i --tty --image ubuntu -- bash | ||
+ | ``` | ||
+ | |||
# On Microk8s Quick | # On Microk8s Quick | ||
Revision as of 00:14, 20 January 2022
kubectl run my-testshell --rm -i --tty --image ubuntu -- bash
On Microk8s Quick
mkdir $HOME/.kube microk8s config > $HOME/.kube/config snap install kubectl --classic kubectl get nodes
or alias
alias kubectl='sudo microk8s.kubectl' alias k='sudo microk8s.kubectl'