We have a Kubernetes-based infrastructure where services communicate with each other. We use Cloudflare to manage dns, ssl, etc. When one service want to communicate with another, use dns name. The request go outside and enter througth Cloudflare who, send the information to our kubernetes cluster. Sometimes we can see UnknownHostException.
According to the documentation, this error is produced when it can’t resolve the dns name to Ip. We can’t understand why in some requests all works correctly and other requests to the same host, appears this error.
For DNS:
We create one CNAME for each subdomain pointing to “Entry subdomain” (FQDN provided by IBM and we can’t access directly to ip) of the kubernetes cluster. We don’t know if this setting is the correct way or may cause problems.
Thank you