Document minikube kubectl autocompletion

Fixes https://github.com/kubernetes/minikube/issues/9603
pull/9657/head
Stefan Lobbenmeier 2020-11-10 12:15:45 +01:00 committed by GitHub
parent 16f9b261da
commit 538170ab0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -10,8 +10,7 @@ aliases:
By default, [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/) gets configured to access the kubernetes cluster control plane
inside minikube when the `minikube start` command is executed.
However if `kubectl` is not installed locally, kubectl can be used inside the minikube
as well.
However if `kubectl` is not installed locally, minikube already includes kubectl which can be used like this:
`minikube kubectl -- <kubectl commands>`
@ -36,3 +35,8 @@ Exposing the deployment with a NodePort service
For more help
`minikube kubectl -- --help`
### Shell autocompletion
After applying the alias or the symbolic link you can follow https://kubernetes.io/docs/tasks/tools/install-kubectl/#enabling-shell-autocompletion to enable shell-autocompletion.
When using zsh and the alias approach you also have to execute `setopt complete_aliases`.