GHP publish
This commit is contained in:
20
nextcloud/templates/hpa.yaml
Normal file
20
nextcloud/templates/hpa.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
{{- if .Values.hpa.enabled -}}
|
||||
apiVersion: autoscaling/v1
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: {{ template "nextcloud.fullname" . }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "nextcloud.name" . }}
|
||||
helm.sh/chart: {{ include "nextcloud.chart" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
app.kubernetes.io/component: app
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
kind: Deployment
|
||||
apiVersion: apps/v1
|
||||
name: {{ template "nextcloud.fullname" . }}
|
||||
minReplicas: {{ .Values.hpa.minPods }}
|
||||
maxReplicas: {{ .Values.hpa.maxPods }}
|
||||
targetCPUUtilizationPercentage: {{ .Values.hpa.cputhreshold }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user