# Labeling on HaProxy Service in Percona Operator

**URL:** https://forums.percona.com/t/labeling-on-haproxy-service-in-percona-operator/13153
**Category:** Percona Operator for MySQL
**Tags:** mysql, percona
**Created:** [November 22, 2021, 10:09am UTC](https://forums.percona.com/t/labeling-on-haproxy-service-in-percona-operator/13153 "2021-11-22T10:09:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![cmg1986](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@cmg1986](https://forums.percona.com/u/cmg1986)
#### Post date: [November 22, 2021, 10:09am UTC](https://forums.percona.com/t/labeling-on-haproxy-service-in-percona-operator/13153/1 "2021-11-22T10:09:44Z")

</div>

Hello,

During MySQL instance deployment from Percona MySql Operator, i noticed something like below -

```auto
kubectl describe svc mysql-1314-pxc-db-haproxy -n ns1
Name: mysql-1314-pxc-db-haproxy
Namespace: ns1
Labels: app.kubernetes.io/component=haproxy
                          app.kubernetes.io/instance=mysql-1314-pxc-db
                          app.kubernetes.io/managed-by=percona-xtradb-cluster-operator
                          app.kubernetes.io/name=percona-xtradb-cluster
                          app.kubernetes.io/part-of=percona-xtradb-cluster

```

In my requirement, i need to put some extra label on Haproxy Svc so if i try to label them by some kubectl command then those labels would not persist.  
Any idea, how we can put some more labels on these SVC permanently ?

Thanks  
Chandra

---

<div class="post-metadata">

### Author: ![Slava\_Sarzhan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/slava_sarzhan/32/3196_2.png) [@Slava\_Sarzhan](https://forums.percona.com/u/Slava_Sarzhan)
#### Post date: [November 23, 2021, 10:03am UTC](https://forums.percona.com/t/labeling-on-haproxy-service-in-percona-operator/13153/2 "2021-11-23T10:03:00Z")

</div>

Hi @cmg1986 ,

We know about it and we have added improvement to our operator. Starting from 1.11.0 you will have possibility to add labels on haproxy services.

Please see [[K8SPXC-738] Labels are not applied to Service - Percona JIRA](https://jira.percona.com/browse/K8SPXC-738)

---

<div class="post-metadata">

### Author: ![cmg1986](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@cmg1986](https://forums.percona.com/u/cmg1986)
#### Post date: [November 23, 2021, 11:26am UTC](https://forums.percona.com/t/labeling-on-haproxy-service-in-percona-operator/13153/3 "2021-11-23T11:26:05Z")

</div>

@SlavaSarzhan  
So as of now, whats fix… as there is no service getting deployed through deploy/cr.yaml then how can we update label for this haproxy svc ?

---

<div class="post-metadata">

### Author: ![Slava\_Sarzhan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/slava_sarzhan/32/3196_2.png) [@Slava\_Sarzhan](https://forums.percona.com/u/Slava_Sarzhan)
#### Post date: [November 24, 2021, 10:28am UTC](https://forums.percona.com/t/labeling-on-haproxy-service-in-percona-operator/13153/4 "2021-11-24T10:28:04Z")

</div>

@cmg1986 You will need just to add label into CR e.g. [percona-xtradb-cluster-operator/cr.yaml at main · percona/percona-xtradb-cluster-operator · GitHub](https://github.com/percona/percona-xtradb-cluster-operator/blob/main/deploy/cr.yaml#L293-L294) for HaProxy service and apply it. The services will be updated.

P.S. The code was merged into main branch and you can test it but please note it is not production ready. If you want to use it in production you need to wait for release.
