Prometheus StatefulSet pod stuck `Pending` with `0/6 nodes are available: 6 node(s) had volume node affinity conflict`
IntermediateTroubleshootingKubernetes monitoring and the Prometheus Operator
Answer
Likely causes → The EBS PV lives in one AZ, and there is no schedulable node in that AZ (node group scaled in or moved).
Diagnose →
kubectl get pv $(kubectl get pvc -n monitoring prometheus-k8s-db-prometheus-k8s-0 -o jsonpath='{.spec.volumeName}') -o jsonpath='{.spec.nodeAffinity}'
kubectl get nodes -L topology.kubernetes.io/zone
Fix → Add capacity in that AZ, or restore the data into a new volume in another AZ.
Prevent → Use volumeBindingMode: WaitForFirstConsumer and keep node groups spread across all AZs.
More on Kubernetes monitoring and the Prometheus Operator
A new ServiceMonitor is not picked up by the Prometheus OperatorIntermediateServiceMonitor is selected but its targets don't appear on `/targets`IntermediateServiceMonitor target appears but Operator logs `skipping servicemonitor ... failed to get secret`AdvancedPodMonitor targets show `DOWN` with `connection refused` on port 8080 while the app listens on 9090BeginnerPrometheusRule created but rules don't show in PrometheusIntermediate`KubeletDown` / `TargetDown` alerts fire for kube-scheduler and kube-controller-manager on EKS/GKEBeginner