Kubernetes Scaling Options
The Kubernetes Cluster Auto Scaler automatically adjusts the number of nodes in your cluster when pods fail or are rescheduled onto other nodes.
You can configure Cluster AutoCcaler for the Infrastructure created with EKS Enabled
Enable Cluster Autoscaler from Administrator > Infrastructure > Settings. Add Setting to enable Autoscaler. Refer screenshot
Navigate to DevOps > Hosts > ASG. Enable Use for Cluster Autoscaling toggle button.
This setting allows managing the cluster auto scaling.
Horizontal Pod Autoscaler (HPA) automatically scales the Deployment and its ReplicaSet. HPA checks the metrics configured in regular intervals and then scales the replicas up or down accordingly.
You can configure HPA while creating Deployment Service from DuploCloud Portal.
Navigate DevOps > Containers > EKS/Native.
Create a new Service. Select Replication Strategy as 'Horizontal Pod Scheduler'
Add below sample configuration in the Horizontal Pod Autoscaler Config textarea section. Update minimum/maximum Replica Count, resource section based on the requirement.
Horizontal Pod Autoscaler
For HPA Configures Services, Replica is set as Auto in DuploCloud Portal
It is important to have the Resources set in the Other Container Config so that HPA can work. Below is an example: