# How do I patch label without disturbing the ones already present

**URL:** <https://discuss.kubernetes.io/t/how-do-i-patch-label-without-disturbing-the-ones-already-present/16510>\
**Category:** General Discussions\
**Created:** [June 29, 2021, 3:30pm UTC](https://discuss.kubernetes.io/t/how-do-i-patch-label-without-disturbing-the-ones-already-present/16510 "2021-06-29T15:30:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmanjappa](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/mmanjappa/32/8015_2.png) [@mmanjappa](https://discuss.kubernetes.io/u/mmanjappa)\
**Post date:** [June 29, 2021, 3:30pm UTC](https://discuss.kubernetes.io/t/how-do-i-patch-label-without-disturbing-the-ones-already-present/16510/1 "2021-06-29T15:30:34Z")

</div>

Asking for help? Comment out what you need so we can get more information to help you!

### Cluster information:

Kubernetes version:4.7.7  
Cloud being used: bare-metal

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.

---

<div class="post-metadata">

**Author:** ![protosam](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/protosam/32/7732_2.png) [@protosam](https://discuss.kubernetes.io/u/protosam)\
**Post date:** [June 29, 2021, 5:37pm UTC](https://discuss.kubernetes.io/t/how-do-i-patch-label-without-disturbing-the-ones-already-present/16510/2 "2021-06-29T17:37:56Z")

</div>

Ideally, you should be using manifest files and applying them.

If you just want to do it manually, this seems to work fine.

Adding a label

```nohighlight
kubectl label pods my-pod new-label=awesome

```

Updating a label

```nohighlight
kubectl label pods my-pod new-label=woot --overwrite

```

Deleting a label

```nohighlight
kubectl label pods my-pod new-label-

```
