From 60ca5e0945d99a600ac66098057341b52881cb7b Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Sat, 16 Aug 2025 10:22:41 +0300 Subject: [PATCH] kubectl-apply: refresh page (#17652) --- pages/common/kubectl-apply.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pages/common/kubectl-apply.md b/pages/common/kubectl-apply.md index 53e235320a..7fa26852e7 100644 --- a/pages/common/kubectl-apply.md +++ b/pages/common/kubectl-apply.md @@ -4,18 +4,26 @@ > Create and update resources in a cluster. > More information: . -- Apply a configuration to a resource by file name or `stdin`: +- Apply a configuration to a resource by file name: -`kubectl apply {{[-f|--filename]}} {{resource_filename}}` +`kubectl apply {{[-f|--filename]}} {{path/to/filename}}` + +- Apply a configuration to a resource from `kustomization.yaml` in a directory: + +`kubectl apply {{[-k|--kustomize]}} {{path/to/directory}}` + +- Apply a configuration to a resource by `stdin`: + +`{{cat pod.json}} | kubectl apply {{[-f|--filename]}} -` - Edit the latest last-applied-configuration annotations of resources from the default editor: -`kubectl apply edit-last-applied {{[-f|--filename]}} {{resource_filename}}` +`kubectl apply edit-last-applied {{[-f|--filename]}} {{path/to/filename}}` - Set the latest last-applied-configuration annotations by setting it to match the contents of a file: -`kubectl apply set-last-applied {{[-f|--filename]}} {{resource_filename}}` +`kubectl apply set-last-applied {{[-f|--filename]}} {{path/to/filename}}` - View the latest last-applied-configuration annotations by type/name or file: -`kubectl apply view-last-applied {{[-f|--filename]}} {{resource_filename}}` +`kubectl apply view-last-applied {{[-f|--filename]}} {{path/to/filename}}`