Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netmaker-0 can't see any internal domain names #5

Open
chukynax opened this issue Jun 8, 2022 · 1 comment
Open

netmaker-0 can't see any internal domain names #5

chukynax opened this issue Jun 8, 2022 · 1 comment

Comments

@chukynax
Copy link

chukynax commented Jun 8, 2022

Netmaker container not able to connect to psql service as soon as other pods successfully able to

2022/06/08 18:41:05 [netmaker] connecting to postgres
2022/06/08 18:41:05 [netmaker] unable to connect to db, retrying . . .
2022/06/08 18:41:07 [netmaker] unable to connect to db, retrying . . .
2022/06/08 18:41:09 [netmaker] unable to connect to db, retrying . . .
2022/06/08 18:41:11 [netmaker] unable to connect to db, retrying . . .
2022/06/08 18:41:13 [netmaker] unable to connect to db, retrying . . .
2022/06/08 18:41:15 [netmaker] unable to connect to db, retrying . . .
2022/06/08 18:41:15 [netmaker] Error connecting to database
2022/06/08 18:41:15 dial tcp: lookup netmaker-postgresql-ha-pgpool.default.svc.cluster.local: no such host
k exec -it netmaker-0 -- cat /etc/resolv.conf                                        
Defaulted container "netmaker" out of: netmaker, init-sysctl (init)
nameserver 169.254.25.10
search default.svc.cluster.local svc.cluster.local cluster.local atmo.video openstacklocal
options ndots:5
root@nginx-656945f87b-nwp4j:/# cat /etc/resolv.conf 
nameserver 169.254.25.10
search default.svc.cluster.local svc.cluster.local cluster.local atmo.video openstacklocal
options ndots:5
root@nginx-656945f87b-nwp4j:/# ping netmaker-postgresql-ha-pgpool.default.svc.cluster.local
PING netmaker-postgresql-ha-pgpool.default.svc.cluster.local (10.233.18.153): 56 data bytes
64 bytes from 10.233.18.153: icmp_seq=0 ttl=64 time=0.052 ms
^C--- netmaker-postgresql-ha-pgpool.default.svc.cluster.local ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.052/0.052/0.052/0.000 ms
@afeiszli
Copy link
Contributor

Please try with the latest Helm, though I think this is likely a cluster-specific issue if the pod cannot find the service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants