Merge pull request #11997 from KShivendu/docs-kubectl-alias

docs: Suggest using alias for minikube kubectl --
pull/12612/head
Medya Ghazizadeh 2021-09-27 17:42:24 -07:00 committed by GitHub
commit 3673edc09c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -501,11 +501,15 @@ If you already have kubectl installed, you can now use it to access your shiny n
kubectl get po -A
```
Alternatively, minikube can download the appropriate version of kubectl, if you don't mind the double-dashes in the command-line:
Alternatively, minikube can download the appropriate version of kubectl and you should be able to use it like this:
```shell
minikube kubectl -- get po -A
```
You can also make your life easier by adding the following to your shell config:
```shell
alias kubectl="minikube kubectl --"
```
Initially, some services such as the storage-provisioner, may not yet be in a Running state. This is a normal condition during cluster bring-up, and will resolve itself momentarily. For additional insight into your cluster state, minikube bundles the Kubernetes Dashboard, allowing you to get easily acclimated to your new environment: