mount extra volumes for stash
This commit is contained in:
@@ -26,6 +26,7 @@ volumes:
|
||||
- name: vmshares
|
||||
- name: mariadb
|
||||
- name: plex
|
||||
- name: plex-data
|
||||
- name: nextcloud
|
||||
- name: nextcloud2
|
||||
# - name: prometheus
|
||||
@@ -48,6 +49,7 @@ mounts:
|
||||
nextcloud: /data/glusterfs/nextcloud/brick1
|
||||
nextcloud2: /data/glusterfs/nextcloud2/brick1 # dead
|
||||
plex: /data/glusterfs/plex/brick1
|
||||
plex-data: /data/glusterfs/plex-data/brick1
|
||||
postgres: /data/glusterfs/postgres/brick1 # dead
|
||||
prometheus: /data/glusterfs/prometheus/brick1
|
||||
tmp: /data/glusterfs/tmp/brick1
|
||||
@@ -78,6 +80,9 @@ mounts:
|
||||
- name: plex
|
||||
status: mounted
|
||||
src: "UUID=57a3133c-6ca3-4974-9a0b-7efc8c0c533b"
|
||||
- name: plex-data
|
||||
status: mounted
|
||||
src: "UUID=cdff8026-1d56-4cee-8c12-8c61dc587850"
|
||||
- name: nextcloud2 # dead
|
||||
status: mounted
|
||||
src: "UUID=ced31b8e-8404-4bff-b428-6411c54451a4"
|
||||
|
||||
@@ -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
|
||||
|
||||
13
ansible-5/roles/prod.k3s/files/stash/pv-media-claim.yaml
Normal file
13
ansible-5/roles/prod.k3s/files/stash/pv-media-claim.yaml
Normal 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
|
||||
17
ansible-5/roles/prod.k3s/files/stash/pv-media.yaml
Normal file
17
ansible-5/roles/prod.k3s/files/stash/pv-media.yaml
Normal 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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user