Rancher is management, not the data path. If Rancher fails, only access through the Rancher proxy fails – the applications notice nothing.
Symptom
kubectl --kubeconfig "$A" --context werk get nodes --request-timeout=10s Error from server (ServiceUnavailable): the server is currently unable to handle the request (get nodes)
The rancher deployment is scaled to 0.
Diagnosis
Ask the cluster directly, bypassing Rancher – via the Authorized Cluster Endpoint context.
kubectl --kubeconfig "$A" --context werk-werk1 -n notes get pods | head -3 NAME READY STATUS RESTARTS AGE api-5968bfb5cc-5smz4 1/1 Running 11 (12m ago) 81m api-5968bfb5cc-zzpn8 1/1 Running 9 (11m ago) 81m
Causes
Rancher proxyThe context runs through Rancher
The context werk sends every request through Rancher to the cluster. Without a Rancher pod nobody answers.
data pathApplications keep running
notes keeps answering: Rancher is not in the data path of the applications.
Fix
kubectl -n cattle-system scale deploy rancher --replicas=1 kubectl -n cattle-system rollout status deploy/rancher --timeout=300s deployment.apps/rancher scaled deployment "rancher" successfully rolled out
Don't: Handing out new kubeconfigs with admin certificates during the outage – set up the Authorized Cluster Endpoint beforehand, then the direct way already exists.
Rancher hands-on, Day 14: API tokens, keys, Authorized Cluster Endpoint, a Rancher outage and Pod Security.
Go to day 14 →
FAQ
What is the Authorized Cluster Endpoint?
An additional context in the kubeconfig that talks directly to the cluster's API server – with Rancher users, but without Rancher in the way.
Does Fleet keep running without Rancher?
Existing deployments keep running. Fleet distributes new commits again only once Rancher and its controllers run.