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

How do I modify the hostname?

Open budimanjojo opened this issue 3 years ago • 1 comments
trafficstars

Hello, the host of the cluster in the secret file is set to <cluster-name>.<namespace>.svc. There are some images can't work with that, they need just the <cluster-name> or the full FQDN which is <cluster-name>.<namespace>.svc.<k8s-cluster-hostname>. Is there a way to add the cluster-local which is my kubernetes hostname to the host key? Thanks.

budimanjojo avatar Mar 02 '22 10:03 budimanjojo

I am facing the same issue. My secrets consider as host <service-name>.<namespace>.svc They miss the default cluster domain cluster.local

I am not sure how this failed to be correct. I checked in one Postgres pod nslookup:

bash-4.4$ nslookup kubernetes.default.svc
Server:         10.43.0.10
Address:        10.43.0.10#53

Name:   kubernetes.default.svc.cluster.local
Address: 10.43.0.1

this look correct and we see the default domain cluster.local

clempat avatar Apr 17 '22 09:04 clempat