Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Kubernetes Install docs include wrong PG hostname #4054

Closed
@jamesottaway

Description

@jamesottaway

The docs suggest this PG URL:

postgres://coder:[email protected]:5432/coder?sslmode=disable

When following the instructions I got the following from helm install coder-db bitnami/postgresql:

❯ helm install coder-db bitnami/postgresql \
    --namespace coder \
    --set auth.username=coder \
    --set auth.password=coder \
    --set auth.database=coder \
    --set persistence.size=10Gi

…

PostgreSQL can be accessed via port 5432 on the following DNS names from within your cluster:

    coder-db-postgresql.coder.svc.cluster.local - Read/Write connection

I didn't notice the different hostname until I checked the pod's logs and found this:

ping postgres: dial tcp: lookup postgres-postgresql.coder.svc.cluster.local on 10.96.0.10:53: no such host

Is this just a simple update based on a change in the PG Helm chart, or is there a better way to get the hostname out of the PG pod?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions