lsergio opened a new issue, #6724:
URL: https://github.com/apache/camel-k/issues/6724

   ### Requirement
   
   I would like to set enableServiceLinks on the pod spec template.
   
   The reason is that we faced an issue where Integrations failed to start on a 
cluster that had many services on the same namespace, causing this issue:
   
   **Symptom**
   A Java container fails to start. The pod logs show only:
   
   ```exec /opt/java/openjdk/bin/java: argument list too long```
   No JVM or application logs are produced — the process never execs.
   
   **Root cause**
   This is the kernel's E2BIG error from execve(), not a Java or application 
fault. The combined size of the arguments plus environment variables passed to 
the container entrypoint exceeds the kernel limit (MAX_ARG_STRLEN, 128 KB per 
single arg/env var; ARG_MAX, ~2 MB overall).
   
   The trigger in this cluster is Kubernetes service-link environment variable 
injection. When a namespace contains a large number of Services, Kubernetes 
injects a pair of env vars (<SVC>_SERVICE_HOST, <SVC>_PORT_*) into every new 
pod for each Service. The affected namespace has a high service count 
(confirmed), and the accumulated env block is pushing the exec past the limit.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to