Skip to content

Commit 70acc47

Browse files
authored
Merge pull request #37710 from oteichmann/main
Update cheatsheet.md
2 parents 7f697ec + 39efa7b commit 70acc47

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
@@ -266,6 +266,7 @@ kubectl expose rc nginx --port=80 --target-port=8000
266266
kubectl get pod mypod -o yaml | sed 's/\(image: myimage\):.*$/\1:v4/' | kubectl replace -f -
267267

268268
kubectl label pods my-pod new-label=awesome # Add a Label
269+
kubectl label pods my-pod new-label- # Remove a label
269270
kubectl annotate pods my-pod icon-url=http://goo.gl/XXBTWq # Add an annotation
270271
kubectl autoscale deployment foo --min=2 --max=10 # Auto scale a deployment "foo"
271272
```

0 commit comments

Comments
 (0)