Interview Prep/Monitoring & Observability/Kubernetes monitoring and the Prometheus Operator

Prometheus Operator logs `sync "monitoring/k8s" failed: ... the server could not find the requested resource` after upgrade

AdvancedTroubleshootingKubernetes monitoring and the Prometheus Operator
Answer

Likely causes → CRDs are older than the Operator version; Helm does not upgrade CRDs automatically.

Diagnose → kubectl get crd prometheuses.monitoring.coreos.com -o jsonpath='{.metadata.annotations}' and compare with the Operator release.

Fix → Apply the matching CRDs (server-side to avoid size limits):

kubectl apply --server-side -f https://github.com/prometheus-operator/prometheus-operator/releases/download/<version>/stripped-down-crds.yaml

Prevent → Make CRD upgrades an explicit step in your upgrade runbook.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Kubernetes monitoring and the Prometheus Operator