diff --git a/kubernetes/apps/default/homepage/app/externalsecret.yaml b/kubernetes/apps/default/homepage/app/externalsecret.yaml index 24ed8d05a..d7504dedc 100644 --- a/kubernetes/apps/default/homepage/app/externalsecret.yaml +++ b/kubernetes/apps/default/homepage/app/externalsecret.yaml @@ -12,7 +12,7 @@ spec: name: homepage-secret dataFrom: - extract: - key: qbittorrent + key: sabnzbd rewrite: - transform: - template: "HOMEPAGE_VAR_QBT_{{ .value | upper }}" + template: "HOMEPAGE_VAR_SAB_{{ .value | upper }}" diff --git a/kubernetes/apps/default/homepage/app/helmrelease.yaml b/kubernetes/apps/default/homepage/app/helmrelease.yaml index 0ebf16468..f6b5ca46d 100644 --- a/kubernetes/apps/default/homepage/app/helmrelease.yaml +++ b/kubernetes/apps/default/homepage/app/helmrelease.yaml @@ -44,9 +44,9 @@ spec: tag: v0.9.6@sha256:e5b2616d17db8961a53c0b7d389d812d31c265d35696d475732f53278c9276f7 env: TZ: America/Los_Angeles - # envFrom: - # - secretRef: - # name: homepage-secret + envFrom: + - secretRef: + name: homepage-secret probes: liveness: enabled: true @@ -65,24 +65,18 @@ spec: capabilities: { drop: ["ALL"] } resources: requests: - cpu: 100m - memory: 128Mi + cpu: 1m limits: - memory: 256Mi + memory: 200Mi initContainers: copy-nextjs: image: *image command: - - "/bin/cp" - - "-r" - - "/app/.next/server/pages" - - "/pages" + - "/bin/cp" + - "-r" + - "/app/.next/server/pages" + - "/pages" securityContext: *securityContext - resources: - requests: - cpu: 100m - limits: - memory: 32Mi serviceAccount: create: true name: homepage diff --git a/kubernetes/apps/default/homepage/app/kustomization.yaml b/kubernetes/apps/default/homepage/app/kustomization.yaml index eed22aab7..d1aefbaaf 100644 --- a/kubernetes/apps/default/homepage/app/kustomization.yaml +++ b/kubernetes/apps/default/homepage/app/kustomization.yaml @@ -4,7 +4,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ./helmrelease.yaml - # - ./externalsecret.yaml + - ./externalsecret.yaml - ./rbac.yaml - ../../../../templates/gatus/guarded configMapGenerator: diff --git a/kubernetes/apps/default/homepage/app/resources/services.yaml b/kubernetes/apps/default/homepage/app/resources/services.yaml index 2e638f506..cde03f4ae 100644 --- a/kubernetes/apps/default/homepage/app/resources/services.yaml +++ b/kubernetes/apps/default/homepage/app/resources/services.yaml @@ -11,3 +11,12 @@ widget: type: qbittorrent url: http://qbittorrent.default.svc:80 + - sabnzbd: + icon: sabnzbd.png + href: https://sab.${PUBLIC_DOMAIN0}/ + namespace: default + app: sabnzbd + widget: + type: sabnzbd + url: http://sabnzbd.default.svc:80 + key: {{HOMEPAGE_VAR_SAB_API_KEY}}