From 7a5873aa7b9d1060780be915591cef605127fbab Mon Sep 17 00:00:00 2001 From: Zhizhen He Date: Sun, 26 May 2024 00:06:04 +0800 Subject: [PATCH] kubectl label: update page (#12833) --- pages/common/kubectl-label.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common/kubectl-label.md b/pages/common/kubectl-label.md index 398876c72..7d87a71b4 100644 --- a/pages/common/kubectl-label.md +++ b/pages/common/kubectl-label.md @@ -9,15 +9,15 @@ - Update a pod label by overwriting the existing value: -`kubectl label --overwrite {{pod_name}} {{key}}={{value}}` +`kubectl label --overwrite pod {{pod_name}} {{key}}={{value}}` - Label all pods in the namespace: `kubectl label pods --all {{key}}={{value}}` -- Label pod identified by pod definition file: +- Label a pod identified by the pod definition file: -`kubectl label -f {{pod_defination_file}} {{key}}={{value}}` +`kubectl label -f {{pod_definition_file}} {{key}}={{value}}` - Remove the label from a pod: