summaryrefslogtreecommitdiff
path: root/kubernetes/auto-hpa.yaml
blob: 83dacd913bf693c0f3866851622d39ebcb6d3189 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
  name: my-deployment
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: my-deployment
  minReplicas: 1
  maxReplicas: 10
  targetCPUUtilizationPercentage: 50