Skip to content

Commit

Permalink
separate wal storage
Browse files Browse the repository at this point in the history
  • Loading branch information
klinch0 committed Jan 24, 2025
1 parent 469d1e9 commit 319f9ea
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 17 deletions.
5 changes: 2 additions & 3 deletions packages/apps/ferretdb/templates/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,18 @@ metadata:
spec:
instances: {{ .Values.replicas }}
enableSuperuserAccess: true

minSyncReplicas: {{ .Values.quorum.minSyncReplicas }}
maxSyncReplicas: {{ .Values.quorum.maxSyncReplicas }}

monitoring:
enablePodMonitor: true

storage:
size: {{ required ".Values.size is required" .Values.size }}
{{- with .Values.storageClass }}
storageClass: {{ . }}
{{- end }}

walStorage:
size: 1Gi
inheritedMetadata:
labels:
policy.cozystack.io/allow-to-apiserver: "true"
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/postgres/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type: application
# 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.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.8.0
version: 0.8.1

# 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
Expand Down
5 changes: 2 additions & 3 deletions packages/apps/postgres/templates/db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@ spec:

minSyncReplicas: {{ .Values.quorum.minSyncReplicas }}
maxSyncReplicas: {{ .Values.quorum.maxSyncReplicas }}

monitoring:
enablePodMonitor: true

storage:
size: {{ required ".Values.size is required" .Values.size }}
{{- with .Values.storageClass }}
storageClass: {{ . }}
{{- end }}

walStorage:
size: {{ .Values.walSize | default "1Gi" }}
inheritedMetadata:
labels:
policy.cozystack.io/allow-to-apiserver: "true"
Expand Down
1 change: 1 addition & 0 deletions packages/apps/postgres/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
##
external: false
size: 10Gi
walSize: 1Gi
replicas: 2
storageClass: ""

Expand Down
3 changes: 2 additions & 1 deletion packages/apps/versions_map
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ postgres 0.6.0 2a4768a
postgres 0.6.2 54fd61c
postgres 0.7.0 dc9d8bb
postgres 0.7.1 175a65f
postgres 0.8.0 HEAD
postgres 0.8.0 cb7b8158
postgres 0.8.1 HEAD
rabbitmq 0.1.0 f642698
rabbitmq 0.2.0 5ca8823
rabbitmq 0.3.0 9e33dc0
Expand Down
2 changes: 1 addition & 1 deletion packages/core/installer/values.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cozystack:
image: ghcr.io/aenix-io/cozystack/cozystack:v0.23.1@sha256:dfa803a3e02ec9ea221029d361aa9d7aef0b5eb0a36d66c949b265d4ac4fc114
image: kklinch0/cozystack:22.0.56@sha256:b6b7c0caf72480e05b84b5512f54eed8541ee19d406975ce0f70a85e88035266
4 changes: 2 additions & 2 deletions packages/extra/monitoring/templates/alerta/alerta-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ spec:
{{- with .Values.alerta.storageClassName }}
storageClass: {{ . }}
{{- end }}

walStorage:
size: 1Gi
monitoring:
enablePodMonitor: true

inheritedMetadata:
labels:
policy.cozystack.io/allow-to-apiserver: "true"
Expand Down
4 changes: 2 additions & 2 deletions packages/extra/monitoring/templates/grafana/db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ spec:
instances: 2
storage:
size: {{ .Values.grafana.db.size }}

walStorage:
size: 1Gi
monitoring:
enablePodMonitor: true

inheritedMetadata:
labels:
policy.cozystack.io/allow-to-apiserver: "true"
Expand Down
4 changes: 2 additions & 2 deletions packages/system/keycloak/templates/db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ spec:
instances: 2
storage:
size: 20Gi

walStorage:
size: 1Gi
monitoring:
enablePodMonitor: true

inheritedMetadata:
labels:
policy.cozystack.io/allow-to-apiserver: "true"
4 changes: 2 additions & 2 deletions packages/system/seaweedfs/templates/database.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ spec:
instances: 2
storage:
size: 10Gi

walStorage:
size: 1Gi
monitoring:
enablePodMonitor: true

inheritedMetadata:
labels:
policy.cozystack.io/allow-to-apiserver: "true"

0 comments on commit 319f9ea

Please sign in to comment.