Interview Prep/Helm/Install & Upgrade Failures

`Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: resource mapping not found for name: "shop" namespace: "" from "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1" ensure CRDs are installed first`

IntermediateTroubleshootingInstall & Upgrade Failures
Answer

Likely causes → The chart renders a custom resource whose CRD is not installed (Prometheus Operator missing), or is installed in a different API version.

Diagnose →

kubectl api-resources | grep -i servicemonitor
kubectl get crd servicemonitors.monitoring.coreos.com

Fix → Install the CRD (kube-prometheus-stack or prometheus-operator-crds chart) first, or disable the feature (metrics.serviceMonitor.enabled=false). Better, guard the template with .Capabilities.APIVersions.Has "monitoring.coreos.com/v1/ServiceMonitor".

Prevent → Capability checks in charts and ordered installs (Helmfile needs, Argo CD sync waves).

All Helm questions Roadmap: Helm

More on Install & Upgrade Failures