'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

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?



Solution 1:[1]

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?

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Blender Fox