Skip to content

Commit

Permalink
Add PVC for rhbk
Browse files Browse the repository at this point in the history
  • Loading branch information
mdujava authored and mastastny committed Sep 25, 2024
1 parent ecb987e commit dbefa3d
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions base/rhbk/rhbk-db.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: rhbk-db-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
Expand All @@ -18,8 +29,8 @@ spec:
- name: rhbk-db
image: registry.redhat.io/rhscl/postgresql-10-rhel7
volumeMounts:
- mountPath: /data
name: cache-volume
- mountPath: /var/lib/pgsql/data
name: psqldata
env:
- name: POSTGRESQL_USER
valueFrom:
Expand All @@ -36,11 +47,10 @@ spec:
secretKeyRef:
name: rhbk-db-secret
key: db_name
- name: PGDATA
value: /data/pgdata
volumes:
- name: cache-volume
emptyDir: {}
- name: psqldata
persistentVolumeClaim:
claimName: rhbk-db-pvc
---
apiVersion: v1
kind: Service
Expand Down

0 comments on commit dbefa3d

Please sign in to comment.