Skip to content

Commit f181d1f

Browse files
ManagorSarijen
authored andcommitted
kubectl-apply: refresh page (tldr-pages#17652)
1 parent 9cb6998 commit f181d1f

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

pages/common/kubectl-apply.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,26 @@
44
> Create and update resources in a cluster.
55
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#apply>.
66
7-
- Apply a configuration to a resource by file name or `stdin`:
7+
- Apply a configuration to a resource by file name:
88

9-
`kubectl apply {{[-f|--filename]}} {{resource_filename}}`
9+
`kubectl apply {{[-f|--filename]}} {{path/to/filename}}`
10+
11+
- Apply a configuration to a resource from `kustomization.yaml` in a directory:
12+
13+
`kubectl apply {{[-k|--kustomize]}} {{path/to/directory}}`
14+
15+
- Apply a configuration to a resource by `stdin`:
16+
17+
`{{cat pod.json}} | kubectl apply {{[-f|--filename]}} -`
1018

1119
- Edit the latest last-applied-configuration annotations of resources from the default editor:
1220

13-
`kubectl apply edit-last-applied {{[-f|--filename]}} {{resource_filename}}`
21+
`kubectl apply edit-last-applied {{[-f|--filename]}} {{path/to/filename}}`
1422

1523
- Set the latest last-applied-configuration annotations by setting it to match the contents of a file:
1624

17-
`kubectl apply set-last-applied {{[-f|--filename]}} {{resource_filename}}`
25+
`kubectl apply set-last-applied {{[-f|--filename]}} {{path/to/filename}}`
1826

1927
- View the latest last-applied-configuration annotations by type/name or file:
2028

21-
`kubectl apply view-last-applied {{[-f|--filename]}} {{resource_filename}}`
29+
`kubectl apply view-last-applied {{[-f|--filename]}} {{path/to/filename}}`

0 commit comments

Comments
 (0)