Difference between revisions of "Microk8s DNS Troubleshooting"

From UVOO Tech Wiki
Jump to navigation Jump to search
Line 12: Line 12:
 
kubectl delete pod -n kube-system -l k8s-app=kube-dns
 
kubectl delete pod -n kube-system -l k8s-app=kube-dns
 
```
 
```
 +
  
 
  10.152.183.10 cluster ip address
 
  10.152.183.10 cluster ip address
 +
```
 +
$ kubectl get svc -n kube-system
 +
NAME      TYPE        CLUSTER-IP      EXTERNAL-IP  PORT(S)                  AGE
 +
kube-dns  ClusterIP  10.152.183.10  <none>        53/UDP,53/TCP,9153/TCP  77m
 +
```

Revision as of 05:07, 11 October 2021

https://github.com/ChristofSchwarz/qseok_on_Microk8s/issues/1

Get current configuration of KubeDNS (coredns)
kubectl describe configmap coredns -n kube-system

Check the logs of coredns
kubectl logs --selector k8s-app=kube-dns -n kube-system

Restart the coredns pod:
kubectl delete pod -n kube-system -l k8s-app=kube-dns

10.152.183.10 cluster ip address

$ kubectl get svc -n kube-system
NAME       TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)                  AGE
kube-dns   ClusterIP   10.152.183.10   <none>        53/UDP,53/TCP,9153/TCP   77m