postgres-operator icon indicating copy to clipboard operation
postgres-operator copied to clipboard

Expose services over NodePort

Open k0da opened this issue 5 years ago • 10 comments

For migration purposes we must expose postgres outside of k8s cluster, our main exposure method is a NodePort.

It would be nice if cluster CRD will allow to alter service type to a NodePort and optionally specify a value for nodeport number

k0da avatar May 19 '20 12:05 k0da

I would also like this option!

nutellinoit avatar May 28 '20 16:05 nutellinoit

Sounds like a reasonable small PR to do. There is some code already around service creation and config so that would be the place to start. (compare lb vs non lb service)

Jan-M avatar Jun 04 '20 17:06 Jan-M

There is a WIP PR https://github.com/zalando/postgres-operator/pull/994 from me

k0da avatar Jun 04 '20 17:06 k0da

Thanks. I am waiting for this option too

arpitarathi avatar Jun 29 '20 08:06 arpitarathi

Can one simply update the ClusterIP service to be of NodePort type while we wait for @k0da's PR to approve?

worldofgeese avatar Feb 03 '21 16:02 worldofgeese

I'll also take the risk of drawing @Jan-M's attention back to this one.

worldofgeese avatar Feb 04 '21 15:02 worldofgeese

Still no update on this?

Vivida1 avatar Mar 23 '21 16:03 Vivida1

We're using a NodePort Ingress as a workaround for this, would really love to get native NodePort support.

kien-truong avatar Oct 13 '21 11:10 kien-truong

NodePort could be very helpful feature for migration purposes.

darkfessing avatar Sep 05 '23 20:09 darkfessing

opened another PR for this: https://github.com/zalando/postgres-operator/pull/2986

lucasl0st avatar Nov 15 '25 14:11 lucasl0st