summaryrefslogtreecommitdiffstats
path: root/helm/wekan/templates/hpa.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'helm/wekan/templates/hpa.yaml')
-rw-r--r--helm/wekan/templates/hpa.yaml18
1 files changed, 18 insertions, 0 deletions
diff --git a/helm/wekan/templates/hpa.yaml b/helm/wekan/templates/hpa.yaml
new file mode 100644
index 00000000..5c8017c3
--- /dev/null
+++ b/helm/wekan/templates/hpa.yaml
@@ -0,0 +1,18 @@
+{{- if .Values.autoscaling.enabled -}}
+apiVersion: autoscaling/v1
+kind: HorizontalPodAutoscaler
+metadata:
+ name: {{ template "wekan.fullname" . }}
+ labels:
+ app: {{ template "wekan.name" . }}
+ chart: {{ template "wekan.chart" . }}
+ component: wekan
+ heritage: {{ .Release.Service }}
+ release: {{ .Release.Name }}
+spec:
+ scaleTargetRef:
+ apiVersion: apps/v1
+ kind: Deployment
+ name: {{ template "wekan.fullname" . }}
+{{ toYaml .Values.autoscaling.config | indent 2 }}
+{{- end -}}