Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.
This repository was archived by the owner on Feb 22, 2022. It is now read-only.

[stable/postgresql] Can't log into user account #16251

@ad-si

Description

@ad-si

Describe the bug

I have stable/postgres as a requirement for my chart. Then I install it with:

helm install -f values.yaml .

values.yaml contains:

postgresqlDatabase: my-database
postgresqlUsername: postgres
postgresqlPassword: secret

global:
  postgresql:
    postgresqlDatabase: my-database
    postgresqlUsername: postgres
    postgresqlPassword: secret

When I now attach to the postgres pod with kubectl exec -it my-release-postgresql-0 bash
and try to log in with the password secret it doesn't work:

$ psql -U postgres
Password for user postgres:
psql: FATAL:  password authentication failed for user "postgres"

Version of Helm and Kubernetes:

$ helm version
Client: &version.Version{SemVer:"v2.14.3", GitCommit:"0e7f3b6637f7af8fcfddb3d2941fcc7cbebb0085", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.14.2", GitCommit:"a8b13cc5ab6a7dbef0a58f5061bcc7c0c61598e7", GitTreeState:"clean"}
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.3", GitCommit:"5e53fd6bc17c0dec8434817e69b04a25d8ae0ff0", GitTreeState:"clean", BuildDate:"2019-06-06T01:44:30Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.3", GitCommit:"5e53fd6bc17c0dec8434817e69b04a25d8ae0ff0", GitTreeState:"clean", BuildDate:"2019-06-06T01:36:19Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
$ docker --version
Docker version 19.03.1, build 74b1e89

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions