From b655ea1c55ed73b7854849aa0cf4a1084e092cdc Mon Sep 17 00:00:00 2001 From: MariaPaula Trujillo Date: Thu, 19 Oct 2023 18:26:26 +0200 Subject: [PATCH] kubectl-apply: add page (#11066) Co-authored-by: Juri Dispan --- pages/common/kubectl-apply.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/kubectl-apply.md diff --git a/pages/common/kubectl-apply.md b/pages/common/kubectl-apply.md new file mode 100644 index 000000000..3fbaa8a8c --- /dev/null +++ b/pages/common/kubectl-apply.md @@ -0,0 +1,20 @@ +# kubectl apply + +> Manages applications through files defining Kubernetes resources. It creates and updates resources in a cluster. +> More information: . + +- 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}}`