This repository was archived by the owner on Feb 8, 2021. It is now read-only.
forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 46
Debugging FAQ
bgrant0607 edited this page Sep 11, 2014
·
20 revisions
Under construction.
Tips that may help you debug why Kubernetes isn't working.
Of course, also take a look at the documentation, especially the getting-started guides.
Depending on the Linux distribution, the logs of system components, including Docker, will be in /var/log or /tmp, or can be accessed using journalctl on systemd-based systems, such as Fedora, RHEL7, or CoreOS.
If you don't see much useful in the logs, you could try turning on verbose logging on the Kubernetes component you suspect has a problem. See https://github.com/golang/glog for more details.
sudo docker ps -a
- kubecfg cannot reach apiserver
- Ensure KUBERNETES_MASTER or KUBE_MASTER_IP is set, or use -h
- Ensure apiserver is running
- Check that the process is running on the master
- Check its logs
- kubecfg hangs forever or a pod is in state
Waitingforever- Ensure all backend components are running: controller, scheduler, etcd, kubelets
- Ensure all k8s components have --etcd_servers set correctly on the command line (if it isn't, you should see error messages in their logs)
- If it's not set, your networking setup may be broken, since it is usually initialized from the IP address of kubernetes-master, such as in cluster/saltbase/salt/apiserver/default
TODO
TODO