Install fails with error create: failed to create: Secret "sh.helm.release.v1.<release>.v1" is invalid:data:Too long:must have at most 1048576 bytes

1/25/2022

I have multiple sub-charts under a single composite/umbrella chart. What could be the possible reasons for this error? Are there constraints with the sizes of a particular yaml? What should at most have 1048576 bytes? What can be the possible solutions so that more charts can be added to the composite/umbrella chart?

-- Darshil Shah
helm3
helmfile
kubernetes
kubernetes-helm

1 Answer

1/25/2022

Secrets are limited to 1MiB in size as described here:

https://kubernetes.io/docs/concepts/configuration/secret/#restrictions

What are you trying to encode into a secret that makes it >1MiB?

-- Blender Fox
Source: StackOverflow