Kubernetes :11

DevOps Classroom Series – 18/Apr/2021

Horizonal pod autoscaler HPA

  • HPA automatically scales number of pods in Replica Set, deployment based on observed CPU utilization or with custom metrics support.
  • Deploy any application and execute the following command
kubectl autoscale deployment admin-service-deployment  --cpu-percent=50 --min=1 --max=5