Kubespec Logo kubespec.dev

autoscaling/v1

Namespaced Resource

HorizontalPodAutoscaler

        configuration of a horizontal pod autoscaler.
      

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

Required properties are marked with *

Change History

Kubernetes v1.32

Kubernetes v1.31

Kubernetes v1.30

Kubernetes v1.29

Kubernetes v1.28

Kubernetes v1.27

~9

Kubernetes v1.26

~1

Kubernetes v1.25

-1

Kubernetes v1.24

~5

Kubernetes v1.23

Kubernetes v1.22

+1

Kubernetes v1.21

Kubernetes v1.20

Kubernetes v1.19

~1

Kubernetes v1.18

Kubernetes v1.17

~1

Kubernetes v1.16

+2-2~4

Kubernetes v1.15

+1

Kubernetes v1.14

+1~1

Kubernetes v1.13

Kubernetes v1.12

~1

Kubernetes v1.11

Examples

There is 1 example of HorizontalPodAutoscaler that you can use as a starting point to create your own.

apiVersion: autoscaling/v1
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
  targetCPUUtilizationPercentage: 50

Other useful resources