Skip to content

Commit 1cc1faf

Browse files
add pvc
1 parent 3d09264 commit 1cc1faf

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

itscontained/statping/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: statping
33
description: Status page for monitoring your websites and applications
44
type: application
5-
version: 0.1.5
5+
version: 0.1.6
66
appVersion: v0.90.65
77
keywords:
88
- statping

itscontained/statping/templates/postgres.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if eq .Values.postgres.type "kubedb" }}
1+
{{- if and .Values.postgres.enabled (eq .Values.postgres.type "kubedb") }}
22
apiVersion: kubedb.com/v1alpha1
33
kind: Postgres
44
metadata:
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}}
2+
kind: PersistentVolumeClaim
3+
apiVersion: v1
4+
metadata:
5+
name: {{ include "statping.fullname" . }}
6+
spec:
7+
accessModes:
8+
- {{ .Values.persistence.accessMode | quote }}
9+
resources:
10+
requests:
11+
storage: {{ .Values.persistence.size | quote }}
12+
{{- if .Values.persistence.storageClass }}
13+
storageClassName: {{ .Values.persistence.storageClass | quote }}
14+
{{- end }}
15+
{{- end -}}

itscontained/statping/values.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,10 @@ persistence:
8989
skipuninstall: false
9090

9191
postgres:
92+
enabled: true
9293
type: kubedb
9394
kubedb:
94-
version: "11.1"
95+
version: 11.1
9596
storageType: Durable
9697
storage:
9798
accessModes:

0 commit comments

Comments
 (0)