Skip to content

Commit

Permalink
Add pv to helm
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewpeterkort committed Oct 7, 2024
1 parent b6a1111 commit 85f2eb5
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
21 changes: 21 additions & 0 deletions helm/aws-es-proxy/templates/elasticsearch-pv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: elasticsearch-pv
labels:
app: elasticsearch-master
spec:
storageClassName: local-storage
volumeMode: Filesystem
capacity:
storage: 30Gi # Adjust the size as needed
accessModes:
- ReadWriteOnce # Adjust the access mode as needed
persistentVolumeReclaimPolicy: Retain
hostPath:
path: /usr/share/elasticsearch/data

claimRef:
namespace: default
name: elasticsearch-master-elasticsearch-master-0

17 changes: 17 additions & 0 deletions helm/common/templates/postgres-pv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: postgres-pv
labels:
app.kubernetes.io/name: postgresql
spec:
capacity:
storage: 30Gi # Adjust the size as needed
accessModes:
- ReadWriteOnce # Adjust the access mode as needed
claimRef:
namespace: default
name: data-local-postgresql-0
persistentVolumeReclaimPolicy: Retain
hostPath:
path: /bitnami/postgresql
25 changes: 25 additions & 0 deletions helm/mongodb/templates/mongodb-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: mongodb-pv
labels:
app.kubernetes.io/component: mongodb
app.kubernetes.io/instance: local
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: mongodb
annotations:
meta.helm.sh/release-name: local
meta.helm.sh/release-namespace: default
spec:
storageClassName: "" # Leave empty if not using a storage class
volumeMode: Filesystem
capacity:
storage: 30Gi
accessModes:
- ReadWriteOnce
claimRef:
namespace: default
name: mongodb
persistentVolumeReclaimPolicy: Retain
hostPath:
path: /usr/share/mongodb/data

0 comments on commit 85f2eb5

Please sign in to comment.