kube-apiserver¶
cluster info¶
detailed information about the overall health of the cluster
check kube-apiserver is running and hasn't crashed¶
https://discuss.kubernetes.io/t/the-connection-to-the-server-localhost-8080-was-refused-did-you-specify-the-right-host-or-port/1464/3
check kube-apiserver SSL cert¶
https://stackoverflow.com/questions/67132520/kubelet-service-cant-access-kube-apiserver-at-port-6443-with-https-due-to-error
check kube-apiserver health¶
https://kubernetes.io/docs/reference/using-api/health-checks/
Why disable swap on kubernetes¶
https://serverfault.com/questions/881517/why-disable-swap-on-kubernetes
Support for swap is non-trivial.
Guaranteed pods should never require swap.
Burstable pods should have their requests met without requiring swap.
BestEffort pods have no guarantee.
The kubelet right now lacks the smarts to provide the right amount of predictable behavior here across pods.
The connection to the server ip:6443 was refused - did you specify the right host or port?¶
https://discuss.kubernetes.io/t/the-connection-to-the-server-host-6443-was-refused-did-you-specify-the-right-host-or-port/552
https://www.reddit.com/r/kubernetes/comments/10aya7n/master_node_not_accessible_after_a_few_minutes
certs expired
has config setup correctly?
disable SWAP
further steps?swapoff -acheck if docker was running
checked if kubelet was running, any log errors?
disk is under 20GB but it is 100GB already
df -Hreboot the master
firewall blocks the port
looking with netstat to see if something is running on port 6443
kubeadm reseton master and worker nodes?