Reputation: 495
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?
Upvotes: 0
Views: 4990
Reputation: 11425
To help troubleshoot, you can inspect the full release secret that Helm generates using
helm install $RELEASE $CHART -f $VALUES_FILE ... --debug --v=999 &> /tmp/helm.log
Unfortunately, you have to attempt to install (or upgrade) the chart to be to see the actual secret, as far as I can determine, and the format of the secret isn't really user friendly (or even compression-friendly). However, once you have just the secret in a JSON file (by copying only the relevant section from your helm.log
), you can start inspecting with something like
cat /tmp/secret.json | jq -r '.data.release' | base64 -d | base64 -d | gunzip | jq 'keys'
[
"chart",
"config",
"info",
"manifest",
"name",
"namespace",
"version"
]
and from there attempt to figure out which field ballooned in size between versions (in my case, it was the manifest
).
That being said, it is certainly possible to have at least a dozen sub-charts embedded in your chart without triggering the limit (source: personal experience), though of course it depends on the size of the chart and the amount of extra templates and values you're including.
Upvotes: 0
Reputation: 5625
Secrets are limited to 1MiB in size as described here:
https://kubernetes.io/docs/concepts/configuration/secret/#restriction-data-size
What are you trying to encode into a secret that makes it >1MiB?
Upvotes: 3