https://kubernetes.io/docs/tasks/debug-application-cluster/debug-cluster/#looking-at-logs
sudo journalctl -u kube-apiserver --follow
see https://kubernetes.io/docs/reference/kubectl/cheatsheet/
kubectl cluster-info dump
kubectl get all --namespace kube-system
kubectl get all --all-namespaces
ETCDCTL_API=3 etcdctl --endpoints=https://127.0.0.1:2379 --cacert=/etc/etcd/ca.pem --cert=/etc/etcd/kube-apiserver.pem --key=/etc/etcd/kube-apiserver-key.pem get / --prefix --keys-only
kubectl get nodes --output json
kubectl logs -n kube-system kube-flannel-ds-cw7kf -c kube-flannel
kubectl get pod kube-flannel-ds-cw7kf --namespace kube-system -o yaml
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}'
see https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/
kubectl logs --namespace=kube-system
kubectl describe pod/coredns-65db874f4f-lz5hl --namespace kube-system
kubectl run hostnames --image=k8s.gcr.io/serve_hostname \
--labels=app=hostnames \
--port=9376 \
--replicas=3
kubectl expose deployment hostnames --port=80 --target-port=9376
kubectl describe nodes