mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 08:02:08 +02:00
kubectl-apply: add page (#11066)
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
This commit is contained in:
parent
c358161a58
commit
b655ea1c55
1 changed files with 20 additions and 0 deletions
20
pages/common/kubectl-apply.md
Normal file
20
pages/common/kubectl-apply.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# kubectl apply
|
||||
|
||||
> Manages applications through files defining Kubernetes resources. It creates and updates resources in a cluster.
|
||||
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#apply>.
|
||||
|
||||
- Apply a configuration to a resource by file name or `stdin`:
|
||||
|
||||
`kubectl apply -f {{resource_filename}}`
|
||||
|
||||
- Edit the latest last-applied-configuration annotations of resources from the default editor:
|
||||
|
||||
`kubectl apply edit-last-applied -f {{resource_filename}}`
|
||||
|
||||
- Set the latest last-applied-configuration annotations by setting it to match the contents of a file:
|
||||
|
||||
`kubectl apply set-last-applied -f {{resource_filename}}`
|
||||
|
||||
- View the latest last-applied-configuration annotations by type/name or file:
|
||||
|
||||
`kubectl apply view-last-applied -f {{resource_filename}}`
|
Loading…
Add table
Reference in a new issue