You've already forked reposilite-charts
29 lines
805 B
YAML
29 lines
805 B
YAML
{{- if .Values.hpa.enabled -}}
|
|
---
|
|
apiVersion: autoscaling/v2
|
|
kind: HorizontalPodAutoscaler
|
|
metadata:
|
|
{{- with (include "reposilite.hpa.annotations" . | fromYaml) }}
|
|
annotations:
|
|
{{- tpl (toYaml .) $ | nindent 4 }}
|
|
{{- end }}
|
|
{{- with (include "reposilite.hpa.labels" . | fromYaml) }}
|
|
labels:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
name: {{ include "reposilite.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
spec:
|
|
{{- with .Values.hpa.behavior }}
|
|
behavior:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
metrics:
|
|
{{- toYaml .Values.hpa.metrics | nindent 2 }}
|
|
maxReplicas: {{ .Values.hpa.maxReplicas }}
|
|
minReplicas: {{ .Values.hpa.minReplicas }}
|
|
scaleTargetRef:
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
name: {{ include "reposilite.fullname" . }}
|
|
{{- end -}} |