Closed lpureenaece closed 3 years ago
Hi @lpureenaece
We make use of initContainers to make sure the mongodb is ready (for the nrf) and the nrf is ready (for other control plane network functions). The init containers try to connect the targets (mongodb or nrf) via the Kubernetes services exposing them. That means name resolution is required for the communication between control plane network functions and between them and the database.
First, let's check that DNS is working well in your cluster.
1) What dns solution are you using?
2) Try to follow the first step described here by creating the dns-utils pod at the same namespace as Free5GC components, and then try to resolve the IP address of the service exposing the NRF: kubectl -n free5gc-core exec -i -t dnsutils -- nrf-nnrf
Previously I have created the free5gc pods in namespace "free5gc-core" where "core-dns" pod was in "kube-system" namespace, So I changed the namespace of free5gs pods to "kube-system" and my problem has been solved.
Now able to resolve the IP address of the service exposing the NRF " kubectl exec -i -t dnsutils -n kube-system -- nslookup nrf-nnrf.kube-system"
Thanks for your support @raoufkh .
You're welcome @lpureenaece. Note that a good implementation of core-dns should ensure name resolution in all cluster namespaces.
I'll close this issue
Description:
docker images
o/p
Attached the log files-