zalando / zalando/postgres-operator

Pgbouncer - pod creation fail on Openshift cluster

Open
#2,037 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
5.2k
Forks
1.1k
Avg merge
2d 16h
Merged PRs (30d)
3

Description

  • Which image of the operator are you using? registry.opensource.zalan.do/acid/postgres-operator:v1.8.2
  • Where do you run it - cloud or metal? Kubernetes or OpenShift? Openshift - on-prem cluster
  • Are you running Postgres Operator in production? no
  • Type of issue? question

Hello.

We have been trying to set up a postgres-operator cluster on Openshift.
Postgres cluster (statefulset) is created and all pods are running properly.
But pgbouncer pods don't want to start.

Pgbouncer pod logs show following message:

+ '[' pooler '=' postgres ]
+ openssl req -nodes -new -x509 -subj '/CN=spilo.dummy.org' -keyout /etc/ssl/certs/pgbouncer.key -out /etc/ssl/certs/pgbouncer.crt
Generating a RSA private key
.......................+++++
...............................................+++++
writing new private key to '/etc/ssl/certs/pgbouncer.key'
req: Can't open "/etc/ssl/certs/pgbouncer.key" for writing, Permission denied

Did someone have the same problem and managed to find a solution?
If so - what configuration/changes needs to be applied in order to enable pgbouncer pods?
Thanks in advance for answers!

Below code describes configuration we used to deploy postgres-operator:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the pgbouncer pod logs and compare the linked Helm values.yml and cluster manifest with the OpenShift RBAC manifest operator-service-account-rbac-openshift.yaml. Investigate why the pod cannot write /etc/ssl/certs/pgbouncer.key; done means identifying a configuration or permission change that lets the pgbouncer pods start on OpenShift.

Written by the indexing model from the issue text.

Assessment

Tech stack
kubernetes, postgresql
Domain
database, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.