* feat: Add release charts workflow Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * fix: helm workflow Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * fix: artifacthub file location Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * feat: bump chart to 1.2.0 Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * fix: documentation build Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * fix: install oras in first job Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * fix: release workflow Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * fix: release workflow add package read permission Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * fix: login to ghcr.io at the beginning of job Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * fix: avoid exiting on oras discover Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * fix: documentation typo * feat: prepare for release Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * fix: remove myself from codeowners Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> --------- Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
33 lines
1000 B
YAML
33 lines
1000 B
YAML
{{- if .Values.autoscaling.enabled }}
|
|
apiVersion: autoscaling/v2
|
|
kind: HorizontalPodAutoscaler
|
|
metadata:
|
|
name: {{ include "jellyseerr.fullname" . }}
|
|
labels:
|
|
{{- include "jellyseerr.labels" . | nindent 4 }}
|
|
spec:
|
|
scaleTargetRef:
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
name: {{ include "jellyseerr.fullname" . }}
|
|
minReplicas: {{ .Values.autoscaling.minReplicas }}
|
|
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
|
|
metrics:
|
|
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
|
|
- type: Resource
|
|
resource:
|
|
name: cpu
|
|
target:
|
|
type: Utilization
|
|
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
|
|
{{- end }}
|
|
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
|
|
- type: Resource
|
|
resource:
|
|
name: memory
|
|
target:
|
|
type: Utilization
|
|
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
|
|
{{- end }}
|
|
{{- end }}
|