Use persistent volume claim with stash
This commit is contained in:
13
ansible-5/roles/prod.k3s/files/stash/pv-claim.yaml
Normal file
13
ansible-5/roles/prod.k3s/files/stash/pv-claim.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: stash-pv-claim
|
||||
namespace: testing
|
||||
spec:
|
||||
storageClassName: manual
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
17
ansible-5/roles/prod.k3s/files/stash/pv.yaml
Normal file
17
ansible-5/roles/prod.k3s/files/stash/pv.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
# persistent volume
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: plex-pv-local
|
||||
labels:
|
||||
type: local
|
||||
spec:
|
||||
storageClassName: manual
|
||||
capacity:
|
||||
storage: 100Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
hostPath:
|
||||
path: "/opt/data/plex"
|
||||
|
||||
14
ansible-5/roles/prod.k3s/files/stash/values.yaml
Normal file
14
ansible-5/roles/prod.k3s/files/stash/values.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
#values file for stash deployment
|
||||
|
||||
ingress:
|
||||
main:
|
||||
enabled: true
|
||||
hosts:
|
||||
- host: stash.xai-corp.net
|
||||
paths:
|
||||
- path: /opt/stash
|
||||
persistence:
|
||||
config:
|
||||
enabled: true
|
||||
existingClaim: stash-pv-claim
|
||||
Reference in New Issue
Block a user