Skip to content

Commit

Permalink
feat(homepage): add sab
Browse files Browse the repository at this point in the history
  • Loading branch information
jfroy committed Aug 27, 2024
1 parent 3fb9f92 commit f967f03
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 18 deletions.
4 changes: 2 additions & 2 deletions kubernetes/apps/default/homepage/app/externalsecret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
24 changes: 9 additions & 15 deletions kubernetes/apps/default/homepage/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/default/homepage/app/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 9 additions & 0 deletions kubernetes/apps/default/homepage/app/resources/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}

0 comments on commit f967f03

Please sign in to comment.