cloudnative-pg / charts

CloudNativePG Helm Charts
Apache License 2.0
137 stars 62 forks source link

[Help] PgBouncer NodeSelector #285

Closed clickersmudge closed 1 month ago

clickersmudge commented 1 month ago

Hi, I can't figure out how to configure PgBouncer to schedule on the the indicated node.

How to properly set the

# nodeSelector:
      # example: example

for Pgbouncer in Helm Chart?

itay-grudev commented 1 month ago

The Pooler deployment is managed by the operator, but you can pass in a template to override certain properties.

See pooler.template.

https://cloudnative-pg.io/documentation/1.23/cloudnative-pg.v1/#postgresql-cnpg-io-v1-PoolerSpec

clickersmudge commented 4 weeks ago

Thanks @itay-grudev

clickersmudge commented 4 weeks ago

Hi @itay-grudev

I'm trying

template:
  nodeSelector:
    architecture: x86
template:
    spec:
      containers:
        nodeSelector:
          architecture: x86

And some other combinations, but it doesn't work.

itay-grudev commented 4 weeks ago

If you follow the API documentation:

You will find, the correct configuration to be:

pooler:
  template:
    spec:
      nodeSelector:
        architecture: x86
clickersmudge commented 4 weeks ago

@itay-grudev You're right, and that's exactly what I've been doing since the beginning,

obraz

I use Argo CD. After adding the configuration there is a problem. Pooler not sync. obraz

obraz obraz

itay-grudev commented 4 weeks ago

Hmm. Then you might want to raise an issue in https://github.com/cloudnative-pg/cloudnative-pg/ for the use case of only overriding certain properties, if one doesn't exist already.