Naming resolution on Kubernetes
I have a Kubernetes cluster on 3 ubuntu 20.04 servers. Server and client kubernetes versions are v1.23.1
I deployed 2 kubernetes deployments with helm: backend and frontend apps. One app, called backend, has an headless service (with app selector for backend app).
I would like to use headless service name to let frontend to talk with backend.
I did some test but there is something wrong.
The only way to let frontend talk to backend is using such dns name: backend-service-hs.default.svc.cluster.local; if I use "backend-service-hs" (without the fully qualified name), it does not work.
Maybe a sort of DNS resolution problem.
How can I address this issue?
regards,
m.
Last edited by mileto; 02-01-2022 at 11:12 AM.
Reason: syntax correction
|