From 7c707e938429d04a888b12ed9cc23a8cfaa5fbfd Mon Sep 17 00:00:00 2001 From: Muhammad Tariq Date: Sun, 2 Apr 2023 19:47:21 +0700 Subject: [PATCH] Remove annotation from pod --- content/en/docs/reference/kubectl/cheatsheet.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/en/docs/reference/kubectl/cheatsheet.md b/content/en/docs/reference/kubectl/cheatsheet.md index 0f5e6921ed..d7f2a64586 100644 --- a/content/en/docs/reference/kubectl/cheatsheet.md +++ b/content/en/docs/reference/kubectl/cheatsheet.md @@ -271,6 +271,7 @@ kubectl get pod mypod -o yaml | sed 's/\(image: myimage\):.*$/\1:v4/' | kubectl kubectl label pods my-pod new-label=awesome # Add a Label kubectl label pods my-pod new-label- # Remove a label kubectl annotate pods my-pod icon-url=http://goo.gl/XXBTWq # Add an annotation +kubectl annotate pods my-pod icon- # Remove annotation kubectl autoscale deployment foo --min=2 --max=10 # Auto scale a deployment "foo" ```