helm collabora kubernetes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
940 B

  1. {{- if .Values.autoscaling.enabled }}
  2. apiVersion: autoscaling/v2
  3. kind: HorizontalPodAutoscaler
  4. metadata:
  5. name: {{ include "collabora-online.fullname" . }}
  6. labels:
  7. {{- include "collabora-online.labels" . | nindent 4 }}
  8. spec:
  9. scaleTargetRef:
  10. apiVersion: apps/v1
  11. kind: {{ .Values.deployment.kind }}
  12. name: {{ include "collabora-online.fullname" . }}
  13. minReplicas: {{ .Values.autoscaling.minReplicas }}
  14. maxReplicas: {{ .Values.autoscaling.maxReplicas }}
  15. metrics:
  16. {{- with .Values.autoscaling.targetCPUUtilizationPercentage }}
  17. - type: Resource
  18. resource:
  19. name: cpu
  20. target:
  21. type: Utilization
  22. averageUtilization: {{ . }}
  23. {{- end }}
  24. {{- with .Values.autoscaling.targetMemoryUtilizationPercentage }}
  25. - type: Resource
  26. resource:
  27. name: memory
  28. target:
  29. type: Utilization
  30. averageUtilization: {{ . }}
  31. {{- end }}
  32. {{- end }}