Interview Prep/Kubernetes/Control plane, RBAC, webhooks and autoscaling

You edited `/etc/kubernetes/manifests/kube-apiserver.yaml` to add an audit flag and now the API server is gone and does not come back.

IntermediateTroubleshootingControl plane, RBAC, webhooks and autoscaling
Answer

Likely causes → The new flag points at a file that is not mounted into the static Pod (audit policy path), or the YAML is invalid, so the kubelet cannot start the Pod or the container exits immediately.

Diagnose →

sudo journalctl -u kubelet --since "10 min ago" | grep -i apiserver
sudo crictl ps -a --name kube-apiserver
sudo crictl logs <id>    # e.g. "open /etc/kubernetes/audit-policy.yaml: no such file or directory"

Fix → Add the matching volumes and volumeMounts (hostPath) for the policy file and log directory, or restore the backup. Keep backups outside the manifests directory; the kubelet runs every file in it.

Prevent → Change control-plane flags through kubeadm ClusterConfiguration extraArgs/extraVolumes and apply with kubeadm upgrade workflows.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Control plane, RBAC, webhooks and autoscaling