postgres-operator
postgres-operator copied to clipboard
Custom database port
Please, answer some short questions which should help us to understand your problem / question better?
- Which image of the operator are you using? registry.opensource.zalan.do/acid/postgres-operator:v1.5.0
- Where do you run it - cloud or metal? Kubernetes or OpenShift? AWS K8s
- Are you running Postgres Operator in production? soon
- Type of issue? question
Is there a way to customize the database port? (5432 by default). Thanks!
I don't see a way to specify another port used for the service. I guess your question is related to exposing the service through a loadbalancer. You will need an external IP address for each database cluster as the port number can't be changed.
Upping this! Is there any way to customize the service port? Are there any plans to add that functionality if it's not implemented yet?
It's not supported on pod/pg level. But likely not needed. For LBs check the service annotations.
I'm not sure I understand, could you please provide more info on how to handle the LB port through the use of service annotations? I searched for this on the official documentation and didn't find anything related. We are currently using the chart and the LB port is the default 5432, which we would like to change for security. How do you handle this in your environments? Thank you!