docs: Suggest using alias for minikube kubectl --

pull/11997/head
Kumar Shivendu 2021-07-18 13:23:42 +05:30 committed by GitHub
parent 791e3b59c1
commit 4b2d9a6838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -454,11 +454,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
```
If you've downloaded kubectl through minikube, you can 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: