We have upgraded our kubernates version from v1.24 to v1.25. We have used kubespray (version v1.2.21) for cluster creation. Cluster is upgraded successfully to v1.25. But once we deploy pods, not able to connect to outside networks like google.com from kubernates pods. It is throwing below error.
k8sadmin@vm-util-mtm-wes-k8-upgrade-rnd:~$ kubectl exec -i -t dnsutils – nslookup google.com
** server can’t find google.com.reddog.microsoft.com: SERVFAIL
command terminated with exit code 1
We have tried steps mentioned in this link : Debugging DNS Resolution | Kubernetes, but issue still persist. Any suggestion?
Kubernetes version: v1.25
Cloud being used: (put bare-metal if not on a public cloud) : Azure VMs
Installation method: using kubespray
Host OS: ubuntu 20.04 LTS
CNI and version: Weave , v2.8.1
CRI and version: docker, v20.10
You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.