timescale / helm-charts

Configuration and Documentation to run TimescaleDB in your Kubernetes cluster
Apache License 2.0
264 stars 223 forks source link

Service selector is empty when launching timescaledb-single with one replica #444

Open theelderbeever opened 2 years ago

theelderbeever commented 2 years ago

What happened? The service selector for the master node is not populated when replica count is set to 1. Seems to have something to do with not promoting a master? Manually adding selectors for role: master, app: ..., etc works however, changes to the release will remove these again.

Did you expect to see something different? The service selector should work regardless of the number of replicas provisioned.

How to reproduce it (as minimally and precisely as possible): Set replicas: 1 in the helm chart and launch. Then check the master service or try to port-forward to it. No endpoints exist.

Environment

Server Version: version.Info{Major:"1", Minor:"23+", GitVersion:"v1.23.7-eks-4721010"

Tested on Microk8s 1.25 and OCI 1.23 as well

Anything else we need to know?:

agronholm commented 2 years ago

Duplicate of #394?

theelderbeever commented 2 years ago

Looks like a partial duplicate. My bad on issue searching. That said I don't think the issue is related to the load balancer. I am running with load balancers. The replica count is what I have sourced it to.