Skip to content

Latest commit

 

History

History
28 lines (15 loc) · 977 Bytes

README.md

File metadata and controls

28 lines (15 loc) · 977 Bytes

HPA

A walk through the horizontal pod autoscaler in Kubernetes

Configuring horizontal Pod autoscaling

This repository is a local test based on the commands in GKE.

  • nano nginx.yaml --> nginx.yaml

  • kubectl apply -f nginx.yaml

  • nano nginx-hpa.yaml --> nginx-hpa.yaml

  • kubectl apply -f nginx-hpa.yaml

  • kubectl get hpa

    • NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE

    • nginx Deployment/nginx <unknown>/50% 1 10 3 19h

  • kubectl get hpa nginx -o yaml

  • Deploy a sample Flask.

  • python3.9 updateDeployment.py

  • Output