Untitled

mail@pastecode.io avatarunknown
yaml
a month ago
489 B
1
Indexable
Never
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
  name: d2v-service
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: d2v-service
  minReplicas: 1
  maxReplicas: 3
  metrics:
    - resource:
        name: memory
        target:
          averageUtilization: 90
          type: Utilization
      type: Resource
    - resource:
        name: cpu
        target:
          averageUtilization: 80
          type: Utilization
      type: Resource