how to calculate nginx plus ingress controller instance? #6558
-
Hello, I have deployed nginx plus ingress controller on a kubernetes cluster. Is there any doc about calculating the instances I am using ? Or a formula to calculate the instances need for a kubernetes system ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @nguyenphu123, could you please describe your use case? The number of instances you declare in a deployment obj (number of replicas), for example: link |
Beta Was this translation helpful? Give feedback.
-
Hi @nguyenphu123 there's no set formula to select number of replicas/pods but the general guideline is to use horizontal pod scaling to match the demand. Have a look at https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ |
Beta Was this translation helpful? Give feedback.
Hi @nguyenphu123 there's no set formula to select number of replicas/pods but the general guideline is to use horizontal pod scaling to match the demand. Have a look at https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
To apply this to NIC, you can use
controller.autoscaling...
helm parameters https://docs.nginx.com/nginx-ingress-controller/installation/installing-nic/installation-with-helm/#configuration