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: content/en/docs/reference/kubectl/cheatsheet.md
+18-28Lines changed: 18 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,17 +12,11 @@ card:
12
12
13
13
<!-- overview -->
14
14
15
-
See also: [Kubectl Overview](/docs/reference/kubectl/overview/) and [JsonPath Guide](/docs/reference/kubectl/jsonpath).
16
-
17
-
This page is an overview of the `kubectl` command.
18
-
19
-
15
+
This page contains a list of commonly used `kubectl` commands and flags.
20
16
21
17
<!-- body -->
22
18
23
-
# kubectl - Cheat Sheet
24
-
25
-
## Kubectl Autocomplete
19
+
## Kubectl autocomplete
26
20
27
21
### BASH
28
22
@@ -31,7 +25,7 @@ source <(kubectl completion bash) # setup autocomplete in bash into the current
31
25
echo"source <(kubectl completion bash)">>~/.bashrc # add autocomplete permanently to your bash shell.
32
26
```
33
27
34
-
You can also use a shorthand alias for `kubectl` that also works with completion:
28
+
You can also use a shorthand alias for `kubectl` that also works with completion:
35
29
36
30
```bash
37
31
alias k=kubectl
@@ -45,7 +39,7 @@ source <(kubectl completion zsh) # setup autocomplete in zsh into the current s
45
39
echo"[[ $commands[kubectl] ]] && source <(kubectl completion zsh)">>~/.zshrc # add autocomplete permanently to your zsh shell
46
40
```
47
41
48
-
## Kubectl Context and Configuration
42
+
## Kubectl context and configuration
49
43
50
44
Set which Kubernetes cluster `kubectl` communicates with and modifies configuration
51
45
information. See [Authenticating Across Clusters with kubeconfig](/docs/tasks/access-application-cluster/configure-access-multiple-clusters/) documentation for
`apply` manages applications through files defining Kubernetes resources. It creates and updates resources in a cluster through running `kubectl apply`. This is the recommended way of managing Kubernetes applications on production. See [Kubectl Book](https://kubectl.docs.kubernetes.io).
86
81
87
-
## Creating Objects
82
+
## Creating objects
88
83
89
84
Kubernetes manifests can be defined in YAML or JSON. The file extension `.yaml`,
0 commit comments