diff --git a/cmd/minikube/cmd/kubectl.go b/cmd/minikube/cmd/kubectl.go index 715e414cfe..706a9703e2 100644 --- a/cmd/minikube/cmd/kubectl.go +++ b/cmd/minikube/cmd/kubectl.go @@ -38,10 +38,11 @@ import ( var kubectlCmd = &cobra.Command{ Use: "kubectl", Short: "Run kubectl", - Long: `Run the kubernetes client, download it if necessary. + Long: `Run the kubernetes client, download it if necessary. Remember -- after kubectl! + Examples: minikube kubectl -- --help -kubectl get pods --namespace kube-system`, +minikube kubectl -- get pods --namespace kube-system`, Run: func(cmd *cobra.Command, args []string) { api, err := machine.NewAPIClient() if err != nil { diff --git a/site/content/en/docs/Reference/Commands/kubectl.md b/site/content/en/docs/Reference/Commands/kubectl.md index 54b8747362..cfca7ec2a4 100644 --- a/site/content/en/docs/Reference/Commands/kubectl.md +++ b/site/content/en/docs/Reference/Commands/kubectl.md @@ -11,6 +11,7 @@ description: > ### Overview Run the Kubernetes client, download it if necessary. +Remember `--` after kubectl! ### Usage @@ -22,7 +23,7 @@ minikube kubectl [flags] ``` minikube kubectl -- --help -kubectl get pods --namespace kube-system +minikube kubectl -- get pods --namespace kube-system ``` diff --git a/translations/de.json b/translations/de.json index 93f34176cf..f56676d146 100644 --- a/translations/de.json +++ b/translations/de.json @@ -290,7 +290,7 @@ "Run 'minikube delete' to delete the stale VM": "", "Run kubectl": "", "Run minikube from the C: drive.": "", - "Run the kubernetes client, download it if necessary.\nExamples:\nminikube kubectl -- --help\nkubectl get pods --namespace kube-system": "", + "Run the kubernetes client, download it if necessary. Remember -- after kubectl!\n\nExamples:\nminikube kubectl -- --help\nminikube kubectl -- get pods --namespace kube-system": "", "Run the minikube command as an Administrator": "", "Running on localhost (CPUs={{.number_of_cpus}}, Memory={{.memory_size}}MB, Disk={{.disk_size}}MB) ...": "", "Set failed": "", diff --git a/translations/es.json b/translations/es.json index e1c17cc7cb..bb175f5c33 100644 --- a/translations/es.json +++ b/translations/es.json @@ -290,7 +290,7 @@ "Run 'minikube delete' to delete the stale VM": "", "Run kubectl": "", "Run minikube from the C: drive.": "", - "Run the kubernetes client, download it if necessary.\nExamples:\nminikube kubectl -- --help\nkubectl get pods --namespace kube-system": "", + "Run the kubernetes client, download it if necessary. Remember -- after kubectl!\n\nExamples:\nminikube kubectl -- --help\nminikube kubectl -- get pods --namespace kube-system": "", "Run the minikube command as an Administrator": "", "Running on localhost (CPUs={{.number_of_cpus}}, Memory={{.memory_size}}MB, Disk={{.disk_size}}MB) ...": "", "Set failed": "", diff --git a/translations/fr.json b/translations/fr.json index 83c5a9ec0c..1d760fd5a2 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -291,7 +291,7 @@ "Run 'minikube delete' to delete the stale VM": "", "Run kubectl": "", "Run minikube from the C: drive.": "", - "Run the kubernetes client, download it if necessary.\nExamples:\nminikube kubectl -- --help\nkubectl get pods --namespace kube-system": "", + "Run the kubernetes client, download it if necessary. Remember -- after kubectl!\n\nExamples:\nminikube kubectl -- --help\nminikube kubectl -- get pods --namespace kube-system": "", "Run the minikube command as an Administrator": "", "Running on localhost (CPUs={{.number_of_cpus}}, Memory={{.memory_size}}MB, Disk={{.disk_size}}MB) ...": "", "Set failed": "", diff --git a/translations/ja.json b/translations/ja.json index a63609e260..257f69a38a 100644 --- a/translations/ja.json +++ b/translations/ja.json @@ -290,7 +290,7 @@ "Run 'minikube delete' to delete the stale VM": "", "Run kubectl": "", "Run minikube from the C: drive.": "", - "Run the kubernetes client, download it if necessary.\nExamples:\nminikube kubectl -- --help\nkubectl get pods --namespace kube-system": "", + "Run the kubernetes client, download it if necessary. Remember -- after kubectl!\n\nExamples:\nminikube kubectl -- --help\nminikube kubectl -- get pods --namespace kube-system": "", "Run the minikube command as an Administrator": "", "Running on localhost (CPUs={{.number_of_cpus}}, Memory={{.memory_size}}MB, Disk={{.disk_size}}MB) ...": "", "Set failed": "", diff --git a/translations/pl.json b/translations/pl.json index d5a35d30ca..41491e9b93 100644 --- a/translations/pl.json +++ b/translations/pl.json @@ -290,7 +290,7 @@ "Run 'minikube delete' to delete the stale VM": "", "Run kubectl": "Uruchamia kubectl", "Run minikube from the C: drive.": "", - "Run the kubernetes client, download it if necessary.\nExamples:\nminikube kubectl -- --help\nkubectl get pods --namespace kube-system": "", + "Run the kubernetes client, download it if necessary. Remember -- after kubectl!\n\nExamples:\nminikube kubectl -- --help\nminikube kubectl -- get pods --namespace kube-system": "", "Run the minikube command as an Administrator": "", "Running on localhost (CPUs={{.number_of_cpus}}, Memory={{.memory_size}}MB, Disk={{.disk_size}}MB) ...": "", "Set failed": "", diff --git a/translations/zh-CN.json b/translations/zh-CN.json index df885715ab..02b0ab7ad2 100644 --- a/translations/zh-CN.json +++ b/translations/zh-CN.json @@ -327,7 +327,7 @@ "Run 'kubectl describe pod coredns -n kube-system' and check for a firewall or DNS conflict": "", "Run 'minikube delete' to delete the stale VM, or and ensure that minikube is running as the same user you are issuing this command with": "执行 'minikube delete' 以删除过时的虚拟机,或者确保 minikube 以与您发出此命令的用户相同的用户身份运行", "Run minikube from the C: drive.": "", - "Run the kubernetes client, download it if necessary.\nExamples:\nminikube kubectl -- --help\nkubectl get pods --namespace kube-system": "", + "Run the kubernetes client, download it if necessary. Remember -- after kubectl!\n\nExamples:\nminikube kubectl -- --help\nminikube kubectl -- get pods --namespace kube-system": "", "Run the minikube command as an Administrator": "", "Run: 'chmod 600 $HOME/.kube/config'": "执行 'chmod 600 $HOME/.kube/config'", "Running on localhost (CPUs={{.number_of_cpus}}, Memory={{.memory_size}}MB, Disk={{.disk_size}}MB) ...": "",