Skip to content

Commit e3bd383

Browse files
authored
Merge pull request #6255 from afbjorklund/kubectl-examples
Fix syntax of minikube kubectl example command
2 parents e0a8b7d + 71b561e commit e3bd383

File tree

8 files changed

+11
-9
lines changed

8 files changed

+11
-9
lines changed

cmd/minikube/cmd/kubectl.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ import (
3838
var kubectlCmd = &cobra.Command{
3939
Use: "kubectl",
4040
Short: "Run kubectl",
41-
Long: `Run the kubernetes client, download it if necessary.
41+
Long: `Run the kubernetes client, download it if necessary. Remember -- after kubectl!
42+
4243
Examples:
4344
minikube kubectl -- --help
44-
kubectl get pods --namespace kube-system`,
45+
minikube kubectl -- get pods --namespace kube-system`,
4546
Run: func(cmd *cobra.Command, args []string) {
4647
api, err := machine.NewAPIClient()
4748
if err != nil {

site/content/en/docs/Reference/Commands/kubectl.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ description: >
1111
### Overview
1212

1313
Run the Kubernetes client, download it if necessary.
14+
Remember `--` after kubectl!
1415

1516
### Usage
1617

@@ -22,7 +23,7 @@ minikube kubectl [flags]
2223

2324
```
2425
minikube kubectl -- --help
25-
kubectl get pods --namespace kube-system
26+
minikube kubectl -- get pods --namespace kube-system
2627
```
2728

2829

translations/de.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@
290290
"Run 'minikube delete' to delete the stale VM": "",
291291
"Run kubectl": "",
292292
"Run minikube from the C: drive.": "",
293-
"Run the kubernetes client, download it if necessary.\nExamples:\nminikube kubectl -- --help\nkubectl get pods --namespace kube-system": "",
293+
"Run the kubernetes client, download it if necessary. Remember -- after kubectl!\n\nExamples:\nminikube kubectl -- --help\nminikube kubectl -- get pods --namespace kube-system": "",
294294
"Run the minikube command as an Administrator": "",
295295
"Running on localhost (CPUs={{.number_of_cpus}}, Memory={{.memory_size}}MB, Disk={{.disk_size}}MB) ...": "",
296296
"Set failed": "",

translations/es.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@
290290
"Run 'minikube delete' to delete the stale VM": "",
291291
"Run kubectl": "",
292292
"Run minikube from the C: drive.": "",
293-
"Run the kubernetes client, download it if necessary.\nExamples:\nminikube kubectl -- --help\nkubectl get pods --namespace kube-system": "",
293+
"Run the kubernetes client, download it if necessary. Remember -- after kubectl!\n\nExamples:\nminikube kubectl -- --help\nminikube kubectl -- get pods --namespace kube-system": "",
294294
"Run the minikube command as an Administrator": "",
295295
"Running on localhost (CPUs={{.number_of_cpus}}, Memory={{.memory_size}}MB, Disk={{.disk_size}}MB) ...": "",
296296
"Set failed": "",

translations/fr.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@
291291
"Run 'minikube delete' to delete the stale VM": "",
292292
"Run kubectl": "",
293293
"Run minikube from the C: drive.": "",
294-
"Run the kubernetes client, download it if necessary.\nExamples:\nminikube kubectl -- --help\nkubectl get pods --namespace kube-system": "",
294+
"Run the kubernetes client, download it if necessary. Remember -- after kubectl!\n\nExamples:\nminikube kubectl -- --help\nminikube kubectl -- get pods --namespace kube-system": "",
295295
"Run the minikube command as an Administrator": "",
296296
"Running on localhost (CPUs={{.number_of_cpus}}, Memory={{.memory_size}}MB, Disk={{.disk_size}}MB) ...": "",
297297
"Set failed": "",

translations/ja.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@
290290
"Run 'minikube delete' to delete the stale VM": "",
291291
"Run kubectl": "",
292292
"Run minikube from the C: drive.": "",
293-
"Run the kubernetes client, download it if necessary.\nExamples:\nminikube kubectl -- --help\nkubectl get pods --namespace kube-system": "",
293+
"Run the kubernetes client, download it if necessary. Remember -- after kubectl!\n\nExamples:\nminikube kubectl -- --help\nminikube kubectl -- get pods --namespace kube-system": "",
294294
"Run the minikube command as an Administrator": "",
295295
"Running on localhost (CPUs={{.number_of_cpus}}, Memory={{.memory_size}}MB, Disk={{.disk_size}}MB) ...": "",
296296
"Set failed": "",

translations/pl.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@
290290
"Run 'minikube delete' to delete the stale VM": "",
291291
"Run kubectl": "Uruchamia kubectl",
292292
"Run minikube from the C: drive.": "",
293-
"Run the kubernetes client, download it if necessary.\nExamples:\nminikube kubectl -- --help\nkubectl get pods --namespace kube-system": "",
293+
"Run the kubernetes client, download it if necessary. Remember -- after kubectl!\n\nExamples:\nminikube kubectl -- --help\nminikube kubectl -- get pods --namespace kube-system": "",
294294
"Run the minikube command as an Administrator": "",
295295
"Running on localhost (CPUs={{.number_of_cpus}}, Memory={{.memory_size}}MB, Disk={{.disk_size}}MB) ...": "",
296296
"Set failed": "",

translations/zh-CN.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@
327327
"Run 'kubectl describe pod coredns -n kube-system' and check for a firewall or DNS conflict": "",
328328
"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 以与您发出此命令的用户相同的用户身份运行",
329329
"Run minikube from the C: drive.": "",
330-
"Run the kubernetes client, download it if necessary.\nExamples:\nminikube kubectl -- --help\nkubectl get pods --namespace kube-system": "",
330+
"Run the kubernetes client, download it if necessary. Remember -- after kubectl!\n\nExamples:\nminikube kubectl -- --help\nminikube kubectl -- get pods --namespace kube-system": "",
331331
"Run the minikube command as an Administrator": "",
332332
"Run: 'chmod 600 $HOME/.kube/config'": "执行 'chmod 600 $HOME/.kube/config'",
333333
"Running on localhost (CPUs={{.number_of_cpus}}, Memory={{.memory_size}}MB, Disk={{.disk_size}}MB) ...": "",

0 commit comments

Comments
 (0)