Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

kubectl patch annotation on pods

#Patch deployment adding annotation to disable istio sidecar injection 

kubectl patch deployment nginx -p '{"spec": {"template":{"metadata":{"annotations":{"sidecar.istio.io/inject":"false"}}}} }'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #kubectl #patch #annotation #pods
ADD COMMENT
Topic
Name
1+1 =