Not able to connect to internet from inside the pod
My system Spec Include : I have created a Kubernetes cluster using 2 system one acts as master the other as worker node .
Operating System : NAME="Red Hat Enterprise Linux" VERSION="8.3 (Ootpa)" ID="rhel".
I installed the Kuberenetes clusted using the following the link (https://dzone.com/articles/kubernetes-installation-in-redhat-centos)
I have tried both CALICO pod network and Flannel pod network for both same issue is happening. Not able to connect to internet from inside the pod
See the below image for further details
you can see that all the pods are up and running.
My coredns pod is also up and running and the service for the respective is also up check the below image
Debugging
For debugging i tried using this link (https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/)
whenever i do nslookup it shows up the error saying (;; connection timed out; no servers could be reached ,command terminated with exit code 1)
please have a look at the below image
Can anyone please tell where exactly the problem lies . why is that from inside the pod i an not able to connect to the internet
Any help would be Appriciated Thank you.