Skip to content

Commit

Permalink
✨ add backups for stateful services
Browse files Browse the repository at this point in the history
  • Loading branch information
charlie-haley committed Dec 7, 2023
1 parent 6f9157e commit eabbb9f
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 14 deletions.
31 changes: 17 additions & 14 deletions kubernetes/manifests/apps/home/home-assistant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ helm:
chart: app-template
version: 1.5.1

backup:
pvc: "home-assistant-config"

values:
controller:
type: statefulset
Expand Down Expand Up @@ -51,25 +54,25 @@ values:
tag: 4.17.0
workingDir: "/config"
args:
- --auth
- "none"
- --user-data-dir
- "/config/.vscode"
- --extensions-dir
- "/config/.vscode"
- --auth
- "none"
- --user-data-dir
- "/config/.vscode"
- --extensions-dir
- "/config/.vscode"
ingress:
enabled: true
ingressClassName: "traefik"
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
hosts:
- host: "hass-config.${SECRET_DOMAIN}"
paths:
- path: /
pathType: Prefix
- host: "hass-config.${SECRET_DOMAIN}"
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- "hass-config.${SECRET_DOMAIN}"
- hosts:
- "hass-config.${SECRET_DOMAIN}"
volumeMounts:
- name: config
mountPath: /config
- name: config
mountPath: /config
3 changes: 3 additions & 0 deletions kubernetes/manifests/apps/media/plex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ helm:
chart: app-template
version: 1.5.1

backup:
pvc: "plex-config"

values:
automountServiceAccountToken: false
controller:
Expand Down
3 changes: 3 additions & 0 deletions kubernetes/manifests/apps/media/prowlarr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ helm:
chart: app-template
version: 1.5.1

backup:
pvc: "prowlarr-config"

values:
automountServiceAccountToken: false
controller:
Expand Down
3 changes: 3 additions & 0 deletions kubernetes/manifests/apps/media/radarr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ helm:
chart: app-template
version: 1.5.1

backup:
pvc: "radarr-config"

values:
automountServiceAccountToken: false
controller:
Expand Down
3 changes: 3 additions & 0 deletions kubernetes/manifests/apps/media/sabnzbd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ helm:
chart: app-template
version: 1.5.1

backup:
pvc: "sabnzbd-config"

values:
automountServiceAccountToken: false
controller:
Expand Down
3 changes: 3 additions & 0 deletions kubernetes/manifests/apps/media/sonarr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ helm:
chart: app-template
version: 1.5.1

backup:
pvc: "sonarr-config"

values:
automountServiceAccountToken: false
controller:
Expand Down
3 changes: 3 additions & 0 deletions kubernetes/manifests/apps/observability/grafana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ helm:
dependsOn:
- name: observability-grafana-agent

backup:
pvc: "grafana-config"

values:
replicas: 1
deploymentStrategy:
Expand Down

0 comments on commit eabbb9f

Please sign in to comment.