While deploying pods on a Kubernetes cluster, we can saw some "weird" errors and generally a quick research helps us to understand what's going on.
But not this time.
While starting a pod in Kubernetes, we saw the following error
standard_init_linux.go:228: exec user process caused: argument list too long
It was the first time we saw it. It was weird, we describe the pod, edit the yaml to check all its values... and we saw nothing.
So at that point we prayed to find something on StackOverFlow to help us, but nothing too. (This error message appears for several other tool but not Kubernetes at this moment)
Then we review every secret, configmap ... to find something... And we saw it. In a secret containing a certificate (which is injected from a secrets management tool in an environment variable), the value wasn't correctly setup and had the certificate multiple times in it.
Once corrected, the pod started correctly!
So, if you have a similar issue, don't forget to check all your environment variables (especially all the ones which are injected from a secret or a configmap)!
I hope it will help you! 🍺