kubernetesautoscalinghpahorizontal-pod-autoscaling

Where and How to edit Kubernetes HPA behaviour


It is mentioned here on how edit Support for configurable scaling behavior on how to edit the Autoscaling behaviour. But I cannot find any YAML file to edit or on how to apply the mentioned changes.

I have 3 Kubernetes Environment :

May I know how to apply the changes mentioned here in the above environments.


Solution

  • Run

    kubectl get hpa -n namespace
    

    This will give you the list of current HPAs in effect

    Then use

    kubectl -n namespace edit hpa <hpa_name>
    

    and make the desired changes.