Interview Prep/Helm/Install & Upgrade Failures

`Error: UPGRADE FAILED: failed to replace object: Service "shop-api" is invalid: spec.clusterIP: Invalid value: "": field is immutable`

IntermediateTroubleshootingInstall & Upgrade Failures
Answer

Likely causes → --force was used; Helm replaced the whole object, and the rendered Service has no clusterIP, which the API server treats as an attempt to change an immutable field.

Diagnose → Check the pipeline flags for --force.

Fix → Remove --force and upgrade normally. If you truly need to recreate the object, delete it explicitly and upgrade.

Prevent → Ban --force in CI; handle immutable-field changes with explicit runbooks.

All Helm questions Roadmap: Helm

More on Install & Upgrade Failures