Skip to content
Snippets Groups Projects
Verified Commit 454e5f5d authored by Frank Sauerburger's avatar Frank Sauerburger
Browse files

Fix persistent storage

parent 4a568277
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ type: application ...@@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes # This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version. # to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/) # Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0 version: 0.2.1
# This is the version number of the application being deployed. This version number should be # This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to # incremented each time you make changes to the application. Versions are not expected to
......
...@@ -34,6 +34,18 @@ spec: ...@@ -34,6 +34,18 @@ spec:
requests: requests:
storage: {{ .Values.storage.requestSize | quote }} storage: {{ .Values.storage.requestSize | quote }}
--- ---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Release.Name }}-pgadmin-pvc
spec:
accessModes:
- ReadWriteMany
storageClassName: {{ .Values.storage.persistentStorageClass | quote }}
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
...@@ -88,6 +100,9 @@ spec: ...@@ -88,6 +100,9 @@ spec:
port: 5432 port: 5432
initialDelaySeconds: 120 initialDelaySeconds: 120
periodSeconds: 30 periodSeconds: 30
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: vol
volumes: volumes:
- name: vol - name: vol
persistentVolumeClaim: persistentVolumeClaim:
...@@ -120,7 +135,7 @@ spec: ...@@ -120,7 +135,7 @@ spec:
spec: spec:
containers: containers:
- name: pgadmin - name: pgadmin
image: docker.sauerburger.com/dpage/pgadmin4:2021-10-06-2 image: docker.sauerburger.com/dpage/pgadmin4:6.1
ports: ports:
- containerPort: 80 - containerPort: 80
env: env:
...@@ -151,6 +166,13 @@ spec: ...@@ -151,6 +166,13 @@ spec:
port: 80 port: 80
initialDelaySeconds: 600 initialDelaySeconds: 600
periodSeconds: 30 periodSeconds: 30
volumeMounts:
- mountPath: /var/lib/pgadmin
name: vol
volumes:
- name: vol
persistentVolumeClaim:
claimName: {{ .Release.Name }}-pgadmin-pvc
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment