Commit 25eb8370 authored by David José Araújo Ferreira's avatar David José Araújo Ferreira
Browse files

HPA in webui service

parent 5e4400b8
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -117,3 +117,26 @@ spec:
  - name: grafana
    port: 3000
    targetPort: 3000
# TESTING
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
  name: webuiservice-hpa
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: webuiservice
  minReplicas: 1
  maxReplicas: 20
  metrics:
  - type: Resource
    resource:
      name: cpu
      target:
        type: Utilization
        averageUtilization: 50
  #behavior:
  #  scaleDown:
  #    stabilizationWindowSeconds: 30
 No newline at end of file