I am trying to setup greenplum on onprem k8s cluster. I am hitting with an SSH connection issue with the host:
ssh: Could not resolve hostname segment-a-0.agent.default.svc.cluster.local: Temporary failure in name resolution
But the name resolves when I manually tried with ssh and also nslookup.
I had to add the following entries into the master-0 node's /etc/hosts
10.42.18.14 master-0.agent.default.svc.cluster.local master-0
10.42.19.12 master-1.agent.default.svc.cluster.local master-1
10.42.15.12 segment-a-0.agent.default.svc.cluster.local segment-a-0
10.42.20.12 segment-b-0.agent.default.svc.cluster.local segment-b-0
Without this, the script (/home/gpadmin/tools/wrap_initialize_cluster.bash) is trying to access the nodes using with hostname sometimes and with FQDN sometimes.
Errors something like this,
"stderr='pg_basebackup: could not connect to server: could not translate host name "master-0" to address: Name or service not known"
indicates that there seems to be some inconsistency in the naming.
May I know if this is a known issue or if there is a workaround?
Thanks