You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "rathgebr (via GitHub)" <gi...@apache.org> on 2026/03/04 07:49:30 UTC
[I] Allow specifying CPU/Memory resources for Init and Sidecar Containers [camel-k]
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: commits-unsubscribe@camel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Allow specifying CPU/Memory resources for Init and Sidecar Containers [camel-k]
Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez closed issue #6508: Allow specifying CPU/Memory resources for Init and Sidecar Containers
URL: https://github.com/apache/camel-k/issues/6508
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Allow specifying CPU/Memory resources for Init and Sidecar Containers [camel-k]
Posted by "641-git641 (via GitHub)" <gi...@apache.org>.
641-git641 commented on issue #6508:
URL: https://github.com/apache/camel-k/issues/6508#issuecomment-4979293772
Hi, I'd like to work on this issue. Could you please assign it to me?
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Allow specifying CPU/Memory resources for Init and Sidecar Containers [camel-k]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6508:
URL: https://github.com/apache/camel-k/issues/6508#issuecomment-4814447447
This issue has been automatically marked as stale due to 90 days of inactivity.
It will be closed if no further activity occurs within 15 days.
If you think that’s incorrect or the issue should never stale, please simply write any comment.
Thanks for your contributions!
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Allow specifying CPU/Memory resources for Init and Sidecar Containers [camel-k]
Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #6508:
URL: https://github.com/apache/camel-k/issues/6508#issuecomment-3995885201
Yeah, it could be a nice addition. However the format can be different as there can be different init/side containers and we need to identify them. Maybe we can instead add some kind of querystring in the main configuration, for example: `init-containers.sidecar-tasks='name=my-sidecar;image=my-pre-processor-image;command=startup;request-memory=512Mi;limit-memory=1Gi...`
Happy to receive any contribution!
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org