KUBERNETES: Kubectl Commands To Check CoreDNS (kube-dns) Pods, Services & Logs
Below are commands to check coredns (kube-dns) pods, services and logs.
For listing kube-dns coredns pods, below command can be used.
# kubectl get pods --namespace=kube-system -l k8s-app=kube-dns
For listing the kube-dns service, below command cna be used.
# kubectl get svc --namespace=kube-system
For checking the logs of kube-dns pods below command can be used.
# kubectl logs --namespace=kube-system -l k8s-app=kube-dns
No comments:
Post a Comment