Skip to content

Commit

Permalink
feat(tautulli): add seperate cache pvc
Browse files Browse the repository at this point in the history
  • Loading branch information
drag0n141 committed Jan 3, 2025
1 parent 3c6dbe5 commit 8c3194d
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 30 deletions.
4 changes: 2 additions & 2 deletions kubernetes/main/apps/default/komodo/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ spec:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: external-secrets-stores
- name: rook-ceph-cluster
- name: volsync
- name: external-secrets-stores
path: ./kubernetes/main/apps/default/komodo/db
prune: true
sourceRef:
Expand All @@ -38,8 +38,8 @@ spec:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: komodo-db
- name: external-secrets-stores
- name: komodo-db
path: ./kubernetes/main/apps/default/komodo/app
prune: true
sourceRef:
Expand Down
22 changes: 8 additions & 14 deletions kubernetes/main/apps/media/tautulli/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,6 @@ spec:
kind: HelmRepository
name: bjw-s
namespace: flux-system
maxHistory: 2
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
dependsOn:
- name: rook-ceph-cluster
namespace: rook-ceph
- name: volsync
namespace: storage
values:
controllers:
tautulli:
Expand Down Expand Up @@ -114,6 +100,14 @@ spec:
existingClaim: tautulli
globalMounts:
- path: /config
cache:
existingClaim: tautulli-cache
globalMounts:
- path: /config/cache
logs:
type: emptyDir
globalMounts:
- path: /config/logs
tmp:
type: emptyDir
globalMounts:
Expand Down
1 change: 1 addition & 0 deletions kubernetes/main/apps/media/tautulli/app/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml
- ./pvc.yaml
- ../../../../../shared/templates/gatus/internal
- ../../../../../shared/templates/volsync
11 changes: 11 additions & 0 deletions kubernetes/main/apps/media/tautulli/app/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: tautulli-cache
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 15Gi
storageClassName: ceph-block
5 changes: 5 additions & 0 deletions kubernetes/main/apps/media/tautulli/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ metadata:
namespace: flux-system
spec:
targetNamespace: media
commonMetadata:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: external-secrets-stores
- name: rook-ceph-cluster
- name: volsync
path: ./kubernetes/main/apps/media/tautulli/app
prune: true
sourceRef:
Expand Down
22 changes: 8 additions & 14 deletions kubernetes/main/apps/media/tautulli142/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,6 @@ spec:
kind: HelmRepository
name: bjw-s
namespace: flux-system
maxHistory: 2
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
dependsOn:
- name: rook-ceph-cluster
namespace: rook-ceph
- name: volsync
namespace: storage
values:
controllers:
tautulli:
Expand Down Expand Up @@ -114,6 +100,14 @@ spec:
existingClaim: tautulli142
globalMounts:
- path: /config
cache:
existingClaim: tautulli142-cache
globalMounts:
- path: /config/cache
logs:
type: emptyDir
globalMounts:
- path: /config/logs
tmp:
type: emptyDir
globalMounts:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml
- ./pvc.yaml
- ../../../../../shared/templates/gatus/internal
- ../../../../../shared/templates/volsync
11 changes: 11 additions & 0 deletions kubernetes/main/apps/media/tautulli142/app/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: tautulli142-cache
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 15Gi
storageClassName: ceph-block
5 changes: 5 additions & 0 deletions kubernetes/main/apps/media/tautulli142/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ metadata:
namespace: flux-system
spec:
targetNamespace: media
commonMetadata:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: external-secrets-stores
- name: rook-ceph-cluster
- name: volsync
path: ./kubernetes/main/apps/media/tautulli142/app
prune: true
sourceRef:
Expand Down

0 comments on commit 8c3194d

Please sign in to comment.