목차

HPA

Horizontal Pod Autoscaler
쿠버네티스트래픽에 따라 자동으로 레플리카의 개수를 조정

HPA 예제

apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
  name: demo-hpa
  namespace: default
spec:
  scaleTargetRef:
    apiVersion: extensions/v1beta1
    kind: Deployment
    name: demo
  minReplicas: 1
  maxReplicas: 10
  metrics:
  - type: Resource
    resource:
      name: cpu
      targetAverageUtilization: 80 

필드


관련 문서