Skip to content

Commit

Permalink
[#4179] Fix postgresql statefulset
Browse files Browse the repository at this point in the history
  • Loading branch information
ljupcovangelski committed Jul 27, 2024
1 parent 8ac7a0b commit 1430078
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
6 changes: 5 additions & 1 deletion infrastructure/helm-chart/charts/tools/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ dependencies:
- name: akhq
condition: akhq.enabled
- name: kafka-connect
condition: kafka-connect.enabled
condition: kafka-connect.enabled
- name: postgresql
condition: postgresql.enabled
- name: redis
condition: redis.enabled
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ spec:
app: {{ .Values.name }}
spec:
terminationGracePeriodSeconds: 10
initContainers:
- command:
- sh
- -c
- rmdir /var/lib/postgresql/data/lost+found
image: ghcr.io/airyhq/infrastructure/busybox:latest
imagePullPolicy: IfNotPresent
name: fix-new-directory
resources: {}
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: {{ .Values.name }}-data
containers:
- name: {{ .Values.name }}
image: {{ .Values.image }}:{{ .Values.version }}
Expand All @@ -38,6 +50,9 @@ spec:
successThreshold: 1
failureThreshold: 5
resources: {{ .Values.resources }}
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: {{ .Values.name }}-data
volumeClaimTemplates:
- metadata:
name: {{ .Values.name }}-data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: postgresql
mandatory: false
enabled: true
enabled: false
image: postgres
version: 15.1
port: 5432
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
enabled: false
version: 7.0.8
port: 6379
storage: "5Gi"
Expand Down

0 comments on commit 1430078

Please sign in to comment.