Skip to content

How to set default password for a user in percona-postgresql-operator #1289

@ntqp97

Description

@ntqp97

Report

I am trying to set up PostgreSQL in a Kubernetes cluster (in my local environment with kind), using the percona-postgresql-operator. I am trying to set a default password for a user, but it doesn't work

users:
    - name: postgres
      databases:
        - quotesdb
      options: "SUPERUSER"
      password:
        type: ASCII
      secretName: postgres-user-secret

More about the problem

I tried creating a secret named postgres-user-secret with a key named password however this gets overwritten when the pods related to percona pg starts up. Is it possible to setup a default password?

Steps to reproduce

Versions

  1. Kubernetes
  2. Operator
  3. Database

Anything else?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingv2.8.0

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions