#see https://kubernetes.io/docs/reference/kubectl/cheatsheet/ # Retrieve cluster info kubectl cluster-info dump # every component with namespace kube-system kubectl get all --namespace kube-system # Networking kubectl get nodes --output json # Flannel logging kubectl logs -n kube-system kube-flannel-ds-cw7kf -c kube-flannel kubectl get pod kube-flannel-ds-cw7kf --namespace kube-system -o yaml # Kube-DNS kubectl describe pods -l k8s-app=kube-dns -n kube-system kubectl get nodes --output=jsonpath='{range .items[*]}{.status.addresses[?(@.type=="InternalIP")].address} {.spec.podCIDR} {"\n"}{end}' # CoreDNS kubectl describe pod/coredns-65db874f4f-lz5hl --namespace kube-system