Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ refer to the [CloudNativePG Documentation](https://cloudnative-pg.io/documentat
| cluster.storage.size | string | `"8Gi"` | |
| cluster.storage.storageClass | string | `""` | |
| cluster.superuserSecret | string | `""` | |
| cluster.tablespaces | list | `[]` | Tablespaces configuration Ref: https://cloudnative-pg.io/docs/1.28/cloudnative-pg.v1/#tablespaceconfiguration |
| cluster.walStorage.enabled | bool | `false` | |
| cluster.walStorage.size | string | `"1Gi"` | |
| cluster.walStorage.storageClass | string | `""` | |
Expand Down
18 changes: 18 additions & 0 deletions charts/cluster/examples/tablespaces.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
type: postgresql
mode: standalone
version:
postgresql: "16"
cluster:
instances: 1
backups:
enabled: false
tablespaces:
- name: analytics_data
storage:
size: 50Gi
storageClass: local-path
temporary: false
- name: my_temp_space
storage:
size: 20Gi
temporary: true
4 changes: 4 additions & 0 deletions charts/cluster/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ spec:
storageClass: {{ .Values.cluster.walStorage.storageClass }}
{{- end }}
{{- end }}
{{- with .Values.tablespaces }}
tablespaces:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.cluster.resources }}
resources:
{{- toYaml . | nindent 4 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/cluster/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@
"superuserSecret": {
"type": "string"
},
"tablespaces": {
"type": "array"
},
"walStorage": {
"type": "object",
"properties": {
Expand Down
11 changes: 11 additions & 0 deletions charts/cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,17 @@ cluster:
size: 1Gi
storageClass: ""

# -- Tablespaces configuration
# Ref: https://cloudnative-pg.io/docs/1.28/cloudnative-pg.v1/#tablespaceconfiguration
tablespaces: []
# - name: fast_ssd
# storage:
# size: 10Gi
# storageClass: premium-rwo
# owner:
# name: app
# temporary: false

# -- The UID of the postgres user inside the image, defaults to 26
postgresUID: -1

Expand Down