Skip to content

SiNa88/HPA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages