rathgebr opened a new issue, #6508: URL: https://github.com/apache/camel-k/issues/6508
### Requirement The init-containers trait is very useful for defining init containers and sidecars. However, it currently lacks the ability to configure their CPU and memory resources. This is a key limitation, as it's often necessary to adjust the default resource allocation, either increasing it for demanding init tasks or reducing it for lightweight sidecars to optimize cluster usage. **Proposed Solution:** I propose extending the init-containers trait to support resource configuration, similar to the main container trait. This could be done by adding new properties like: - init-containers.request-cpu - init-containers.request-memory - init-containers.limit-cpu - init-containers.limit-memory Example Usage: ` kamel run foo.java --trait init-containers.sidecar-tasks='name=my-sidecar;image=my-pre-processor-image;command=startup' --trait init-containers.request-memory=512Mi --trait init-containers.limit-memory=1Gi --trait init-containers.request-cpu=250m --trait init-containers.limit-cpu=500m ` -- 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]
