<p>I'm getting this error <code>Error: UPGRADE FAILED: ConfigMap "my-service.v130" is invalid: data: Too long: must have at most 1048576 characters</code> when running the command:</p>

<pre><code>$ KUBECONFIG=/Users/tomcaflisch/.kube/config.dev helm upgrade --wait --recreate-pods --install my-service --version v0.1.0-gedc3d28-dirty  -f ./values.yaml  -f ./secrets.yaml  -f ./vars/dev/db.yaml  -f ./vars/dev/epic.yaml  -f ./vars/dev/ingress.yaml  -f ./vars/dev/services.yaml  -f ./vars/dev/tkn.yaml --set image.tag=v0.1.0-gedc3d28-dirty .
</code></pre>

<p>I can't image my generated configmap is even close to that limit. How can i go about debugging this?</p>

<p>That is a known problem, you can find several issues regarding it - <a href="https://github.com/helm/helm/issues/1996" rel="noreferrer">that one</a>, for an example.</p>

<p>Configmap objects on Kubernetes have 1Mb size limit and unfortunately (or maybe fortunately) you cannot change it. </p>

<p>Anyway, that is a bad idea to increase the limit, because K8s store Configmaps in Etcd, which don't like large objects.</p>

<p>Helm uses configmap of release for store many things, include chart files and it can be your problem.</p>

<p>Try to add all files (like <code>.git</code> directory) in chart dir (except chart files itself) to <code>.helmignore</code> file and push release another one time.</p>
