Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kamel - Allow to configure memory and cpu settings #1091

Closed
davsclaus opened this issue Nov 26, 2019 · 3 comments
Closed

kamel - Allow to configure memory and cpu settings #1091

davsclaus opened this issue Nov 26, 2019 · 3 comments

Comments

@davsclaus
Copy link
Contributor

When running small integrations it would be nice to make it easier to specify memory limits, so the pod wont take up too much memory.

For example being able to set the request and limit setting

kamel run foo.xml --memory-limits=100 --memory-requests=25

Setting CPU settings can be done similar

kamel run foo.xml --cpu-limits=2 --cpu-requests=1

This should be done in the deployment definition

   resources:                                                                                                                            │
│      limits:                                                                                                                             │
│        memory: 100Mi                                                                                                                     │
│      requests:                                                                                                                           │
│        memory: 25Mi
@jamesnetherton
Copy link
Contributor

You can do this with the container trait:

https://camel.apache.org/camel-k/latest/traits/container.html

@davsclaus
Copy link
Contributor Author

Ah perfect. btw what does .auto option do ?

@jamesnetherton
Copy link
Contributor

Auto can automatically configure some extra things based on the environment. I.e for the container trait it can create a service. There's a few lines about it in the docs here:

https://camel.apache.org/camel-k/latest/traits/traits.html#_configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants