Detect k8s cluster domain automatically instead of using cluster.local blindly

Description

It's impossible to spawn cluster with default cr.yaml settings if kubernetes cluster domain is not default
https://forums.percona.com/t/mongodb-error-code-127/24049/13?u=nickolay.ihalainen

{“t”:{“$date”:“2023-08-01T10:55:20.250+00:00”},“s”:“W”, “c”:“NETWORK”, “id”:21207, “ctx”:“conn9”,“msg”:“getaddrinfo() failed”,“attr”:{“host”:“mongodb-percona-cfg-1.mongodb-percona-cfg.psmdb.svc.cluster.local”,“error”:“Name or service not known”}}

Ideal solution could be detect the cluster domain automatically on the operator side

Environment

None

Activity

Details

Assignee

Reporter

Needs QA

Yes

Affects versions

Priority

Smart Checklist

Created August 2, 2023 at 9:17 AM
Updated March 5, 2024 at 4:27 PM