Is there a different way than kubectl edit to delete an annotation in Kubernetes?
kubectl edit
I do not like the interactivity of kubectl edit. I prefer so
Use minus - sign at the end of the annotation in kubectl annotate.
-
kubectl annotate
Example:
kubectl annotate service shopping-cart prometheus.io/scrape-
Removes annotation prometheus.io/scrape from shopping-cart service.
prometheus.io/scrape
shopping-cart