Kubernetes – Argument error : too long

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_…


This content originally appeared on DEV Community and was authored by Maxime Guilbert

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! 🍺

Don’t hesitate to give me feedback here, on twitter or by LinkedIn, I will be glad to read it. You can use the same links if you want to contact me or want to collaborate with me.


This content originally appeared on DEV Community and was authored by Maxime Guilbert


Print Share Comment Cite Upload Translate Updates
APA

Maxime Guilbert | Sciencx (2022-04-26T21:01:33+00:00) Kubernetes – Argument error : too long. Retrieved from https://www.scien.cx/2022/04/26/kubernetes-argument-error-too-long/

MLA
" » Kubernetes – Argument error : too long." Maxime Guilbert | Sciencx - Tuesday April 26, 2022, https://www.scien.cx/2022/04/26/kubernetes-argument-error-too-long/
HARVARD
Maxime Guilbert | Sciencx Tuesday April 26, 2022 » Kubernetes – Argument error : too long., viewed ,<https://www.scien.cx/2022/04/26/kubernetes-argument-error-too-long/>
VANCOUVER
Maxime Guilbert | Sciencx - » Kubernetes – Argument error : too long. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/04/26/kubernetes-argument-error-too-long/
CHICAGO
" » Kubernetes – Argument error : too long." Maxime Guilbert | Sciencx - Accessed . https://www.scien.cx/2022/04/26/kubernetes-argument-error-too-long/
IEEE
" » Kubernetes – Argument error : too long." Maxime Guilbert | Sciencx [Online]. Available: https://www.scien.cx/2022/04/26/kubernetes-argument-error-too-long/. [Accessed: ]
rf:citation
» Kubernetes – Argument error : too long | Maxime Guilbert | Sciencx | https://www.scien.cx/2022/04/26/kubernetes-argument-error-too-long/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.