diff --git a/kubernetes/apps/default/pyload/app/helmrelease.yaml b/kubernetes/apps/default/pyload/app/helmrelease.yaml index 516fcf762..9c1a16669 100644 --- a/kubernetes/apps/default/pyload/app/helmrelease.yaml +++ b/kubernetes/apps/default/pyload/app/helmrelease.yaml @@ -10,7 +10,7 @@ spec: chart: spec: chart: app-template - version: 1.5.1 + version: 2.0.3 sourceRef: kind: HelmRepository name: bjw-s @@ -27,11 +27,50 @@ spec: uninstall: keepHistory: false values: - image: - repository: ghcr.io/auricom/pyload-ng - tag: 0.5.0-b3.dev29@sha256:fd1343113033b3f8dcbbdad70a2bdbac20c40852a37f6925b9506a1f8d09e1c2 - env: - TZ: "${TIMEZONE}" + defaultPodOptions: + securityContext: + runAsUser: 568 + runAsGroup: 568 + fsGroup: 568 + fsGroupChangePolicy: OnRootMismatch + controllers: + main: + type: statefulset + containers: + main: + image: + repository: ghcr.io/auricom/pyload-ng + tag: 0.5.0-b3.dev29@sha256:fd1343113033b3f8dcbbdad70a2bdbac20c40852a37f6925b9506a1f8d09e1c2 + env: + TZ: "${TIMEZONE}" + resources: + requests: + cpu: 15m + memory: 105Mi + limits: + memory: 1Gi + probes: + liveness: &probe + custom: true + enabled: true + spec: + failureThreshold: 5 + httpGet: + path: /login + port: 8000 + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 10 + readiness: *probe + startup: *probe + statefulset: + volumeClaimTemplates: + - name: config + accessMode: ReadWriteOnce + size: 1Gi + storageClass: rook-ceph-block + globalMounts: + - path: /config service: main: ports: @@ -40,7 +79,7 @@ spec: ingress: main: enabled: true - ingressClassName: "nginx" + className: "nginx" annotations: auth.home.arpa/enabled: "true" hajimari.io/icon: mdi:download @@ -48,43 +87,16 @@ spec: - host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}" paths: - path: / - pathType: Prefix + service: + name: main + port: http tls: - hosts: - *host - probes: - liveness: &probe - custom: true - enabled: true - spec: - failureThreshold: 5 - httpGet: - path: /login - port: 8000 - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 10 - readiness: *probe - startup: *probe - podSecurityContext: - runAsUser: 568 - runAsGroup: 568 - fsGroup: 568 - fsGroupChangePolicy: "OnRootMismatch" persistence: - config: - enabled: true - existingClaim: pyload-config - mountPath: /config downloads: - enabled: true type: nfs server: "${LOCAL_LAN_TRUENAS}" path: /mnt/storage/downloads - mountPath: /mnt/storage/downloads - resources: - requests: - cpu: 15m - memory: 105Mi - limits: - memory: 1Gi + globalMounts: + - path: /mnt/storage/downloads diff --git a/kubernetes/apps/default/pyload/app/kustomization.yaml b/kubernetes/apps/default/pyload/app/kustomization.yaml index 7cc2de98b..29079162f 100644 --- a/kubernetes/apps/default/pyload/app/kustomization.yaml +++ b/kubernetes/apps/default/pyload/app/kustomization.yaml @@ -7,4 +7,3 @@ resources: - ./gatus.yaml - ./helmrelease.yaml - ./volsync.yaml - - ./volume.yaml diff --git a/kubernetes/apps/default/pyload/app/volsync.yaml b/kubernetes/apps/default/pyload/app/volsync.yaml index 1a65d1d74..7e9779a1a 100644 --- a/kubernetes/apps/default/pyload/app/volsync.yaml +++ b/kubernetes/apps/default/pyload/app/volsync.yaml @@ -30,7 +30,7 @@ metadata: name: pyload namespace: default spec: - sourcePVC: pyload-config + sourcePVC: config-pyload-0 trigger: schedule: "0 7 * * *" restic: diff --git a/kubernetes/apps/default/pyload/app/volume.yaml b/kubernetes/apps/default/pyload/app/volume.yaml deleted file mode 100644 index 1bf297b47..000000000 --- a/kubernetes/apps/default/pyload/app/volume.yaml +++ /dev/null @@ -1,17 +0,0 @@ ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: pyload-config - namespace: default - labels: - app.kubernetes.io/name: &name pyload - app.kubernetes.io/instance: *name - snapshot.home.arpa/enabled: "true" -spec: - accessModes: - - ReadWriteOnce - storageClassName: rook-ceph-block - resources: - requests: - storage: 1Gi