Basic Autoscaling
Autoscaling Based on Resources Utilization
Autoscaling based on resource utilization means that HPA (Horizontal Pod Autoscaler) adjusts the number of replica pods based on the percentage of resource usage (CPU or memory) relative to the requests specified in the Pod spec. You can first run the following syntax to create a YAML file named hpa.
Copy and paste the following YAML contents.
After pasting the syntax, save the file by pressing Ctrl + O, then press the Enter key and exit the editor by pressing Ctrl + X. The next step is to apply this configuration.
Autoscaling based on resources value
Autoscaling based on resource value means that HPA adjusts the number of replica pods based on the absolute value of the resources used (CPU/memory) without comparing it to the request. You can first run the following syntax to create a YAML file named hpa.
Copy and paste the following YAML contents.
After pasting the syntax, save the file by pressing Ctrl + O, then press the Enter key and exit the editor by pressing Ctrl + X. The next step is to apply this configuration
Last updated