From 5012ab0fd1aa53462fc43f09047faa970cf404bf Mon Sep 17 00:00:00 2001 From: Ludovic Ortega Date: Thu, 16 Jan 2025 23:59:07 +0100 Subject: [PATCH] feat: upgrade chart to 2.0.0 - upgrade jellyseerr to 2.3.0 - disable HPA as it's not documented and not useful - migrate container image to ghcr.io registry Signed-off-by: Ludovic Ortega --- charts/jellyseerr-chart/Chart.yaml | 4 +-- charts/jellyseerr-chart/README.md | 8 ++--- .../templates/deployment.yaml | 2 -- charts/jellyseerr-chart/templates/hpa.yaml | 32 ------------------- charts/jellyseerr-chart/values.yaml | 9 +----- 5 files changed, 5 insertions(+), 50 deletions(-) delete mode 100644 charts/jellyseerr-chart/templates/hpa.yaml diff --git a/charts/jellyseerr-chart/Chart.yaml b/charts/jellyseerr-chart/Chart.yaml index 3e488f0fb..b1eeeede0 100644 --- a/charts/jellyseerr-chart/Chart.yaml +++ b/charts/jellyseerr-chart/Chart.yaml @@ -3,8 +3,8 @@ kubeVersion: ">=1.23.0-0" name: jellyseerr-chart description: Jellyseerr helm chart for Kubernetes type: application -version: 1.3.0 -appVersion: "2.2.3" +version: 2.0.0 +appVersion: "2.3.0" maintainers: - name: Jellyseerr url: https://github.com/Fallenbagel/jellyseerr diff --git a/charts/jellyseerr-chart/README.md b/charts/jellyseerr-chart/README.md index f587aacbc..8db685ac7 100644 --- a/charts/jellyseerr-chart/README.md +++ b/charts/jellyseerr-chart/README.md @@ -1,6 +1,6 @@ # jellyseerr-chart -![Version: 1.3.0](https://img.shields.io/badge/Version-1.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.2.3](https://img.shields.io/badge/AppVersion-2.2.3-informational?style=flat-square) +![Version: 2.0.0](https://img.shields.io/badge/Version-2.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.3.0](https://img.shields.io/badge/AppVersion-2.3.0-informational?style=flat-square) Jellyseerr helm chart for Kubernetes @@ -25,10 +25,6 @@ Kubernetes: `>=1.23.0-0` | Key | Type | Default | Description | |-----|------|---------|-------------| | affinity | object | `{}` | | -| autoscaling.enabled | bool | `false` | | -| autoscaling.maxReplicas | int | `100` | | -| autoscaling.minReplicas | int | `1` | | -| autoscaling.targetCPUUtilizationPercentage | int | `80` | | | config | object | `{"persistence":{"accessModes":["ReadWriteOnce"],"annotations":{},"name":"","size":"5Gi","volumeName":""}}` | Creating PVC to store configuration | | config.persistence.accessModes | list | `["ReadWriteOnce"]` | Access modes of persistent disk | | config.persistence.annotations | object | `{}` | Annotations for PVCs | @@ -39,7 +35,7 @@ Kubernetes: `>=1.23.0-0` | extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to the jellyseerr pods | | fullnameOverride | string | `""` | | | image.pullPolicy | string | `"IfNotPresent"` | | -| image.registry | string | `"docker.io"` | | +| image.registry | string | `"ghcr.io"` | | | image.repository | string | `"fallenbagel/jellyseerr"` | | | image.sha | string | `""` | | | image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. | diff --git a/charts/jellyseerr-chart/templates/deployment.yaml b/charts/jellyseerr-chart/templates/deployment.yaml index 8c9c57a18..e31c161b0 100644 --- a/charts/jellyseerr-chart/templates/deployment.yaml +++ b/charts/jellyseerr-chart/templates/deployment.yaml @@ -5,9 +5,7 @@ metadata: labels: {{- include "jellyseerr.labels" . | nindent 4 }} spec: - {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} - {{- end }} strategy: type: {{ .Values.strategy.type }} selector: diff --git a/charts/jellyseerr-chart/templates/hpa.yaml b/charts/jellyseerr-chart/templates/hpa.yaml deleted file mode 100644 index 291f83de3..000000000 --- a/charts/jellyseerr-chart/templates/hpa.yaml +++ /dev/null @@ -1,32 +0,0 @@ -{{- 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 }} diff --git a/charts/jellyseerr-chart/values.yaml b/charts/jellyseerr-chart/values.yaml index 50c7865f8..3fe780568 100644 --- a/charts/jellyseerr-chart/values.yaml +++ b/charts/jellyseerr-chart/values.yaml @@ -1,7 +1,7 @@ replicaCount: 1 image: - registry: docker.io + registry: ghcr.io repository: fallenbagel/jellyseerr pullPolicy: IfNotPresent # -- Overrides the image tag whose default is the chart appVersion. @@ -94,13 +94,6 @@ resources: {} # cpu: 100m # memory: 128Mi -autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 100 - targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 - nodeSelector: {} tolerations: []