Skip to content

Commit 91afacf

Browse files
authored
Merge pull request #40444 from Tariqs/patch-1
Add cheat sheet entry: overwrite an existing value of label
2 parents e98eec1 + 49682e9 commit 91afacf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

content/en/docs/reference/kubectl/cheatsheet.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ kubectl get pod mypod -o yaml | sed 's/\(image: myimage\):.*$/\1:v4/' | kubectl
273273

274274
kubectl label pods my-pod new-label=awesome # Add a Label
275275
kubectl label pods my-pod new-label- # Remove a label
276+
kubectl label pods my-pod new-label=new-value --overwrite # Overwrite an existing value
276277
kubectl annotate pods my-pod icon-url=http://goo.gl/XXBTWq # Add an annotation
277278
kubectl annotate pods my-pod icon- # Remove annotation
278279
kubectl autoscale deployment foo --min=2 --max=10 # Auto scale a deployment "foo"

0 commit comments

Comments
 (0)