Skip to content

Connect locally running pgAdmin with master Pod #2173

@TAM360

Description

@TAM360

Please, answer some short questions which should help us to understand your problem / question better?

  • Which image of the operator are you using? ghcr.io/zalando/spilo-15:2.1-p9
  • Where do you run it - cloud or metal? Kubernetes or OpenShift? Bare Metal K8s v1.24
  • Are you running Postgres Operator in production? no
  • Type of issue? question

Hi everyone, I am currently experimenting with Postgres Operator as a replacement of Stolon. I want to access the Postgres database outside of K8s cluster. The problem is that every time I create a DB through CRD, 2 services get created of type ClusterIP:

  • 1 with replica Pod's selectors
  • Other one without any master Pod's selector

list _of_services_of_postgres_db

I've 2 questions:

  1. How can I connect a DB client (e.g pgAdmin or Databricks) running on my local machine with the master DB pod? I can port-forward the master Pod as mentioned in the documentation but I want to use service instead.
  2. How will applications connect with master Pod when they're deployed in k8s cluster?

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