Closed lkgGitHub closed 1 year ago
Hi @lkgGitHub ;
It might be that your network can't connect to an external service such as 8.8.8.8; which we do to determine the IP address to use (the one that matches with the default route). Try using the pg_autoctl do show commands to debug your situation.
$ PG_AUTOCTL_DEBUG=1 pg_autoctl do show ipaddr
$ PG_AUTOCTL_DEBUG=1 pg_autoctl do show hostname
If your environment makes it hard for pg_autoctl to find the IP address of the default routing interface, please use --hostname
with either an IP address or a DNS entry. I realise we could probably make it possible to provide with a service name other than 8.8.8.8 to use to determine the default IP address, though: contributions welcome!
Thanks for your advice
The image I built with the Dockerfile you provided. I start the container in kubernetes and it failed. This is a failure log.
Running hostname in the pod can return the hostname of the pod. I don't know what to do next. I sincerely hope to get your help