You've already forked reposilite-charts
Some checks failed
Helm / helm-lint (push) Successful in 17s
Helm / helm-unittest (push) Successful in 17s
Markdown linter / markdown-link-checker (push) Failing after 21s
Markdown linter / markdown-lint (push) Failing after 15s
Generate README / generate-parameters (push) Successful in 28s
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 -}} |