mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 23:49:12 +00:00
[zalando-postgres-cluster ] Enable additional settings for dumpBackup (#1037)
* enable additional settings for dumpBackup * Update charts/stable/zalando-postgres-cluster/values.yaml Co-authored-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <bernd@bjws.nl> * add feedback Co-authored-by: angelnu <git@angelnucom> Co-authored-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <bernd@bjws.nl>
This commit is contained in:
parent
ee3c2a7fe0
commit
6eae653ea4
@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [2.2.0]
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Support for persistence volume settings in dumpBackup
|
||||||
## [1.0.0]
|
## [1.0.0]
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
version: 2.1.0
|
version: 2.2.0
|
||||||
description: Creates a postgres cluster using the Zalando Postgres operator and local storage
|
description: Creates a postgres cluster using the Zalando Postgres operator and local storage
|
||||||
name: zalando-postgres-cluster
|
name: zalando-postgres-cluster
|
||||||
appVersion: 1.0.0
|
appVersion: 1.0.0
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# zalando-postgres-cluster
|
# zalando-postgres-cluster
|
||||||
|
|
||||||
![Version: 2.1.0](https://img.shields.io/badge/Version-2.1.0-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)
|
![Version: 2.2.0](https://img.shields.io/badge/Version-2.2.0-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)
|
||||||
|
|
||||||
Creates a postgres cluster using the Zalando Postgres operator and local storage
|
Creates a postgres cluster using the Zalando Postgres operator and local storage
|
||||||
|
|
||||||
@ -80,15 +80,17 @@ Features added by this wrapper:
|
|||||||
|
|
||||||
| Key | Type | Default | Description |
|
| Key | Type | Default | Description |
|
||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
| dumpBackup.existingClaim | string | `nil` | |
|
| dumpBackup.enabled | bool | `false` | Enable backups to a PVC |
|
||||||
| dumpBackup.image.pullPolicy | string | `"IfNotPresent"` | |
|
| dumpBackup.existingClaim | string | `nil` | existing claim |
|
||||||
| dumpBackup.image.repository | string | `"postgres"` | |
|
| dumpBackup.image.pullPolicy | string | `"IfNotPresent"` | image pull policy |
|
||||||
| dumpBackup.image.tag | string | `"latest"` | |
|
| dumpBackup.image.repository | string | `"postgres"` | image used for the backups |
|
||||||
| dumpBackup.resources.requests.cpu | string | `"5m"` | |
|
| dumpBackup.image.tag | string | `"latest"` | image pull tag |
|
||||||
| dumpBackup.resources.requests.memory | string | `"10Mi"` | |
|
| dumpBackup.resources.requests.cpu | string | `"5m"` | requested cpu for backup |
|
||||||
|
| dumpBackup.resources.requests.memory | string | `"10Mi"` | requested memory for backup |
|
||||||
| dumpBackup.schedule | string | `"@daily"` | Backup schedule for postgres dumps |
|
| dumpBackup.schedule | string | `"@daily"` | Backup schedule for postgres dumps |
|
||||||
| dumpBackup.subpath | string | `nil` | Persistent volume claim subpath for the backups @default: <subpathPrefix/<release-name> |
|
| dumpBackup.subpath | string | `nil` | Persistent volume claim subpath for the backups @default: <subpathPrefix/<release-name> |
|
||||||
| dumpBackup.subpathPrefix | string | `"backup/db"` | Persistent volume claim subpath prefix for the backups |
|
| dumpBackup.subpathPrefix | string | `"backup/db"` | Persistent volume claim subpath prefix for the backups |
|
||||||
|
| dumpBackup.type | string | `nil` | Sets the persistence type. Valid options are pvc, emptyDir, hostPath or custom. See [common chart persistence doc](https://github.com/k8s-at-home/library-charts/blob/main/charts/stable/common/values.yaml) |
|
||||||
| persistentVolumes.accessModes[0] | string | `"ReadWriteOnce"` | |
|
| persistentVolumes.accessModes[0] | string | `"ReadWriteOnce"` | |
|
||||||
| persistentVolumes.annotations | object | `{}` | |
|
| persistentVolumes.annotations | object | `{}` | |
|
||||||
| persistentVolumes.hostPath | string | `nil` | Local path for the persistent volumes @default: <hostPathPrefix/<release-name> |
|
| persistentVolumes.hostPath | string | `nil` | Local path for the persistent volumes @default: <hostPathPrefix/<release-name> |
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{{- if .Values.dumpBackup.existingClaim -}}
|
{{- if or .Values.dumpBackup.enabled .Values.dumpBackup.existingClaim -}}
|
||||||
# ------------------- CronJob ------------------- #
|
# ------------------- CronJob ------------------- #
|
||||||
apiVersion: batch/v1beta1
|
apiVersion: batch/v1beta1
|
||||||
kind: CronJob
|
kind: CronJob
|
||||||
@ -50,7 +50,7 @@ spec:
|
|||||||
subPath: {{ include "zalando-postgres-cluster.backupPVCSubpath" . }}
|
subPath: {{ include "zalando-postgres-cluster.backupPVCSubpath" . }}
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
volumes:
|
volumes:
|
||||||
- name: backup-volume
|
{{- $valuesCopy := deepCopy . -}}
|
||||||
persistentVolumeClaim:
|
{{- $_ := set $valuesCopy.Values "persistence" (dict "backup-volume" .Values.dumpBackup ) -}}
|
||||||
claimName: {{ .Values.dumpBackup.existingClaim }}
|
{{- include "common.controller.volumes" $valuesCopy | nindent 12 }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -59,8 +59,15 @@ persistentVolumes:
|
|||||||
|
|
||||||
|
|
||||||
dumpBackup:
|
dumpBackup:
|
||||||
# Enable backups to a PVC
|
# -- Enable backups to a PVC
|
||||||
|
enabled: false
|
||||||
|
# -- existing claim
|
||||||
existingClaim:
|
existingClaim:
|
||||||
|
# -- Sets the persistence type.
|
||||||
|
# Valid options are pvc, emptyDir, hostPath or custom.
|
||||||
|
# See
|
||||||
|
# [common chart persistence doc](https://github.com/k8s-at-home/library-charts/blob/main/charts/stable/common/values.yaml)
|
||||||
|
type:
|
||||||
# -- Backup schedule for postgres dumps
|
# -- Backup schedule for postgres dumps
|
||||||
schedule: "@daily"
|
schedule: "@daily"
|
||||||
# -- Persistent volume claim subpath prefix for the backups
|
# -- Persistent volume claim subpath prefix for the backups
|
||||||
@ -69,10 +76,15 @@ dumpBackup:
|
|||||||
# @default: <subpathPrefix/<release-name>
|
# @default: <subpathPrefix/<release-name>
|
||||||
subpath:
|
subpath:
|
||||||
image:
|
image:
|
||||||
|
# -- image used for the backups
|
||||||
repository: postgres
|
repository: postgres
|
||||||
|
# -- image pull policy
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
# -- image pull tag
|
||||||
tag: latest
|
tag: latest
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
|
# -- requested memory for backup
|
||||||
memory: "10Mi"
|
memory: "10Mi"
|
||||||
|
# -- requested cpu for backup
|
||||||
cpu: "5m"
|
cpu: "5m"
|
||||||
|
Loading…
Reference in New Issue
Block a user