How to remove (delete) annotation in Kubernetes

前端 未结 2 1603
别那么骄傲
别那么骄傲 2021-02-19 02:56

Is there a different way than kubectl edit to delete an annotation in Kubernetes?

I do not like the interactivity of kubectl edit. I prefer so

2条回答
  •  迷失自我
    2021-02-19 03:48

    Use minus - sign at the end of the annotation in kubectl annotate.

    Example:

    kubectl annotate service shopping-cart prometheus.io/scrape-

    Removes annotation prometheus.io/scrape from shopping-cart service.

提交回复
热议问题