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:
- Read the chart's "Upgrading" notes for every major version you cross.
- 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
helm diff upgrade kps prometheus-community/kube-prometheus-stack -f values.yaml --version <new>to review.- Upgrade staging, verify targets, rules and Alertmanager config load, then production.
More on Kubernetes & Multi-Cluster Observability
Which `kube-prometheus-stack` values do you always change before going to production?IntermediateOn a managed control plane (EKS, GKE, AKS), which default components and rules do you turn off?IntermediateOne Prometheus per cluster or one central Prometheus scraping every cluster?AdvancedHow do you make sure every series can be traced back to its cluster and environment?BeginnerKarpenter replaces nodes every few hours. How do you keep monitoring cheap and useful?AdvancedHow do you use metrics to right-size requests and limits across the cluster?Intermediate