Interview Prep/Monitoring & Observability/Kubernetes & Multi-Cluster Observability

How do you upgrade `kube-prometheus-stack` safely, especially its CRDs?

IntermediateProductionKubernetes & Multi-Cluster Observability
Answer

helm upgrade does not update CRDs, so a new chart version can reference fields the old CRDs do not know and the operator fails. Our procedure:

  1. Read the chart's "Upgrading" notes for every major version you cross.
  2. Apply the matching CRDs first, server-side (they exceed the client-side annotation size limit):
kubectl apply --server-side --force-conflicts -f crds/   # from the prometheus-operator release that matches the chart
  1. helm diff upgrade kps prometheus-community/kube-prometheus-stack -f values.yaml --version <new> to review.
  2. Upgrade staging, verify targets, rules and Alertmanager config load, then production.
All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Kubernetes & Multi-Cluster Observability