Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

25
kubectl-apply Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`