Abdullah Şamil Güser

Scaling

Horizontal Pod Autoscaling

kubectl - HPA Cheat Sheet

# The imperative way
kubectl autoscale deployment [name] --cpu-percent=50 --min=3 --max=10

# The declarative way
kubectl apply -f [hap.yaml]

# Get the autoscaler status
kubectl get hpa [name]

# Delete the HPA
kubectl delete -f [hap.yaml]

# Delete the HPA
kubectl delete hpa [name]