CODE/2022-09-08

Troubleshooting Kubernetes API Connection Refusals After a Power Outage

After a power outage, kubectl may report that the Kubernetes API server connection was refused. This indicates the endpoint could not accept a connection; it does not by itself identify the cause.

Check the endpoint and node

Verify the kubeconfig endpoint, DNS resolution, network routing, and the control-plane host. Check that firewalls allow the required traffic rather than disabling the firewall globally.
On the affected node:
bash_snippet
Bash · 2 lines|
sudo systemctl status kubelet
sudo journalctl -u kubelet -b --no-pager
Inspect disk space, runtime health, and control-plane container logs using the container runtime's tools. In kubeadm installations, control-plane components are normally static Pods whose manifests are under /etc/kubernetes/manifests.

Check swap and configuration

Determine whether swap behavior is supported and configured for your Kubernetes version. Compare kubelet and runtime settings with the cluster's intended configuration. Address errors shown in the logs rather than assuming an exit code points to a particular cause.
Do not delete kubelet state files as a generic repair. CPU manager state in particular may require a specific documented recovery procedure and workload planning.

Verify recovery

Once the API server is reachable, check the cluster:
bash_snippet
Bash · 2 lines|
kubectl get nodes
kubectl get pods -A
Investigate any remaining unhealthy control-plane components or workloads before returning the cluster to service.
COMPANION ESSAYS / 思想脉络与互照篇目
同卷深读2026-05-22 ·

Installing Python 3 Alongside System Python on CentOS 7

同属「系统工程卷」脉络衍生思考与工程推演推演阅读 →
跨界互照2026-08-22 ·

我的书架:03|金融经管:经济运行、金融体系与企业治理

我的书架:03|金融经管:经济运行、金融体系与企业治理

跨领域对照思辨 · 从「思想随笔」视界互为印证推演阅读 →
RELATED INDEX / 相关阅读索引
柯航hang.ke·© 2014—2026
CC BY-NC 4.0·