Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

kubectl patch annotation

#much easier for me was to annotate rather than patch:

kubectl annotate ingress mying kubernetes.io/ingress.class=value --dry-run=client -o yaml
kubectl annotate ingress mying kubernetes.io/ingress.class=value

#add --dry-run -o yaml flags if you want to test it before applying the change.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #kubectl #patch #annotation
ADD COMMENT
Topic
Name
4+1 =