From 1238945f5dafda35cfa22d601cea5a82e6f49bbc Mon Sep 17 00:00:00 2001 From: Juan Ignacio Donoso Date: Sun, 17 Dec 2023 21:57:28 -0300 Subject: [PATCH] feat(media/overseer): upgrade overseer kustomization and helmrelease --- kubernetes/main/apps/media/kustomization.yaml | 2 +- .../apps/media/overseerr/app/helmrelease.yaml | 103 ++++++++++++------ kubernetes/main/apps/media/overseerr/ks.yaml | 21 ++++ .../apps/media/overseerr/kustomization.yaml | 5 - 4 files changed, 90 insertions(+), 41 deletions(-) create mode 100644 kubernetes/main/apps/media/overseerr/ks.yaml delete mode 100644 kubernetes/main/apps/media/overseerr/kustomization.yaml diff --git a/kubernetes/main/apps/media/kustomization.yaml b/kubernetes/main/apps/media/kustomization.yaml index 4acb95e0c..30c82d73e 100644 --- a/kubernetes/main/apps/media/kustomization.yaml +++ b/kubernetes/main/apps/media/kustomization.yaml @@ -7,7 +7,7 @@ resources: - ./namespace.yaml # Flux-Kustomizations - ./bazarr - - ./overseerr + - ./overseerr/ks.yaml - ./plex/ks.yaml - ./prowlarr - ./qbittorrent diff --git a/kubernetes/main/apps/media/overseerr/app/helmrelease.yaml b/kubernetes/main/apps/media/overseerr/app/helmrelease.yaml index 5045f6ee5..05f91be7d 100644 --- a/kubernetes/main/apps/media/overseerr/app/helmrelease.yaml +++ b/kubernetes/main/apps/media/overseerr/app/helmrelease.yaml @@ -1,23 +1,20 @@ --- -# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta1.json +# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json apiVersion: helm.toolkit.fluxcd.io/v2beta2 kind: HelmRelease metadata: name: overseerr - namespace: media spec: interval: 30m chart: spec: chart: app-template - version: 1.5.1 + version: 2.4.0 sourceRef: kind: HelmRepository name: bjw-s namespace: flux-system - maxHistory: 2 install: - createNamespace: true remediation: retries: 3 upgrade: @@ -32,15 +29,51 @@ spec: - name: volsync namespace: volsync values: - controller: - type: statefulset - image: - repository: ghcr.io/sct/overseerr - tag: 1.33.2 - env: - TZ: America/Santiago - LOG_LEVEL: "info" - PORT: &port 80 + controllers: + main: + annotations: + reloader.stakater.com/auto: "true" + containers: + main: + image: + repository: ghcr.io/sct/overseerr + tag: 1.33.2@sha256:714ea6db2bc007a2262d112bef7eec74972eb33d9c72bddb9cbd98b8742de950 + env: + TZ: America/Santiago + LOG_LEVEL: "info" + PORT: &port 80 + probes: + liveness: &probes + enabled: true + custom: true + spec: + httpGet: + path: /api/v1/status + port: *port + initialDelaySeconds: 0 + periodSeconds: 10 + timeoutSeconds: 1 + failureThreshold: 3 + readiness: *probes + startup: + enabled: false + securityContext: + allowPrivilegeEscalation: false + readOnlyRootFilesystem: true + capabilities: { drop: ["ALL"] } + resources: + requests: + cpu: 100m + memory: 256Mi + limits: + memory: 2Gi + pod: + securityContext: + runAsUser: 568 + runAsGroup: 568 + runAsNonRoot: true + fsGroup: 568 + fsGroupChangePolicy: OnRootMismatch service: main: ports: @@ -49,31 +82,31 @@ spec: ingress: main: enabled: true - ingressClassName: external + className: external annotations: - external-dns.alpha.kubernetes.io/target: ingress.donoso.family + external-dns.alpha.kubernetes.io/target: external.donoso.family hosts: - - host: &host requests.donoso.family + - host: &host "{{ .Release.Name }}.donoso.family" paths: - path: / - pathType: Prefix + service: + name: main + port: http + - host: &customHost requests.donoso.family + paths: + - path: / + service: + name: main + port: http tls: - hosts: - *host - podSecurityContext: - runAsUser: 568 - runAsGroup: 568 - fsGroup: 568 - fsGroupChangePolicy: OnRootMismatch - volumeClaimTemplates: - - name: config - mountPath: /app/config - accessMode: ReadWriteOnce - size: 1Gi - storageClass: ceph-block - resources: - requests: - cpu: 10m - memory: 250Mi - limits: - memory: 1500Mi + - *customHost + persistence: + config: + enabled: true + existingClaim: config-overseerr-0 + globalMounts: + - path: /app/config + tmp: + type: emptyDir diff --git a/kubernetes/main/apps/media/overseerr/ks.yaml b/kubernetes/main/apps/media/overseerr/ks.yaml new file mode 100644 index 000000000..6663581b6 --- /dev/null +++ b/kubernetes/main/apps/media/overseerr/ks.yaml @@ -0,0 +1,21 @@ +--- +# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: &app overseerr + namespace: flux-system +spec: + targetNamespace: media + commonMetadata: + labels: + app.kubernetes.io/name: *app + path: ./kubernetes/main/apps/media/overseerr/app + prune: true + sourceRef: + kind: GitRepository + name: home-kubernetes + wait: false + interval: 30m + retryInterval: 1m + timeout: 5m diff --git a/kubernetes/main/apps/media/overseerr/kustomization.yaml b/kubernetes/main/apps/media/overseerr/kustomization.yaml deleted file mode 100644 index 1532406bd..000000000 --- a/kubernetes/main/apps/media/overseerr/kustomization.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -resources: - - ./app