Kubespec Logo kubespec.dev

autoscaling/v2 · Namespaced Resource

HorizontalPodAutoscaler

        HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.
      

Click on Property Name to see the description, and Pink Types to expand schema.

Looking for some examples?

There are 2 examples of HorizontalPodAutoscaler that you can use as a starting point to create your own.

apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
  name: my-app-hpa
  namespace: default # HorizontalPodAutoscaler is a namespaced resource
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: my-app-deployment
  minReplicas: 1
  maxReplicas: 10
  metrics:
    - type: Resource
      resource:
        name: cpu
        target:
          type: Utilization
          averageUtilization: 50

No links for HorizontalPodAutoscaler yet

You can help us by adding useful links on GitHub