-
Notifications
You must be signed in to change notification settings - Fork 23
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
Is there a plan to add the ability to manually adjust the number of replicas on nginx controllers in app-routing-system? #177
Comments
I have the seem need for a current project. In addition to being able to specify the resource requests on the pods (esp. CPU, which has a rather high default). |
Yes, you will be able to adjust the min/max replicas. You will also have a mechanism to adjust how aggressively the HPA scales. Expect this very soon.
Could you help us understand why you want to tweak the resource requests? |
This is great!
We are building an app platform on top of an autoscaling AKS cluster. In it's smallest -most cost-effective- incarnation we like to offer our customers the ability to run an app on a single-node 2-core cluster. Because the hardcoded nginx CPU request is 0.5 core, it is difficult to make our runtime fit in combination with 2 nginx replicas and the standard AKS containers. However on second thought, having the possibility of 1 nginx replica will likely suffice already. I can try that first when it is released. |
Hey @OliverMKing, is there a roadmap when this feature will be rolled out? |
Nevermind, just found out:
|
@Duske was the solution to just update the |
Hello there, However I agree with @MXClyde : 500m for each controller is huge, for example for a little development cluster. We would like to stay on app routing to keep the same environment as the production, and simply tweak the resources used by the controller. @OliverMKing Is there anything in preview or in development to tweak the CPU and memory requests ?
|
Sorry, I missed your message. We did it by applying a patched CRD like this apiVersion: approuting.kubernetes.azure.com/v1alpha1
kind: NginxIngressController
metadata:
name: default
spec:
controllerNamePrefix: nginx
ingressClassName: webapprouting.kubernetes.azure.com
scaling:
maxReplicas: 1
minReplicas: 1
As long as you can somehow apply these settings via UI, it should also work. With terraform this should definitely work as it's configuration-driven. |
I modified the "aks-app-routing-operator" deployment to adjust the number of replica, but it was impossible.
Currently, two nging controllers seem to be the default values.
Is there a plan to add the ability to manually adjust the number of replica on the nginx controller?
The text was updated successfully, but these errors were encountered: