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

Scalability of integration components in a non knative environment #1798

Closed
arijitmazumdar opened this issue Oct 31, 2020 · 3 comments
Closed
Labels
kind/question Further information is requested

Comments

@arijitmazumdar
Copy link

Hi
We are testing camel-k capabilities on a minikube environment, we haven't installed knative.
We have observed when we create an integration, by default the replica is 1.
Curious to know can we create an integration component with multiple pods in the beginning ?
Also as we are in a non knative environment, how can we scale the number of pods. I have tried to change the number of replica in the deployment to 2 from 1, however it's not creating 2 pods.

@astefanutti astefanutti added the kind/question Further information is requested label Nov 2, 2020
@astefanutti
Copy link
Member

Hi, one option is to set the .spec.replicas field of the Integration resource.

Also the kubectl scale sub-command can be used to scale the Integration, e.g.:

$ kubectl scale it my-integration --replicas N

@arijitmazumdar
Copy link
Author

Hi
How to pass .spec.replicas in the kamel run command?
The other option did work by using kubectl scale integration... Thanks for that.

@astefanutti
Copy link
Member

astefanutti commented Nov 3, 2020

There is currently no option to the kamel run subcommand to set the replicas count. That would make a good enhancement. Feel free to create an issue for that.

It is possible to edit the Integration resource with kubectl edit or kubectl patch, e.g.:

$ kubectl patch it my-integration -p '{"spec":{"replicas":2}}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants