Skip to content

Commit

Permalink
feat: convert plex to deploy
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed Nov 16, 2023
1 parent 166f755 commit df94481
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 11 deletions.
12 changes: 3 additions & 9 deletions kubernetes/apps/default/plex/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ spec:
values:
controllers:
main:
type: statefulset
annotations:
reloader.stakater.com/auto: "true"
containers:
Expand Down Expand Up @@ -86,14 +85,6 @@ spec:
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
supplementalGroups: [44, 105, 10000]
statefulset:
volumeClaimTemplates:
- name: config
accessMode: ReadWriteOnce
size: 100Gi
storageClass: ceph-block
globalMounts:
- path: /config
service:
main:
type: LoadBalancer
Expand All @@ -120,6 +111,9 @@ spec:
- hosts:
- *host
persistence:
config:
enabled: true
existingClaim: plex
transcode:
type: emptyDir
media:
Expand Down
42 changes: 40 additions & 2 deletions kubernetes/apps/default/plex/app/volsync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,52 @@ spec:
- extract:
key: volsync-restic-template
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: plex
namespace: default
spec:
accessModes: ["ReadWriteOnce"]
dataSourceRef:
kind: ReplicationDestination
apiGroup: volsync.backube
name: plex-rdst
resources:
requests:
storage: 100Gi # must match the ReplicationDestination `.spec.capacity` below
storageClassName: ceph-block
---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/volsync.backube/replicationdestination_v1alpha1.json
apiVersion: volsync.backube/v1alpha1
kind: ReplicationDestination
metadata:
name: plex-rdst
namespace: default
annotations:
kustomize.toolkit.fluxcd.io/ssa: IfNotPresent
spec:
trigger:
manual: restore-once
restic:
repository: plex-restic-secret
copyMethod: Snapshot
volumeSnapshotClassName: csi-ceph-blockpool
cacheStorageClassName: local-path
cacheAccessModes: ["ReadWriteOnce"]
cacheCapacity: 8Gi
storageClassName: ceph-block
accessModes: ["ReadWriteOnce"]
capacity: 100Gi # must match the PersistentVolumeClaim `.resources.requests.storage` size above
---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/volsync.backube/replicationsource_v1alpha1.json
apiVersion: volsync.backube/v1alpha1
kind: ReplicationSource
metadata:
name: plex
name: plex-rsrc
namespace: default
spec:
sourcePVC: config-plex-0
sourcePVC: plex
trigger:
schedule: "0 7 * * *"
restic:
Expand Down

0 comments on commit df94481

Please sign in to comment.