← Back to Topics

KUBERNETES Flashcards

All Cards Flagged Cards

How do you configure horizontal pod autoscaling in Kubernetes?

To configure Horizontal Pod Autoscaling (HPA): 1. Enable Metrics Server in the cluster 2. Create HPA using kubectl or YAML: kubectl autoscale deployment my-app --cpu-percent=50 --min=1 --max=10 You can scale based on: - CPU utilization - Memory usage - Custom metrics - External metrics HPA automatically adjusts the number of pods based on the defined metrics.

Question 13 of 13