From 4b2d9a6838bac6e16bf3cc2fb780223bd90070d2 Mon Sep 17 00:00:00 2001 From: Kumar Shivendu Date: Sun, 18 Jul 2021 13:23:42 +0530 Subject: [PATCH 1/2] docs: Suggest using alias for minikube kubectl -- --- site/content/en/docs/start/_index.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/site/content/en/docs/start/_index.md b/site/content/en/docs/start/_index.md index a303266173..5bbf9e7754 100644 --- a/site/content/en/docs/start/_index.md +++ b/site/content/en/docs/start/_index.md @@ -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: From bac3b6918fb2f6a28dae0d1817a04865a76a2828 Mon Sep 17 00:00:00 2001 From: Kumar Shivendu Date: Fri, 30 Jul 2021 00:24:50 +0530 Subject: [PATCH 2/2] docs: Simplify minikube alias documentation Co-authored-by: Sharif Elgamal --- site/content/en/docs/start/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/en/docs/start/_index.md b/site/content/en/docs/start/_index.md index 5bbf9e7754..0d9e93c5e6 100644 --- a/site/content/en/docs/start/_index.md +++ b/site/content/en/docs/start/_index.md @@ -459,7 +459,7 @@ Alternatively, minikube can download the appropriate version of kubectl and you ```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: +You can also make your life easier by adding the following to your shell config: ```shell alias kubectl="minikube kubectl --" ```