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

Be able to set deployment replicas amount #436

Open
pjgg opened this issue Mar 18, 2022 · 1 comment
Open

Be able to set deployment replicas amount #436

pjgg opened this issue Mar 18, 2022 · 1 comment
Labels
enhancement New feature or request priority/low lowest priority

Comments

@pjgg
Copy link
Contributor

pjgg commented Mar 18, 2022

By default, a deployment is set to just a single replica

 spec:
    replicas: 1
    selector:
      deploymentconfig: "${SERVICE_NAME}"
    template:
      metadata:
        labels:
          deploymentconfig: "${SERVICE_NAME}"

In some scenarios would be useful to be able to set the number of replicas by a test.property configuration

ts.<your_service_name>.openshift.replicas=10

@pjgg
Copy link
Contributor Author

pjgg commented Mar 18, 2022

In the middle time you could inject an Openshift client into your scenario and then scale your service

 @Inject
    static OpenShiftClient openshift;

@QuarkusApplication(classes = PongResource.class)
    static RestService pong = new RestService()
            .onPostStart(app -> openshift.scaleTo(app, 2))

@pjgg pjgg added enhancement New feature or request priority/moderate higher priority than low but lower then high labels Aug 3, 2022
@michalvavrik michalvavrik added priority/low lowest priority and removed priority/moderate higher priority than low but lower then high labels Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority/low lowest priority
Projects
None yet
Development

No branches or pull requests

2 participants