vpa.yaml 870 B

1234567891011121314151617181920
  1. {{- if .Values.pushgateway.enabled -}}
  2. {{- if .Values.pushgateway.verticalAutoscaler.enabled -}}
  3. apiVersion: autoscaling.k8s.io/v1beta2
  4. kind: VerticalPodAutoscaler
  5. metadata:
  6. labels:
  7. {{- include "prometheus.pushgateway.labels" . | nindent 4 }}
  8. name: {{ template "prometheus.pushgateway.fullname" . }}-vpa
  9. {{ include "prometheus.namespace" . | indent 2 }}
  10. spec:
  11. targetRef:
  12. apiVersion: "apps/v1"
  13. kind: Deployment
  14. name: {{ template "prometheus.pushgateway.fullname" . }}
  15. updatePolicy:
  16. updateMode: {{ .Values.pushgateway.verticalAutoscaler.updateMode | default "Off" | quote }}
  17. resourcePolicy:
  18. containerPolicies: {{ .Values.pushgateway.verticalAutoscaler.containerPolicies | default list | toYaml | trim | nindent 4 }}
  19. {{- end -}} {{/* if .Values.pushgateway.verticalAutoscaler.enabled */}}
  20. {{- end -}} {{/* .Values.pushgateway.enabled */}}