Use this guide when a Kubernetes node running Sensor Collector has failed and the Sensor Collector pod is not coming back on its own. The recovery path depends on your cluster type: multi-node clusters with automated remediation configured recover with minimal intervention, while single-node clusters and multi-node clusters without remediation configured require manual steps.
Prerequisites
kubectlaccess to the cluster running Sensor Collector- Cluster admin access to check or apply node taints
- For multi-node clusters: access to your remediation tooling (Cluster API MachineHealthCheck controller or Rancher)
- For single-node clusters: access to reinstall Sensor Collector via Helm (see Deploy Sensor Collector in Kubernetes)
Step 1: Confirm the node has failed
-
Check node status:
kubectl get nodes -o wideA failed node shows
NotReadyor is missing from the list entirely. -
Check the Sensor Collector pod status:
kubectl get pods -n cisco-sensor-collectors -o wideSensor Collector runs as a single replica, so recovery means rescheduling that one pod onto a healthy node. For about
ha.tolerationSeconds(30 seconds by default) after the node fails, the pod can still showRunning. After that it showsTerminatingand stays in that state, because the StatefulSet pod cannot complete termination without a kubelet confirmation from the dead node.
Step 2: Identify your cluster type
Your recovery path depends on how your cluster is configured:
| Cluster type | Recovery path |
|---|---|
Multi-node with MachineHealthCheck, Rancher node health management, or a custom out-of-service taint controller configured |
Multi-node recovery |
| Multi-node without any remediation mechanism configured | Manual remediation on a multi-node cluster |
| Single node | Single-node recovery |
If you are unsure which category applies, see Sensor Collector System Requirements for Kubernetes for the remediation mechanisms required for High Availability (HA).
Multi-Node Recovery (Automated Remediation Configured)
When remediation is configured correctly, recovery is largely automatic, provided that:
- Sensor Collector volumes use network-attached storage (
ha.storageClassName, or a network-attached default StorageClass). With node-local storage, the pod cannot move to another node; follow Single-node recovery instead. - Your remediation either removes the failed node from the cluster or taints it with
node.kubernetes.io/out-of-service.
Use these steps to confirm it worked rather than to perform the recovery yourself.
-
Confirm the failed node was removed or tainted:
kubectl get nodes kubectl describe node <failed-node-name>Cluster API MachineHealthCheck typically deletes and replaces the failed machine, so the node disappears from
kubectl get nodes. If the node is still listed, look underTaintsfornode.kubernetes.io/out-of-service. Either outcome allows Kubernetes to delete the stuck pod and release its storage without waiting for the dead kubelet. -
Confirm your remediation tool acted on the node:
- Cluster API MachineHealthCheck: the failed machine should be deleted and a replacement created.
kubectl get machinehealthcheck -A kubectl get machines -A - Rancher: check the node's health status in the Rancher UI under the cluster's Nodes view.
- Cluster API MachineHealthCheck: the failed machine should be deleted and a replacement created.
The Sensor Collector PodDisruptionBudget (ha.pdb.enabled, on by default) does not block recovery from a failed node, but it blocks kubectl drain on healthy nodes. Disable it, or delete the pod manually, before node maintenance.
-
Confirm the Sensor Collector pod rescheduled to a healthy node:
kubectl get pods -n cisco-sensor-collectors -o wide -wThe pod is marked for eviction after
ha.tolerationSeconds(30 seconds by default; see Deploy Sensor Collector in Kubernetes). It is recreated on a healthy node only after your remediation removes or taints the failed node, and it then waits for its volumes to reattach. Total recovery time therefore depends mostly on your remediation timeouts. -
Confirm the Sensor Collector service is reachable:
kubectl get svc -n cisco-sensor-collectorsLoadBalancer: the external IP routes to the new pod automatically.NodePort(the defaultservice.type): the service is exposed on every node. Sensor Agents and Telemetry Collectors configured with the failed node's IP do not reconnect until they point at a healthy node's IP or at a VIP in front of the nodes.
If your cluster uses ha.storageClassName backed by network-attached storage, the rescheduled pod reattaches to the same persistent volumes and the data buffered on disk is preserved. If remediation does not complete within the timeouts you configured, go to Manual remediation on a multi-node cluster.
Manual Remediation on a Multi-Node Cluster
Use this section if your multi-node cluster has no remediation mechanism configured, or if configured remediation did not complete.
Manually removing a node before confirming it is actually unreachable can cause data corruption if the node comes back online while Kubernetes believes it is gone. Confirm the node is truly down (power, network, or host-level failure) before proceeding.
-
Confirm the node is unreachable (via your infrastructure provider, IPMI, or physical access) — do not rely on
kubectlstatus alone. -
Apply the out-of-service taint manually to let Kubernetes force-delete the stuck pod and release its storage:
kubectl taint nodes <failed-node-name> node.kubernetes.io/out-of-service=nodeshutdown:NoExecuteEviction by this taint is not blocked by the Sensor Collector PodDisruptionBudget. If the node will never return, you can run
kubectl delete node <failed-node-name>instead, which also releases the pod.
If the Sensor Collector volumes use node-local storage, the taint does not help: the volumes stay bound to the failed node and the new pod remains Pending. The only way to run on another node is to delete the Sensor Collector PVCs, which permanently loses the data buffered on the failed node.
-
Confirm the Sensor Collector pod is force-deleted and rescheduled:
kubectl get pods -n cisco-sensor-collectors -o wide -wIf the new pod stays in
ContainerCreating, check its events for volume-attach errors:kubectl describe pod <pod-name> -n cisco-sensor-collectors -
Clean up after the failed node:
-
Node repaired: once the node is back online and shows
Ready, remove the taint:kubectl taint nodes <node-name> node.kubernetes.io/out-of-service- -
Node replaced: delete the old node object. The new node does not carry the taint.
kubectl delete node <failed-node-name>
-
Configure an automated remediation mechanism (Cluster API MachineHealthCheck, Rancher node health management, or a custom controller) after this recovery to avoid repeating these manual steps for future failures. See Sensor Collector System Requirements for Kubernetes.
Single-Node Recovery
Single-node clusters do not have a healthy node to fail over to, so Kubernetes cannot reschedule the Sensor Collector pod elsewhere. Recovery requires restoring the node itself.
A single-node Sensor Collector deployment does not use network-attached storage by default. If the failed node's local disk is unrecoverable, data collected before the failure may be unrecoverable as well.
-
Diagnose the failure at the host level (power, disk, kernel, network) and restore the node to a running state. This step is infrastructure-specific and outside the scope of this guide.
-
Once the node is back online, confirm
kubectlcan reach it:kubectl get nodesThe node should show
Ready. -
Check whether the Sensor Collector pod recovered on its own:
kubectl get pods -n cisco-sensor-collectors -
If the pod does not recover automatically, redeploy Sensor Collector using the same Helm release name and namespace so it reuses its existing configuration:
helm list --all-namespacesThen follow the installation steps in Deploy Sensor Collector in Kubernetes, using the existing name and namespace from the
helm listoutput. -
If the node itself cannot be recovered and you are provisioning a replacement, treat this as a new installation. Follow Deploy Sensor Collector in Kubernetes from Step 1, using the same instance name and namespace values from your original
.envfile if you retained a copy.
Verify Recovery
Regardless of which path you followed, confirm the Sensor Collector is fully operational:
-
Confirm the pod is
Running:kubectl get pods -n cisco-sensor-collectors -
Confirm data is flowing to Crosswork Assurance again in the UI under Sensors > Collectors > Sensor Collectors.
-
If you have connected Sensor Agents or Telemetry Collectors, confirm they reconnected to the Sensor Collector's proxy address.
Troubleshooting
Why does the pod stay in Terminating and never clear?
The StatefulSet pod is waiting for kubelet confirmation from the dead node. After confirming the node is really down, apply the node.kubernetes.io/out-of-service taint or delete the node object (see Manual remediation on a multi-node cluster) to force removal.
Why does the node not return to Ready?
The host itself needs infrastructure-level recovery (reboot, reprovision, or replacement) before Kubernetes can use it again. This is outside the scope of Sensor Collector configuration.
Why is there a gap in collected data after the outage?
Data collected between the node failure and pod recovery is lost unless your monitored devices buffer and replay telemetry independently of Sensor Collector. Sensor Collector itself does not backfill historical data for the outage window.
Related Documentation
- Sensor Collector System Requirements for Kubernetes
- Deploy Sensor Collector in Kubernetes
- Upgrading Sensor Collector
© 2026 Cisco and/or its affiliates. All rights reserved.
For more information about trademarks, please visit: Cisco trademarks
For more information about legal terms, please visit: Cisco legal terms