A walk through the horizontal pod autoscaler in Kubernetes
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