mount extra volumes for stash

This commit is contained in:
2022-11-29 21:13:47 -05:00
parent d325d56237
commit 20765de381
20 changed files with 129 additions and 0 deletions

View File

@@ -8,6 +8,9 @@ fstab:
- name: plex
path: "/opt/data/plex"
state: mounted
- name: plex-data
path: "/opt/data/plex-data"
state: mounted
# - name: jenkins
# path: "/var/lib/jenkins"
# state: mounted

View File

@@ -0,0 +1,13 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: stash-pv-media-claim
namespace: stashapp
spec:
storageClassName: manual
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Gi

View File

@@ -0,0 +1,17 @@
---
# persistent volume
apiVersion: v1
kind: PersistentVolume
metadata:
name: plex-pv-media-local
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: 100Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/dev/mapper/plex-data"

View File

@@ -1,5 +1,6 @@
---
#values file for stash deployment
#https://github.com/k8s-at-home/charts/blob/master/charts/stable/stash/values.yaml
image:
repository: stashapp/stash

View File

@@ -20,6 +20,8 @@
loop:
- stash/pv.yaml
- stash/pv-claim.yaml
# - stash/pv-media.yaml
# - stash/pv-media-claim.yaml
become: true
- name: Add stash chart helm repo