`Error: create: failed to create: Secret "sh.helm.release.v1.platform.v12" is invalid: data: Too long: must have at most 1048576 bytes`
AdvancedTroubleshootingInstall & Upgrade Failures
Answer
Likely causes → The release record (chart files, values and manifests, gzipped) exceeds the 1 MiB object limit. Common with umbrella charts, large embedded files (dashboards, CRDs in templates), or junk included because .helmignore is incomplete.
Diagnose →
helm package ./platform && ls -lh platform-*.tgz
tar -tzvf platform-*.tgz | sort -k3 -n | tail -20
Fix → Exclude unneeded files via .helmignore, move big dashboards into separate ConfigMaps managed elsewhere, split the umbrella into multiple releases. As a last resort, HELM_DRIVER=sql.
Prevent → CI check on package size; prefer smaller, independent releases.
More on Install & Upgrade Failures
`Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress`Beginner`Error: INSTALLATION FAILED: rendered manifests contain a resource that already exists. Unable to continue with install: Service "shop-api" in namespace "shop" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "shop"`Advanced`Error: INSTALLATION FAILED: cannot re-use a name that is still in use`Beginner`Error: UPGRADE FAILED: context deadline exceeded`Beginner`Error: UPGRADE FAILED: release shop failed, and has been rolled back due to atomic being set: context deadline exceeded`Intermediate`Error: UPGRADE FAILED: cannot patch "shop-api" with kind Deployment: Deployment.apps "shop-api" is invalid: spec.selector: Invalid value: v1.LabelSelector{...}: field is immutable`Advanced