Adding metadata annotations for service discovery to helm chart

Hi,

I need to add an annotation to the helm chart: percona-helm-charts/charts/pg-db at main · percona/percona-helm-charts · GitHub

I need to add ‘consul.hashicorp.com/connect-inject’: ‘true’, how would I go about doing this? Thanks.

1 Like

Hi @jason123 , thank you for posting to the Percona forums!

It depends on what kind of resource you wish to add your annotation against. Some are supported, and some are pending development effort, such as our backup pod:
https://jira.percona.com/browse/K8SPXC-965

1 Like

@Michael_Coburn I just want something like below within the kubernetes deployments pg-db-pgbouncer and pg-db:

spec:
  template:
    metadata:
      annotations:
        'consul.hashicorp.com/connect-inject': 'true'

I want to integrate service discovery such as consul and it needs an annotation within the pod such as

apiVersion: v1
  kind: Pod
    metadata:
      annotations:
        'consul.hashicorp.com/connect-inject': 'true'
1 Like

@jason123 Could you please share with me if you have figured it out?

1 Like