You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting-started-guides/gce.md
+20-8
Original file line number
Diff line number
Diff line change
@@ -95,17 +95,29 @@ potential issues with client/server version skew.
95
95
96
96
You may find it useful to enable `kubectl` bash completion:
97
97
98
-
```
99
-
$ source ./contrib/completions/bash/kubectl
100
-
```
98
+
* If you're using kubectl with Kubernetes version 1.2 or earlier, you can source the kubectl completion script as follows:<br>
99
+
```
100
+
$ source ./contrib/completions/bash/kubectl
101
+
```
101
102
102
-
**Note**: This will last for the duration of your bash session. If you want to make this permanent you need to add this line in your bash profile.
103
+
* If you're using kubectl with Kubernetes version 1.3, use the `kubectl completion` command as follows:<br>
104
+
```
105
+
$ source <(kubectl completion bash)
106
+
```
103
107
104
-
Alternatively, on most linux distributions you can also move the completions file to your bash_completions.d like this:
108
+
**Note**: The above commands will last for the duration of your bash session. If you want to make this permanent you need to add corresponding command in your bash profile.
0 commit comments