Compare commits
65 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 61467d4638 | |||
| c6a6668e5e | |||
| 8d095b58f9 | |||
| f5d11d2420 | |||
|
0aa464d28a
|
|||
| 79c8d11829 | |||
|
feb39465e0
|
|||
| d4689e985c | |||
|
76e0dcf8e4
|
|||
| 2a63573d24 | |||
|
92cb9cdc4f
|
|||
| ed43f11723 | |||
| 75649b575e | |||
| 2574808017 | |||
| b86adc263c | |||
| 0c3cd87d11 | |||
| 5be7f9fb44 | |||
|
db9509ca97
|
|||
| 972bf33a3d | |||
| 34b8a20da2 | |||
| 8d0eff7517 | |||
|
f83d0b3013
|
|||
| 72ed6b7550 | |||
| f6dc893866 | |||
| ec50f602b0 | |||
| 46507aad6c | |||
| e8ab4c0132 | |||
| b19e962009 | |||
| 1d38d75e91 | |||
| 63f791c616 | |||
| 4597405cf8 | |||
| 7bd5e48581 | |||
| 0fbd8c98ed | |||
| a12bd66389 | |||
| c67f00fc5d | |||
| e3924cd8f2 | |||
| 03e15b12eb | |||
| 08ffb87965 | |||
| 1fd214924f | |||
| bbe771a559 | |||
| 490d1f0e23 | |||
| 94257be6ce | |||
| 2f5066a7f6 | |||
| a02f9c5fcd | |||
| 078e7659f4 | |||
|
16df0126cf
|
|||
| 9be8e7dd76 | |||
|
142a3556b1
|
|||
| 9347aa397e | |||
| 9e7ab77502 | |||
| 8c9a3bf080 | |||
| 86c9cd930a | |||
| 0f14e46c20 | |||
| 8cae3bb53c | |||
|
49e3392ed5
|
|||
| 8e9b9460b6 | |||
|
82ded9e1cd
|
|||
| 89319e12c5 | |||
|
007016b59f
|
|||
| 52363a1dbc | |||
| 1a535ae4c2 | |||
| 5a73a500a2 | |||
| 67d0dbcf71 | |||
| f901d1574b | |||
| 73779ad42b |
@@ -1,6 +1,6 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- name: common
|
- name: common
|
||||||
repository: https://bjw-s-labs.github.io/helm-charts/
|
repository: https://bjw-s-labs.github.io/helm-charts/
|
||||||
version: 4.6.2
|
version: 5.0.0
|
||||||
digest: sha256:35e8f4e5d15d878c246a04eb51de580291f31203fa10e9e4d2318f16026b2061
|
digest: sha256:153788a98eab8a2e83bd456e1f6f3d53d1a3363bfe5bca07bd232d948e01a6b2
|
||||||
generated: "2026-01-16T13:29:29.385123-06:00"
|
generated: "2026-05-07T20:55:55.373128-05:00"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: cloudflared
|
name: cloudflared
|
||||||
version: 2.6.0
|
version: 3.3.0
|
||||||
description: Cloudflared Tunnel
|
description: Cloudflared Tunnel
|
||||||
keywords:
|
keywords:
|
||||||
- cloudflare
|
- cloudflare
|
||||||
@@ -14,7 +14,7 @@ maintainers:
|
|||||||
dependencies:
|
dependencies:
|
||||||
- name: common
|
- name: common
|
||||||
repository: https://bjw-s-labs.github.io/helm-charts/
|
repository: https://bjw-s-labs.github.io/helm-charts/
|
||||||
version: 4.6.2
|
version: 5.0.0
|
||||||
icon: https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/cloudflare.png
|
icon: https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/cloudflare.png
|
||||||
# renovate: datasource=docker depName=cloudflare/cloudflared
|
# renovate: datasource=docker depName=cloudflare/cloudflared
|
||||||
appVersion: 2026.3.0
|
appVersion: 2026.5.0
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# cloudflared
|
# cloudflared
|
||||||
|
|
||||||
 
|
 
|
||||||
|
|
||||||
Cloudflared Tunnel
|
Cloudflared Tunnel
|
||||||
|
|
||||||
@@ -20,14 +20,16 @@ Cloudflared Tunnel
|
|||||||
|
|
||||||
| Repository | Name | Version |
|
| Repository | Name | Version |
|
||||||
|------------|------|---------|
|
|------------|------|---------|
|
||||||
| https://bjw-s-labs.github.io/helm-charts/ | common | 4.6.2 |
|
| https://bjw-s-labs.github.io/helm-charts/ | common | 5.0.0 |
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Key | Type | Default | Description |
|
| Key | Type | Default | Description |
|
||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
| image | object | `{"pullPolicy":"IfNotPresent","repository":"cloudflare/cloudflared","tag":"2026.3.0@sha256:6b599ca3e974349ead3286d178da61d291961182ec3fe9c505e1dd02c8ac31b0"}` | Default image |
|
| image | object | `{"pullPolicy":"IfNotPresent","repository":"cloudflare/cloudflared","tag":"2026.3.0@sha256:6b599ca3e974349ead3286d178da61d291961182ec3fe9c505e1dd02c8ac31b0"}` | Default image |
|
||||||
|
| metrics | object | `{"enabled":true}` | Metrics |
|
||||||
| name | string | `""` | Name override of release |
|
| name | string | `""` | Name override of release |
|
||||||
|
| protocol | string | `"auto"` | Protocol - Available values are auto, http2, and quic. |
|
||||||
| resources | object | `{"requests":{"cpu":"1m","memory":"20Mi"}}` | Default resources |
|
| resources | object | `{"requests":{"cpu":"1m","memory":"20Mi"}}` | Default resources |
|
||||||
| secret | object | `{"existingSecret":{"key":"cf-tunnel-token","name":"cloudflared-secret"},"externalSecret":{"additionalLabels":{},"enabled":true,"nameOverride":"","store":{"name":"openbao","path":"/cloudflare/tunnels","property":"token"}}}` | Secret configuration |
|
| secret | object | `{"existingSecret":{"key":"cf-tunnel-token","name":"cloudflared-secret"},"externalSecret":{"additionalLabels":{},"enabled":true,"nameOverride":"","store":{"name":"openbao","path":"/cloudflare/tunnels","property":"token"}}}` | Secret configuration |
|
||||||
| secret.existingSecret | object | `{"key":"cf-tunnel-token","name":"cloudflared-secret"}` | Name of existing secret that contains Cloudflare token |
|
| secret.existingSecret | object | `{"key":"cf-tunnel-token","name":"cloudflared-secret"}` | Name of existing secret that contains Cloudflare token |
|
||||||
|
|||||||
@@ -4,10 +4,14 @@
|
|||||||
global:
|
global:
|
||||||
nameOverride: {{ include "cloudflared.name" . }}
|
nameOverride: {{ include "cloudflared.name" . }}
|
||||||
fullNameOverride: {{ include "cloudflared.name" . }}
|
fullNameOverride: {{ include "cloudflared.name" . }}
|
||||||
|
createDefaultServiceAccount: true
|
||||||
controllers:
|
controllers:
|
||||||
main:
|
main:
|
||||||
type: deployment
|
type: deployment
|
||||||
|
replicas: 1
|
||||||
strategy: Recreate
|
strategy: Recreate
|
||||||
|
serviceAccount:
|
||||||
|
identifier: {{ .Release.Name }}
|
||||||
containers:
|
containers:
|
||||||
main:
|
main:
|
||||||
image:
|
image:
|
||||||
@@ -17,8 +21,12 @@ controllers:
|
|||||||
args:
|
args:
|
||||||
- tunnel
|
- tunnel
|
||||||
- --protocol
|
- --protocol
|
||||||
- http2
|
- {{ .Values.protocol }}
|
||||||
- --no-autoupdate
|
- --no-autoupdate
|
||||||
|
{{- if .Values.metrics.enabled }}
|
||||||
|
- --metrics
|
||||||
|
- 0.0.0.0:20241
|
||||||
|
{{- end }}
|
||||||
- run
|
- run
|
||||||
- --token
|
- --token
|
||||||
- $(CF_MANAGED_TUNNEL_TOKEN)
|
- $(CF_MANAGED_TUNNEL_TOKEN)
|
||||||
@@ -30,9 +38,29 @@ controllers:
|
|||||||
key: {{ include "secret.key" . }}
|
key: {{ include "secret.key" . }}
|
||||||
resources:
|
resources:
|
||||||
{{- with .Values.resources }}
|
{{- with .Values.resources }}
|
||||||
resources:
|
|
||||||
{{- toYaml . | nindent 10 }}
|
{{- toYaml . | nindent 10 }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{- if .Values.metrics.enabled }}
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
controller: main
|
||||||
|
ports:
|
||||||
|
metrics:
|
||||||
|
port: 20241
|
||||||
|
targetPort: 20241
|
||||||
|
serviceMonitor:
|
||||||
|
main:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: {{ include "cloudflared.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Namespace }}
|
||||||
|
serviceName: '{{ include "bjw-s.common.lib.chart.names.fullname" $ }}'
|
||||||
|
endpoints:
|
||||||
|
- port: metrics
|
||||||
|
interval: 30s
|
||||||
|
scrapeTimeout: 10s
|
||||||
|
path: /metrics
|
||||||
|
{{- end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $_ := mergeOverwrite .Values (include "cloudflared.hardcodedValues" . | fromYaml) -}}
|
{{- $_ := mergeOverwrite .Values (include "cloudflared.hardcodedValues" . | fromYaml) -}}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,13 @@
|
|||||||
# -- Name override of release
|
# -- Name override of release
|
||||||
name: ""
|
name: ""
|
||||||
|
|
||||||
|
# -- Protocol - Available values are auto, http2, and quic.
|
||||||
|
protocol: auto
|
||||||
|
|
||||||
|
# -- Metrics
|
||||||
|
metrics:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
# -- Secret configuration
|
# -- Secret configuration
|
||||||
secret:
|
secret:
|
||||||
|
|
||||||
@@ -26,7 +33,7 @@ secret:
|
|||||||
# -- Default image
|
# -- Default image
|
||||||
image:
|
image:
|
||||||
repository: cloudflare/cloudflared
|
repository: cloudflare/cloudflared
|
||||||
tag: 2026.3.0@sha256:6b599ca3e974349ead3286d178da61d291961182ec3fe9c505e1dd02c8ac31b0
|
tag: 2026.5.0@sha256:59bab8d3aceec09bf6bdb07d6beca0225ca5cd7ab79436a87ea97978fe1dc4f9
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
# -- Default resources
|
# -- Default resources
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- name: common
|
- name: common
|
||||||
repository: https://bjw-s-labs.github.io/helm-charts/
|
repository: https://bjw-s-labs.github.io/helm-charts/
|
||||||
version: 4.6.2
|
version: 5.0.0
|
||||||
digest: sha256:35e8f4e5d15d878c246a04eb51de580291f31203fa10e9e4d2318f16026b2061
|
digest: sha256:153788a98eab8a2e83bd456e1f6f3d53d1a3363bfe5bca07bd232d948e01a6b2
|
||||||
generated: "2026-01-16T13:29:01.760344-06:00"
|
generated: "2026-05-07T20:58:40.139936-05:00"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: generic-device-plugin
|
name: generic-device-plugin
|
||||||
version: 0.20.31
|
version: 0.21.5
|
||||||
description: Generic Device Plugin
|
description: Generic Device Plugin
|
||||||
keywords:
|
keywords:
|
||||||
- generic-device-plugin
|
- generic-device-plugin
|
||||||
@@ -14,5 +14,5 @@ maintainers:
|
|||||||
dependencies:
|
dependencies:
|
||||||
- name: common
|
- name: common
|
||||||
repository: https://bjw-s-labs.github.io/helm-charts/
|
repository: https://bjw-s-labs.github.io/helm-charts/
|
||||||
version: 4.6.2
|
version: 5.0.0
|
||||||
appVersion: 0.20.17
|
appVersion: 0.21.1
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# generic-device-plugin
|
# generic-device-plugin
|
||||||
|
|
||||||
 
|
 
|
||||||
|
|
||||||
Generic Device Plugin
|
Generic Device Plugin
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ Generic Device Plugin
|
|||||||
|
|
||||||
| Repository | Name | Version |
|
| Repository | Name | Version |
|
||||||
|------------|------|---------|
|
|------------|------|---------|
|
||||||
| https://bjw-s-labs.github.io/helm-charts/ | common | 4.6.2 |
|
| https://bjw-s-labs.github.io/helm-charts/ | common | 5.0.0 |
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ Generic Device Plugin
|
|||||||
| config | object | `{"data":"devices:\n - name: serial\n groups:\n - paths:\n - path: /dev/ttyUSB*\n - paths:\n - path: /dev/ttyACM*\n - paths:\n - path: /dev/tty.usb*\n - paths:\n - path: /dev/cu.*\n - paths:\n - path: /dev/cuaU*\n - paths:\n - path: /dev/rfcomm*\n - name: video\n groups:\n - paths:\n - path: /dev/video0\n - name: fuse\n groups:\n - count: 10\n paths:\n - path: /dev/fuse\n - name: audio\n groups:\n - count: 10\n paths:\n - path: /dev/snd\n - name: capture\n groups:\n - paths:\n - path: /dev/snd/controlC0\n - path: /dev/snd/pcmC0D0c\n - paths:\n - path: /dev/snd/controlC1\n mountPath: /dev/snd/controlC0\n - path: /dev/snd/pcmC1D0c\n mountPath: /dev/snd/pcmC0D0c\n - paths:\n - path: /dev/snd/controlC2\n mountPath: /dev/snd/controlC0\n - path: /dev/snd/pcmC2D0c\n mountPath: /dev/snd/pcmC0D0c\n - paths:\n - path: /dev/snd/controlC3\n mountPath: /dev/snd/controlC0\n - path: /dev/snd/pcmC3D0c\n mountPath: /dev/snd/pcmC0D0c\n","enabled":true}` | Config map |
|
| config | object | `{"data":"devices:\n - name: serial\n groups:\n - paths:\n - path: /dev/ttyUSB*\n - paths:\n - path: /dev/ttyACM*\n - paths:\n - path: /dev/tty.usb*\n - paths:\n - path: /dev/cu.*\n - paths:\n - path: /dev/cuaU*\n - paths:\n - path: /dev/rfcomm*\n - name: video\n groups:\n - paths:\n - path: /dev/video0\n - name: fuse\n groups:\n - count: 10\n paths:\n - path: /dev/fuse\n - name: audio\n groups:\n - count: 10\n paths:\n - path: /dev/snd\n - name: capture\n groups:\n - paths:\n - path: /dev/snd/controlC0\n - path: /dev/snd/pcmC0D0c\n - paths:\n - path: /dev/snd/controlC1\n mountPath: /dev/snd/controlC0\n - path: /dev/snd/pcmC1D0c\n mountPath: /dev/snd/pcmC0D0c\n - paths:\n - path: /dev/snd/controlC2\n mountPath: /dev/snd/controlC0\n - path: /dev/snd/pcmC2D0c\n mountPath: /dev/snd/pcmC0D0c\n - paths:\n - path: /dev/snd/controlC3\n mountPath: /dev/snd/controlC0\n - path: /dev/snd/pcmC3D0c\n mountPath: /dev/snd/pcmC0D0c\n","enabled":true}` | Config map |
|
||||||
| config.data | string | See [values.yaml](./values.yaml) | generic-device-plugin config file [[ref]](https://github.com/squat/generic-device-plugin#usage) |
|
| config.data | string | See [values.yaml](./values.yaml) | generic-device-plugin config file [[ref]](https://github.com/squat/generic-device-plugin#usage) |
|
||||||
| deviceDomain | string | `"devic.es"` | Domain used by devices for identifcation |
|
| deviceDomain | string | `"devic.es"` | Domain used by devices for identifcation |
|
||||||
| image | object | `{"pullPolicy":"Always","repository":"ghcr.io/squat/generic-device-plugin","tag":"latest@sha256:d9e098e33a20c32a561adb1ef8cace7d5912cd5ffb38f07dd9f83af4bdf38505"}` | Default image |
|
| image | object | `{"pullPolicy":"Always","repository":"ghcr.io/squat/generic-device-plugin","tag":"latest@sha256:7bc1ecec8472be1e5cf1ce534f0438a1d48cc3e2b4997cee924dac4d3dbfc3d3"}` | Default image |
|
||||||
| name | string | `"generic-device-plugin"` | Name override of release |
|
| name | string | `"generic-device-plugin"` | Name override of release |
|
||||||
| resources | object | `{"requests":{"cpu":"50m","memory":"10Mi"}}` | Default resources |
|
| resources | object | `{"requests":{"cpu":"50m","memory":"10Mi"}}` | Default resources |
|
||||||
| service | object | `{"listenPort":8080}` | Service port |
|
| service | object | `{"listenPort":8080}` | Service port |
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ name: generic-device-plugin
|
|||||||
# -- Default image
|
# -- Default image
|
||||||
image:
|
image:
|
||||||
repository: ghcr.io/squat/generic-device-plugin
|
repository: ghcr.io/squat/generic-device-plugin
|
||||||
tag: latest@sha256:d9e098e33a20c32a561adb1ef8cace7d5912cd5ffb38f07dd9f83af4bdf38505
|
tag: latest@sha256:dc192e164c69b03f156765793a1be62ca437709ae477b27ca7d8f3dcf5021576
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
|
|
||||||
# -- Domain used by devices for identifcation
|
# -- Domain used by devices for identifcation
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: postgres-cluster
|
name: postgres-cluster
|
||||||
version: 7.12.1
|
version: 7.13.1
|
||||||
description: Cloudnative-pg Cluster
|
description: Cloudnative-pg Cluster
|
||||||
keywords:
|
keywords:
|
||||||
- database
|
- database
|
||||||
@@ -12,4 +12,4 @@ maintainers:
|
|||||||
- name: alexlebens
|
- name: alexlebens
|
||||||
icon: https://avatars.githubusercontent.com/u/100373852?s=48&v=4
|
icon: https://avatars.githubusercontent.com/u/100373852?s=48&v=4
|
||||||
# renovate: datasource=github-releases depName=cloudnative-pg/cloudnative-pg
|
# renovate: datasource=github-releases depName=cloudnative-pg/cloudnative-pg
|
||||||
appVersion: v1.29.0
|
appVersion: v1.29.1
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# postgres-cluster
|
# postgres-cluster
|
||||||
|
|
||||||
 
|
 
|
||||||
|
|
||||||
Cloudnative-pg Cluster
|
Cloudnative-pg Cluster
|
||||||
|
|
||||||
@@ -24,7 +24,7 @@ Cloudnative-pg Cluster
|
|||||||
| backup.method | string | `"objectStore"` | Method to create backups, options currently are only objectStore |
|
| backup.method | string | `"objectStore"` | Method to create backups, options currently are only objectStore |
|
||||||
| backup.objectStore | string | `nil` | Options for object store backups |
|
| backup.objectStore | string | `nil` | Options for object store backups |
|
||||||
| backup.scheduledBackups | list | `[]` | List of scheduled backups |
|
| backup.scheduledBackups | list | `[]` | List of scheduled backups |
|
||||||
| cluster | object | `{"additionalLabels":{},"affinity":{"enablePodAntiAffinity":true,"topologyKey":"kubernetes.io/hostname"},"annotations":{},"certificates":{},"enablePDB":true,"enableSuperuserAccess":false,"image":{"repository":"ghcr.io/cloudnative-pg/postgresql","tag":"18.3-standard-trixie"},"imagePullPolicy":"IfNotPresent","imagePullSecrets":[],"initdb":{"database":"app","owner":"app"},"instances":3,"logLevel":"info","monitoring":{"customQueries":[],"customQueriesSecret":[],"disableDefaultQueries":false,"enabled":true,"podMonitor":{"enabled":true,"metricRelabelings":[],"relabelings":[]},"prometheusRule":{"enabled":true,"excludeRules":["CNPGClusterLastFailedArchiveTimeWarning"]}},"postgresGID":-1,"postgresUID":-1,"postgresql":{"ldap":{},"parameters":{"hot_standby_feedback":"on","max_slot_wal_keep_size":"2000MB","shared_buffers":"128MB"},"pg_hba":[],"pg_ident":[],"shared_preload_libraries":[],"synchronous":{}},"primaryUpdateMethod":"switchover","primaryUpdateStrategy":"unsupervised","priorityClassName":"","resources":{"limits":{"hugepages-2Mi":"256Mi"},"requests":{"cpu":"20m","memory":"80Mi"}},"roles":[],"serviceAccountTemplate":{},"services":{},"storage":{"size":"10Gi","storageClass":"local-path"},"superuserSecret":"","walStorage":{"enabled":true,"size":"2Gi","storageClass":"local-path"}}` | Cluster settings |
|
| cluster | object | `{"additionalLabels":{},"affinity":{"enablePodAntiAffinity":true,"topologyKey":"kubernetes.io/hostname"},"annotations":{},"certificates":{},"enablePDB":true,"enableSuperuserAccess":false,"image":{"repository":"ghcr.io/cloudnative-pg/postgresql","tag":"18.3-standard-trixie"},"imagePullPolicy":"IfNotPresent","imagePullSecrets":[],"initdb":{"database":"app","owner":"app"},"instances":3,"logLevel":"info","monitoring":{"customQueries":[],"customQueriesSecret":[],"disableDefaultQueries":false,"enabled":true,"podMonitor":{"enabled":true,"metricRelabelings":[],"relabelings":[]},"prometheusRule":{"enabled":true,"excludeRules":["CNPGClusterLastFailedArchiveTimeWarning"]}},"postgresGID":-1,"postgresUID":-1,"postgresql":{"ldap":{},"parameters":{"hot_standby_feedback":"on","max_slot_wal_keep_size":"2000MB","shared_buffers":"512MB"},"pg_hba":[],"pg_ident":[],"shared_preload_libraries":[],"synchronous":{}},"primaryUpdateMethod":"switchover","primaryUpdateStrategy":"unsupervised","priorityClassName":"","resources":{"limits":{"hugepages-2Mi":"256Mi"},"requests":{"cpu":"20m","memory":"80Mi"}},"roles":[],"serviceAccountTemplate":{},"services":{},"storage":{"size":"10Gi","storageClass":"local-path"},"superuserSecret":"","walStorage":{"enabled":true,"size":"2Gi","storageClass":"local-path"}}` | Cluster settings |
|
||||||
| cluster.affinity | object | `{"enablePodAntiAffinity":true,"topologyKey":"kubernetes.io/hostname"}` | Affinity/Anti-affinity rules for Pods. See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-AffinityConfiguration |
|
| cluster.affinity | object | `{"enablePodAntiAffinity":true,"topologyKey":"kubernetes.io/hostname"}` | Affinity/Anti-affinity rules for Pods. See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-AffinityConfiguration |
|
||||||
| cluster.certificates | object | `{}` | The configuration for the CA and related certificates. See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-CertificatesConfiguration |
|
| cluster.certificates | object | `{}` | The configuration for the CA and related certificates. See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-CertificatesConfiguration |
|
||||||
| cluster.enablePDB | bool | `true` | Allow to disable PDB, mainly useful for upgrade of single-instance clusters or development purposes See: https://cloudnative-pg.io/documentation/current/kubernetes_upgrade/#pod-disruption-budgets |
|
| cluster.enablePDB | bool | `true` | Allow to disable PDB, mainly useful for upgrade of single-instance clusters or development purposes See: https://cloudnative-pg.io/documentation/current/kubernetes_upgrade/#pod-disruption-budgets |
|
||||||
@@ -42,12 +42,13 @@ Cloudnative-pg Cluster
|
|||||||
| cluster.monitoring.podMonitor.enabled | bool | `true` | Whether to enable the PodMonitor |
|
| cluster.monitoring.podMonitor.enabled | bool | `true` | Whether to enable the PodMonitor |
|
||||||
| cluster.monitoring.podMonitor.metricRelabelings | list | `[]` | The list of metric relabelings for the PodMonitor. Applied to samples before ingestion. |
|
| cluster.monitoring.podMonitor.metricRelabelings | list | `[]` | The list of metric relabelings for the PodMonitor. Applied to samples before ingestion. |
|
||||||
| cluster.monitoring.podMonitor.relabelings | list | `[]` | The list of relabelings for the PodMonitor. Applied to samples before scraping. |
|
| cluster.monitoring.podMonitor.relabelings | list | `[]` | The list of relabelings for the PodMonitor. Applied to samples before scraping. |
|
||||||
|
| cluster.monitoring.prometheusRule | object | `{"enabled":true,"excludeRules":["CNPGClusterLastFailedArchiveTimeWarning"]}` | Prometheus rule |
|
||||||
| cluster.monitoring.prometheusRule.enabled | bool | `true` | Whether to enable the PrometheusRule automated alerts |
|
| cluster.monitoring.prometheusRule.enabled | bool | `true` | Whether to enable the PrometheusRule automated alerts |
|
||||||
| cluster.monitoring.prometheusRule.excludeRules | list | `["CNPGClusterLastFailedArchiveTimeWarning"]` | Exclude specified rules |
|
| cluster.monitoring.prometheusRule.excludeRules | list | `["CNPGClusterLastFailedArchiveTimeWarning"]` | Exclude specified rules |
|
||||||
| cluster.postgresUID | int | `-1` | The UID and GID of the postgres user inside the image, defaults to 26 |
|
| cluster.postgresUID | int | `-1` | The UID and GID of the postgres user inside the image, defaults to 26 |
|
||||||
| cluster.postgresql | object | `{"ldap":{},"parameters":{"hot_standby_feedback":"on","max_slot_wal_keep_size":"2000MB","shared_buffers":"128MB"},"pg_hba":[],"pg_ident":[],"shared_preload_libraries":[],"synchronous":{}}` | Parameters to be set for the database itself See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-PostgresConfiguration |
|
| cluster.postgresql | object | `{"ldap":{},"parameters":{"hot_standby_feedback":"on","max_slot_wal_keep_size":"2000MB","shared_buffers":"512MB"},"pg_hba":[],"pg_ident":[],"shared_preload_libraries":[],"synchronous":{}}` | Parameters to be set for the database itself See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-PostgresConfiguration |
|
||||||
| cluster.postgresql.ldap | object | `{}` | PostgreSQL LDAP configuration (see https://cloudnative-pg.io/documentation/current/postgresql_conf/#ldap-configuration) |
|
| cluster.postgresql.ldap | object | `{}` | PostgreSQL LDAP configuration (see https://cloudnative-pg.io/documentation/current/postgresql_conf/#ldap-configuration) |
|
||||||
| cluster.postgresql.parameters | object | `{"hot_standby_feedback":"on","max_slot_wal_keep_size":"2000MB","shared_buffers":"128MB"}` | PostgreSQL configuration options (postgresql.conf) |
|
| cluster.postgresql.parameters | object | `{"hot_standby_feedback":"on","max_slot_wal_keep_size":"2000MB","shared_buffers":"512MB"}` | PostgreSQL configuration options (postgresql.conf) |
|
||||||
| cluster.postgresql.pg_hba | list | `[]` | PostgreSQL Host Based Authentication rules (lines to be appended to the pg_hba.conf file) |
|
| cluster.postgresql.pg_hba | list | `[]` | PostgreSQL Host Based Authentication rules (lines to be appended to the pg_hba.conf file) |
|
||||||
| cluster.postgresql.pg_ident | list | `[]` | PostgreSQL User Name Maps rules (lines to be appended to the pg_ident.conf file) |
|
| cluster.postgresql.pg_ident | list | `[]` | PostgreSQL User Name Maps rules (lines to be appended to the pg_ident.conf file) |
|
||||||
| cluster.postgresql.shared_preload_libraries | list | `[]` | Lists of shared preload libraries to add to the default ones |
|
| cluster.postgresql.shared_preload_libraries | list | `[]` | Lists of shared preload libraries to add to the default ones |
|
||||||
|
|||||||
@@ -0,0 +1,346 @@
|
|||||||
|
---
|
||||||
|
# Source: postgres-cluster/templates/cluster.yaml
|
||||||
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
|
kind: Cluster
|
||||||
|
metadata:
|
||||||
|
name: release-name-postgresql-18-cluster
|
||||||
|
namespace: gitea
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: release-name-postgresql-18-cluster
|
||||||
|
helm.sh/chart: postgres-cluster-7.13.1
|
||||||
|
app.kubernetes.io/instance: release-name
|
||||||
|
app.kubernetes.io/part-of: release-name
|
||||||
|
app.kubernetes.io/version: "7.13.1"
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
spec:
|
||||||
|
instances: 3
|
||||||
|
imageName: "ghcr.io/cloudnative-pg/postgresql:18.3-standard-trixie"
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
postgresUID: 26
|
||||||
|
postgresGID: 26
|
||||||
|
storage:
|
||||||
|
size: 10Gi
|
||||||
|
storageClass: local-path
|
||||||
|
walStorage:
|
||||||
|
size: 2Gi
|
||||||
|
storageClass: local-path
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
hugepages-2Mi: 256Mi
|
||||||
|
requests:
|
||||||
|
cpu: 20m
|
||||||
|
memory: 80Mi
|
||||||
|
affinity:
|
||||||
|
enablePodAntiAffinity: true
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
|
primaryUpdateMethod: switchover
|
||||||
|
primaryUpdateStrategy: unsupervised
|
||||||
|
logLevel: info
|
||||||
|
enableSuperuserAccess: false
|
||||||
|
enablePDB: true
|
||||||
|
postgresql:
|
||||||
|
parameters:
|
||||||
|
hot_standby_feedback: "on"
|
||||||
|
max_slot_wal_keep_size: 2000MB
|
||||||
|
shared_buffers: 128MB
|
||||||
|
monitoring:
|
||||||
|
enablePodMonitor: false
|
||||||
|
disableDefaultQueries: false
|
||||||
|
|
||||||
|
bootstrap:
|
||||||
|
initdb:
|
||||||
|
database: app
|
||||||
|
owner: app
|
||||||
|
---
|
||||||
|
# Source: postgres-cluster/templates/pod-monitor.yaml
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: PodMonitor
|
||||||
|
metadata:
|
||||||
|
name: release-name-postgresql-18
|
||||||
|
namespace: gitea
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: release-name-postgresql-18
|
||||||
|
helm.sh/chart: postgres-cluster-7.13.1
|
||||||
|
app.kubernetes.io/instance: release-name
|
||||||
|
app.kubernetes.io/part-of: release-name
|
||||||
|
app.kubernetes.io/version: "7.13.1"
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
cnpg.io/cluster: release-name-postgresql-18
|
||||||
|
cnpg.io/podRole: instance
|
||||||
|
podMetricsEndpoints:
|
||||||
|
- port: metrics
|
||||||
|
---
|
||||||
|
# Source: postgres-cluster/templates/prometheus-rule.yaml
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: PrometheusRule
|
||||||
|
metadata:
|
||||||
|
name: release-name-postgresql-18-alert-rules
|
||||||
|
namespace: gitea
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: release-name-postgresql-18-alert-rules
|
||||||
|
helm.sh/chart: postgres-cluster-7.13.1
|
||||||
|
app.kubernetes.io/instance: release-name
|
||||||
|
app.kubernetes.io/part-of: release-name
|
||||||
|
app.kubernetes.io/version: "7.13.1"
|
||||||
|
app.kubernetes.io/managed-by: Helm
|
||||||
|
spec:
|
||||||
|
groups:
|
||||||
|
- name: cloudnative-pg/release-name-postgresql-18
|
||||||
|
rules:
|
||||||
|
- alert: CNPGClusterBackendsWaitingWarning
|
||||||
|
annotations:
|
||||||
|
summary: CNPG Cluster a backend is waiting for longer than 5 minutes.
|
||||||
|
description: |-
|
||||||
|
Pod {{ $labels.pod }}
|
||||||
|
has been waiting for longer than 5 minutes
|
||||||
|
expr: |
|
||||||
|
cnpg_backends_waiting_total{namespace="gitea"} > 300
|
||||||
|
for: 1m
|
||||||
|
labels:
|
||||||
|
severity: warning
|
||||||
|
namespace: gitea
|
||||||
|
cnpg_cluster: release-name-postgresql-18-cluster
|
||||||
|
- alert: CNPGClusterDatabaseDeadlockConflictsWarning
|
||||||
|
annotations:
|
||||||
|
summary: CNPG Cluster has over 10 deadlock conflicts.
|
||||||
|
description: |-
|
||||||
|
There are over 10 deadlock conflicts in
|
||||||
|
{{ $labels.pod }}
|
||||||
|
expr: |
|
||||||
|
cnpg_pg_stat_database_deadlocks{namespace="gitea"} > 10
|
||||||
|
for: 1m
|
||||||
|
labels:
|
||||||
|
severity: warning
|
||||||
|
namespace: gitea
|
||||||
|
cnpg_cluster: release-name-postgresql-18-cluster
|
||||||
|
- alert: CNPGClusterHACritical
|
||||||
|
annotations:
|
||||||
|
summary: CNPG Cluster has no standby replicas!
|
||||||
|
description: |-
|
||||||
|
CloudNativePG Cluster "{{`{{`}} $labels.job {{`}}`}}" has no ready standby replicas. Your cluster at a severe
|
||||||
|
risk of data loss and downtime if the primary instance fails.
|
||||||
|
|
||||||
|
The primary instance is still online and able to serve queries, although connections to the `-ro` endpoint
|
||||||
|
will fail. The `-r` endpoint os operating at reduced capacity and all traffic is being served by the main.
|
||||||
|
|
||||||
|
This can happen during a normal fail-over or automated minor version upgrades in a cluster with 2 or less
|
||||||
|
instances. The replaced instance may need some time to catch-up with the cluster primary instance.
|
||||||
|
|
||||||
|
This alarm will be always trigger if your cluster is configured to run with only 1 instance. In this
|
||||||
|
case you may want to silence it.
|
||||||
|
runbook_url: https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/docs/runbooks/CNPGClusterHACritical.md
|
||||||
|
expr: |
|
||||||
|
max by (job) (cnpg_pg_replication_streaming_replicas{namespace="gitea"} - cnpg_pg_replication_is_wal_receiver_up{namespace="gitea"}) < 1
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: critical
|
||||||
|
namespace: gitea
|
||||||
|
cnpg_cluster: release-name-postgresql-18-cluster
|
||||||
|
- alert: CNPGClusterHAWarning
|
||||||
|
annotations:
|
||||||
|
summary: CNPG Cluster less than 2 standby replicas.
|
||||||
|
description: |-
|
||||||
|
CloudNativePG Cluster "{{`{{`}} $labels.job {{`}}`}}" has only {{`{{`}} $value {{`}}`}} standby replicas, putting
|
||||||
|
your cluster at risk if another instance fails. The cluster is still able to operate normally, although
|
||||||
|
the `-ro` and `-r` endpoints operate at reduced capacity.
|
||||||
|
|
||||||
|
This can happen during a normal fail-over or automated minor version upgrades. The replaced instance may
|
||||||
|
need some time to catch-up with the cluster primary instance.
|
||||||
|
|
||||||
|
This alarm will be constantly triggered if your cluster is configured to run with less than 3 instances.
|
||||||
|
In this case you may want to silence it.
|
||||||
|
runbook_url: https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/docs/runbooks/CNPGClusterHAWarning.md
|
||||||
|
expr: |
|
||||||
|
max by (job) (cnpg_pg_replication_streaming_replicas{namespace="gitea"} - cnpg_pg_replication_is_wal_receiver_up{namespace="gitea"}) < 2
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: warning
|
||||||
|
namespace: gitea
|
||||||
|
cnpg_cluster: release-name-postgresql-18-cluster
|
||||||
|
- alert: CNPGClusterHighConnectionsCritical
|
||||||
|
annotations:
|
||||||
|
summary: CNPG Instance maximum number of connections critical!
|
||||||
|
description: |-
|
||||||
|
CloudNativePG Cluster "gitea/release-name-postgresql-18-cluster" instance {{`{{`}} $labels.pod {{`}}`}} is using {{`{{`}} $value {{`}}`}}% of
|
||||||
|
the maximum number of connections.
|
||||||
|
runbook_url: https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/docs/runbooks/CNPGClusterHighConnectionsCritical.md
|
||||||
|
expr: |
|
||||||
|
sum by (pod) (cnpg_backends_total{namespace="gitea", pod=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$"}) / max by (pod) (cnpg_pg_settings_setting{name="max_connections", namespace="gitea", pod=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$"}) * 100 > 95
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: critical
|
||||||
|
namespace: gitea
|
||||||
|
cnpg_cluster: release-name-postgresql-18-cluster
|
||||||
|
- alert: CNPGClusterHighConnectionsWarning
|
||||||
|
annotations:
|
||||||
|
summary: CNPG Instance is approaching the maximum number of connections.
|
||||||
|
description: |-
|
||||||
|
CloudNativePG Cluster "gitea/release-name-postgresql-18-cluster" instance {{`{{`}} $labels.pod {{`}}`}} is using {{`{{`}} $value {{`}}`}}% of
|
||||||
|
the maximum number of connections.
|
||||||
|
runbook_url: https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/docs/runbooks/CNPGClusterHighConnectionsWarning.md
|
||||||
|
expr: |
|
||||||
|
sum by (pod) (cnpg_backends_total{namespace="gitea", pod=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$"}) / max by (pod) (cnpg_pg_settings_setting{name="max_connections", namespace="gitea", pod=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$"}) * 100 > 80
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: warning
|
||||||
|
namespace: gitea
|
||||||
|
cnpg_cluster: release-name-postgresql-18-cluster
|
||||||
|
- alert: CNPGClusterHighReplicationLag
|
||||||
|
annotations:
|
||||||
|
summary: CNPG Cluster high replication lag
|
||||||
|
description: |-
|
||||||
|
CloudNativePG Cluster "gitea/release-name-postgresql-18-cluster" is experiencing a high replication lag of
|
||||||
|
{{`{{`}} $value {{`}}`}}ms.
|
||||||
|
|
||||||
|
High replication lag indicates network issues, busy instances, slow queries or suboptimal configuration.
|
||||||
|
runbook_url: https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/docs/runbooks/CNPGClusterHighReplicationLag.md
|
||||||
|
expr: |
|
||||||
|
max(cnpg_pg_replication_lag{namespace="gitea",pod=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$"}) * 1000 > 1000
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: warning
|
||||||
|
namespace: gitea
|
||||||
|
cnpg_cluster: release-name-postgresql-18-cluster
|
||||||
|
- alert: CNPGClusterInstancesOnSameNode
|
||||||
|
annotations:
|
||||||
|
summary: CNPG Cluster instances are located on the same node.
|
||||||
|
description: |-
|
||||||
|
CloudNativePG Cluster "gitea/release-name-postgresql-18-cluster" has {{`{{`}} $value {{`}}`}}
|
||||||
|
instances on the same node {{`{{`}} $labels.node {{`}}`}}.
|
||||||
|
|
||||||
|
A failure or scheduled downtime of a single node will lead to a potential service disruption and/or data loss.
|
||||||
|
runbook_url: https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/docs/runbooks/CNPGClusterInstancesOnSameNode.md
|
||||||
|
expr: |
|
||||||
|
count by (node) (kube_pod_info{namespace="gitea", pod=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$"}) > 1
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: warning
|
||||||
|
namespace: gitea
|
||||||
|
cnpg_cluster: release-name-postgresql-18-cluster
|
||||||
|
- alert: CNPGClusterLongRunningTransactionWarning
|
||||||
|
annotations:
|
||||||
|
summary: CNPG Cluster query is taking longer than 5 minutes.
|
||||||
|
description: |-
|
||||||
|
CloudNativePG Cluster Pod {{ $labels.pod }}
|
||||||
|
is taking more than 5 minutes (300 seconds) for a query.
|
||||||
|
expr: |-
|
||||||
|
cnpg_backends_max_tx_duration_seconds{namespace="gitea"} > 300
|
||||||
|
for: 1m
|
||||||
|
labels:
|
||||||
|
severity: warning
|
||||||
|
namespace: gitea
|
||||||
|
cnpg_cluster: release-name-postgresql-18-cluster
|
||||||
|
- alert: CNPGClusterLowDiskSpaceCritical
|
||||||
|
annotations:
|
||||||
|
summary: CNPG Instance is running out of disk space!
|
||||||
|
description: |-
|
||||||
|
CloudNativePG Cluster "gitea/release-name-postgresql-18-cluster" is running extremely low on disk space. Check attached PVCs!
|
||||||
|
runbook_url: https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/docs/runbooks/CNPGClusterLowDiskSpaceCritical.md
|
||||||
|
expr: |
|
||||||
|
max(max by(persistentvolumeclaim) (1 - kubelet_volume_stats_available_bytes{namespace="gitea", persistentvolumeclaim=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$"} / kubelet_volume_stats_capacity_bytes{namespace="gitea", persistentvolumeclaim=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$"})) > 0.9 OR
|
||||||
|
max(max by(persistentvolumeclaim) (1 - kubelet_volume_stats_available_bytes{namespace="gitea", persistentvolumeclaim=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$-wal"} / kubelet_volume_stats_capacity_bytes{namespace="gitea", persistentvolumeclaim=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$-wal"})) > 0.9 OR
|
||||||
|
max(sum by (namespace,persistentvolumeclaim) (kubelet_volume_stats_used_bytes{namespace="gitea", persistentvolumeclaim=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$-tbs.*"})
|
||||||
|
/
|
||||||
|
sum by (namespace,persistentvolumeclaim) (kubelet_volume_stats_capacity_bytes{namespace="gitea", persistentvolumeclaim=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$-tbs.*"})
|
||||||
|
*
|
||||||
|
on(namespace, persistentvolumeclaim) group_left(volume)
|
||||||
|
kube_pod_spec_volumes_persistentvolumeclaims_info{pod=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$"}
|
||||||
|
) > 0.9
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: critical
|
||||||
|
namespace: gitea
|
||||||
|
cnpg_cluster: release-name-postgresql-18-cluster
|
||||||
|
- alert: CNPGClusterLowDiskSpaceWarning
|
||||||
|
annotations:
|
||||||
|
summary: CNPG Instance is running out of disk space.
|
||||||
|
description: |-
|
||||||
|
CloudNativePG Cluster "gitea/release-name-postgresql-18-cluster" is running low on disk space. Check attached PVCs.
|
||||||
|
runbook_url: https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/docs/runbooks/CNPGClusterLowDiskSpaceWarning.md
|
||||||
|
expr: |
|
||||||
|
max(max by(persistentvolumeclaim) (1 - kubelet_volume_stats_available_bytes{namespace="gitea", persistentvolumeclaim=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$"} / kubelet_volume_stats_capacity_bytes{namespace="gitea", persistentvolumeclaim=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$"})) > 0.7 OR
|
||||||
|
max(max by(persistentvolumeclaim) (1 - kubelet_volume_stats_available_bytes{namespace="gitea", persistentvolumeclaim=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$-wal"} / kubelet_volume_stats_capacity_bytes{namespace="gitea", persistentvolumeclaim=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$-wal"})) > 0.7 OR
|
||||||
|
max(sum by (namespace,persistentvolumeclaim) (kubelet_volume_stats_used_bytes{namespace="gitea", persistentvolumeclaim=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$-tbs.*"})
|
||||||
|
/
|
||||||
|
sum by (namespace,persistentvolumeclaim) (kubelet_volume_stats_capacity_bytes{namespace="gitea", persistentvolumeclaim=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$-tbs.*"})
|
||||||
|
*
|
||||||
|
on(namespace, persistentvolumeclaim) group_left(volume)
|
||||||
|
kube_pod_spec_volumes_persistentvolumeclaims_info{pod=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$"}
|
||||||
|
) > 0.7
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: warning
|
||||||
|
namespace: gitea
|
||||||
|
cnpg_cluster: release-name-postgresql-18-cluster
|
||||||
|
- alert: CNPGClusterOffline
|
||||||
|
annotations:
|
||||||
|
summary: CNPG Cluster has no running instances!
|
||||||
|
description: |-
|
||||||
|
CloudNativePG Cluster "gitea/release-name-postgresql-18-cluster" has no ready instances.
|
||||||
|
|
||||||
|
Having an offline cluster means your applications will not be able to access the database, leading to
|
||||||
|
potential service disruption and/or data loss.
|
||||||
|
runbook_url: https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/docs/runbooks/CNPGClusterOffline.md
|
||||||
|
expr: |
|
||||||
|
(count(cnpg_collector_up{namespace="gitea",pod=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$"}) OR on() vector(0)) == 0
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: critical
|
||||||
|
namespace: gitea
|
||||||
|
cnpg_cluster: release-name-postgresql-18-cluster
|
||||||
|
- alert: CNPGClusterPGDatabaseXidAgeWarning
|
||||||
|
annotations:
|
||||||
|
summary: CNPG Cluster has a number of transactions from the frozen XID to the current one.
|
||||||
|
description: |-
|
||||||
|
Over 300,000,000 transactions from frozen xid
|
||||||
|
on pod {{ $labels.pod }}
|
||||||
|
expr: |
|
||||||
|
cnpg_pg_database_xid_age{namespace="gitea"} > 300000000
|
||||||
|
for: 1m
|
||||||
|
labels:
|
||||||
|
severity: warning
|
||||||
|
namespace: gitea
|
||||||
|
cnpg_cluster: release-name-postgresql-18-cluster
|
||||||
|
- alert: CNPGClusterPGReplicationWarning
|
||||||
|
annotations:
|
||||||
|
summary: CNPG Cluster standby is lagging behind the primary.
|
||||||
|
description: |-
|
||||||
|
Standby is lagging behind by over 300 seconds (5 minutes)
|
||||||
|
expr: |
|
||||||
|
cnpg_pg_replication_lag{namespace="gitea"} > 300
|
||||||
|
for: 1m
|
||||||
|
labels:
|
||||||
|
severity: warning
|
||||||
|
namespace: gitea
|
||||||
|
cnpg_cluster: release-name-postgresql-18-cluster
|
||||||
|
- alert: CNPGClusterReplicaFailingReplicationWarning
|
||||||
|
annotations:
|
||||||
|
summary: CNPG Cluster has a replica is failing to replicate.
|
||||||
|
description: |-
|
||||||
|
Replica {{ $labels.pod }}
|
||||||
|
is failing to replicate
|
||||||
|
expr: |
|
||||||
|
cnpg_pg_replication_in_recovery{namespace="gitea"} > cnpg_pg_replication_is_wal_receiver_up{namespace="gitea"}
|
||||||
|
for: 1m
|
||||||
|
labels:
|
||||||
|
severity: warning
|
||||||
|
namespace: gitea
|
||||||
|
cnpg_cluster: release-name-postgresql-18-cluster
|
||||||
|
- alert: CNPGClusterZoneSpreadWarning
|
||||||
|
annotations:
|
||||||
|
summary: CNPG Cluster instances in the same zone.
|
||||||
|
description: |-
|
||||||
|
CloudNativePG Cluster "gitea/release-name-postgresql-18-cluster" has instances in the same availability zone.
|
||||||
|
|
||||||
|
A disaster in one availability zone will lead to a potential service disruption and/or data loss.
|
||||||
|
runbook_url: https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/docs/runbooks/CNPGClusterZoneSpreadWarning.md
|
||||||
|
expr: |
|
||||||
|
3 > count(count by (label_topology_kubernetes_io_zone) (kube_pod_info{namespace="gitea", pod=~"release-name-postgresql-18-cluster-([1-9][0-9]*)$"} * on(node,instance) group_left(label_topology_kubernetes_io_zone) kube_node_labels)) < 3
|
||||||
|
for: 5m
|
||||||
|
labels:
|
||||||
|
severity: warning
|
||||||
|
namespace: gitea
|
||||||
|
cnpg_cluster: release-name-postgresql-18-cluster
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
{{- define "cluster.bootstrap" -}}
|
{{- define "cluster.bootstrap" }}
|
||||||
|
|
||||||
{{- if eq .Values.mode "standalone" }}
|
{{- if eq .Values.mode "standalone" }}
|
||||||
bootstrap:
|
bootstrap:
|
||||||
initdb:
|
initdb:
|
||||||
@@ -16,13 +15,11 @@ bootstrap:
|
|||||||
{{- with .Values.cluster.initdb }}
|
{{- with .Values.cluster.initdb }}
|
||||||
{{- range .postInitApplicationSQL }}
|
{{- range .postInitApplicationSQL }}
|
||||||
{{- printf "- %s" . | nindent 6 }}
|
{{- printf "- %s" . | nindent 6 }}
|
||||||
{{- end -}}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- else if eq .Values.mode "recovery" -}}
|
{{- else if eq .Values.mode "recovery" }}
|
||||||
bootstrap:
|
bootstrap:
|
||||||
|
|
||||||
{{- if eq .Values.recovery.method "import" }}
|
{{- if eq .Values.recovery.method "import" }}
|
||||||
initdb:
|
initdb:
|
||||||
{{- with .Values.cluster.initdb }}
|
{{- with .Values.cluster.initdb }}
|
||||||
@@ -66,7 +63,6 @@ bootstrap:
|
|||||||
pgRestoreExtraOptions:
|
pgRestoreExtraOptions:
|
||||||
{{- . | toYaml | nindent 8 }}
|
{{- . | toYaml | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- else if eq .Values.recovery.method "backup" }}
|
{{- else if eq .Values.recovery.method "backup" }}
|
||||||
recovery:
|
recovery:
|
||||||
{{- with .Values.recovery.backup.pitrTarget.time }}
|
{{- with .Values.recovery.backup.pitrTarget.time }}
|
||||||
@@ -81,7 +77,6 @@ bootstrap:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
backup:
|
backup:
|
||||||
name: {{ .Values.recovery.backup.backupName }}
|
name: {{ .Values.recovery.backup.backupName }}
|
||||||
|
|
||||||
{{- else if eq .Values.recovery.method "objectStore" }}
|
{{- else if eq .Values.recovery.method "objectStore" }}
|
||||||
recovery:
|
recovery:
|
||||||
{{- with .Values.recovery.objectStore.pitrTarget.time }}
|
{{- with .Values.recovery.objectStore.pitrTarget.time }}
|
||||||
@@ -95,13 +90,10 @@ bootstrap:
|
|||||||
owner: {{ . }}
|
owner: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
source: {{ include "cluster.recoveryServerName" . }}
|
source: {{ include "cluster.recoveryServerName" . }}
|
||||||
|
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{ fail "Invalid recovery mode!" }}
|
{{ fail "Invalid recovery mode!" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{ fail "Invalid cluster mode!" }}
|
{{ fail "Invalid cluster mode!" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{{- define "cluster.externalClusters" -}}
|
{{- define "cluster.externalClusters" }}
|
||||||
{{- if eq .Values.mode "standalone" }}
|
{{- if eq .Values.mode "standalone" }}
|
||||||
{{- else if eq .Values.mode "recovery" }}
|
{{- else if eq .Values.mode "recovery" }}
|
||||||
externalClusters:
|
externalClusters:
|
||||||
@@ -18,4 +18,4 @@ externalClusters:
|
|||||||
{{- else }}
|
{{- else }}
|
||||||
{{ fail "Invalid cluster mode!" }}
|
{{ fail "Invalid cluster mode!" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -30,4 +30,4 @@
|
|||||||
name: {{ $config.sslRootCertSecret.name }}
|
name: {{ $config.sslRootCertSecret.name }}
|
||||||
key: {{ $config.sslRootCertSecret.key }}
|
key: {{ $config.sslRootCertSecret.key }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end -}}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ spec:
|
|||||||
{{- with .Values.cluster.resources }}
|
{{- with .Values.cluster.resources }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{ end }}
|
{{- end }}
|
||||||
{{- with .Values.cluster.affinity }}
|
{{- with .Values.cluster.affinity }}
|
||||||
affinity:
|
affinity:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
@@ -43,7 +43,6 @@ spec:
|
|||||||
{{- if .Values.cluster.priorityClassName }}
|
{{- if .Values.cluster.priorityClassName }}
|
||||||
priorityClassName: {{ .Values.cluster.priorityClassName }}
|
priorityClassName: {{ .Values.cluster.priorityClassName }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
primaryUpdateMethod: {{ .Values.cluster.primaryUpdateMethod }}
|
primaryUpdateMethod: {{ .Values.cluster.primaryUpdateMethod }}
|
||||||
primaryUpdateStrategy: {{ .Values.cluster.primaryUpdateStrategy }}
|
primaryUpdateStrategy: {{ .Values.cluster.primaryUpdateStrategy }}
|
||||||
logLevel: {{ .Values.cluster.logLevel }}
|
logLevel: {{ .Values.cluster.logLevel }}
|
||||||
@@ -57,7 +56,6 @@ spec:
|
|||||||
name: {{ . }}
|
name: {{ . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
enablePDB: {{ .Values.cluster.enablePDB }}
|
enablePDB: {{ .Values.cluster.enablePDB }}
|
||||||
|
|
||||||
postgresql:
|
postgresql:
|
||||||
{{- if .Values.cluster.postgresql.shared_preload_libraries }}
|
{{- if .Values.cluster.postgresql.shared_preload_libraries }}
|
||||||
shared_preload_libraries:
|
shared_preload_libraries:
|
||||||
@@ -85,7 +83,6 @@ spec:
|
|||||||
parameters:
|
parameters:
|
||||||
{{- toYaml . | nindent 6 }}
|
{{- toYaml . | nindent 6 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if not (and (empty .Values.cluster.roles) (empty .Values.cluster.services)) }}
|
{{- if not (and (empty .Values.cluster.roles) (empty .Values.cluster.services)) }}
|
||||||
managed:
|
managed:
|
||||||
{{- with .Values.cluster.services }}
|
{{- with .Values.cluster.services }}
|
||||||
@@ -97,14 +94,12 @@ spec:
|
|||||||
{{- toYaml . | nindent 6 }}
|
{{- toYaml . | nindent 6 }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- with .Values.cluster.serviceAccountTemplate }}
|
{{- with .Values.cluster.serviceAccountTemplate }}
|
||||||
serviceAccountTemplate:
|
serviceAccountTemplate:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
monitoring:
|
monitoring:
|
||||||
enablePodMonitor: {{ and .Values.cluster.monitoring.enabled .Values.cluster.monitoring.podMonitor.enabled }}
|
enablePodMonitor: false
|
||||||
disableDefaultQueries: {{ .Values.cluster.monitoring.disableDefaultQueries }}
|
disableDefaultQueries: {{ .Values.cluster.monitoring.disableDefaultQueries }}
|
||||||
{{- if not (empty .Values.cluster.monitoring.customQueries) }}
|
{{- if not (empty .Values.cluster.monitoring.customQueries) }}
|
||||||
customQueriesConfigMap:
|
customQueriesConfigMap:
|
||||||
@@ -127,9 +122,9 @@ spec:
|
|||||||
{{- with .Values.cluster.monitoring.podMonitor.metricRelabelings }}
|
{{- with .Values.cluster.monitoring.podMonitor.metricRelabelings }}
|
||||||
podMonitorMetricRelabelings:
|
podMonitorMetricRelabelings:
|
||||||
{{- toYaml . | nindent 6 }}
|
{{- toYaml . | nindent 6 }}
|
||||||
{{ end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if not (empty .Values.backup.objectStore) -}}
|
||||||
plugins:
|
plugins:
|
||||||
{{- range $objectStore := .Values.backup.objectStore }}
|
{{- range $objectStore := .Values.backup.objectStore }}
|
||||||
- name: barman-cloud.cloudnative-pg.io
|
- name: barman-cloud.cloudnative-pg.io
|
||||||
@@ -146,7 +141,7 @@ spec:
|
|||||||
{{- else }}
|
{{- else }}
|
||||||
serverName: "{{ include "cluster.name" $ }}-backup-{{ $objectStore.index }}"
|
serverName: "{{ include "cluster.name" $ }}-backup-{{ $objectStore.index }}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
{{ include "cluster.bootstrap" . | nindent 2 }}
|
{{- include "cluster.bootstrap" . | nindent 2 -}}
|
||||||
{{ include "cluster.externalClusters" . | nindent 2 }}
|
{{- include "cluster.externalClusters" . | nindent 2 -}}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{{ if and (eq .Values.backup.method "objectStore") (.Values.backup.externalSecret.enabled) }}
|
{{- if and (eq .Values.backup.method "objectStore") (.Values.backup.externalSecret.enabled) }}
|
||||||
{{ $context := . -}}
|
{{- $context := . }}
|
||||||
{{ range .Values.backup.objectStore -}}
|
{{- range .Values.backup.objectStore }}
|
||||||
---
|
---
|
||||||
apiVersion: external-secrets.io/v1
|
apiVersion: external-secrets.io/v1
|
||||||
kind: ExternalSecret
|
kind: ExternalSecret
|
||||||
@@ -30,8 +30,8 @@ spec:
|
|||||||
remoteRef:
|
remoteRef:
|
||||||
key: {{ .externalSecretCredentialPath| required "External Secret Credential local path is required" }}
|
key: {{ .externalSecretCredentialPath| required "External Secret Credential local path is required" }}
|
||||||
property: ACCESS_SECRET_KEY
|
property: ACCESS_SECRET_KEY
|
||||||
{{ end -}}
|
{{- end }}
|
||||||
{{ end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if and (eq .Values.recovery.method "objectStore") (.Values.recovery.objectStore.externalSecret.enabled) }}
|
{{- if and (eq .Values.recovery.method "objectStore") (.Values.recovery.objectStore.externalSecret.enabled) }}
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{{ if (eq .Values.backup.method "objectStore") }}
|
{{- if (eq .Values.backup.method "objectStore") }}
|
||||||
{{ $context := . -}}
|
{{- $context := . }}
|
||||||
{{ range .Values.backup.objectStore -}}
|
{{- range .Values.backup.objectStore }}
|
||||||
---
|
---
|
||||||
apiVersion: barmancloud.cnpg.io/v1
|
apiVersion: barmancloud.cnpg.io/v1
|
||||||
kind: ObjectStore
|
kind: ObjectStore
|
||||||
@@ -57,10 +57,9 @@ spec:
|
|||||||
region:
|
region:
|
||||||
name: {{ include "cluster.backupSecretName" (dict "instance" . "global" $context) }}
|
name: {{ include "cluster.backupSecretName" (dict "instance" . "global" $context) }}
|
||||||
key: ACCESS_REGION
|
key: ACCESS_REGION
|
||||||
{{ end -}}
|
{{- end }}
|
||||||
{{ end }}
|
{{- end }}
|
||||||
|
{{- if eq .Values.recovery.method "objectStore" }}
|
||||||
{{ if eq .Values.recovery.method "objectStore" }}
|
|
||||||
---
|
---
|
||||||
apiVersion: barmancloud.cnpg.io/v1
|
apiVersion: barmancloud.cnpg.io/v1
|
||||||
kind: ObjectStore
|
kind: ObjectStore
|
||||||
@@ -104,4 +103,4 @@ spec:
|
|||||||
region:
|
region:
|
||||||
name: {{ include "cluster.recoverySecretName" . }}
|
name: {{ include "cluster.recoverySecretName" . }}
|
||||||
key: ACCESS_REGION
|
key: ACCESS_REGION
|
||||||
{{ end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
{{- if and .Values.cluster.monitoring.enabled .Values.cluster.monitoring.podMonitor.enabled }}
|
||||||
|
---
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: PodMonitor
|
||||||
|
metadata:
|
||||||
|
name: {{ include "cluster.name" $ }}
|
||||||
|
namespace: {{ include "cluster.namespace" $ }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: {{ include "cluster.name" $ }}
|
||||||
|
{{- include "cluster.labels" $ | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
cnpg.io/cluster: {{ include "cluster.name" $ }}
|
||||||
|
cnpg.io/podRole: instance
|
||||||
|
podMetricsEndpoints:
|
||||||
|
- port: metrics
|
||||||
|
{{- end }}
|
||||||
@@ -47,6 +47,6 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .template }}
|
{{- with .template }}
|
||||||
template:
|
template:
|
||||||
{{- . | toYaml | nindent 4 }}
|
{{ . | toYaml | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- if and .Values.cluster.monitoring.enabled .Values.cluster.monitoring.prometheusRule.enabled -}}
|
{{- if and .Values.cluster.monitoring.enabled .Values.cluster.monitoring.prometheusRule.enabled }}
|
||||||
|
---
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: PrometheusRule
|
kind: PrometheusRule
|
||||||
metadata:
|
metadata:
|
||||||
@@ -25,4 +26,4 @@ spec:
|
|||||||
- {{ $tpl }}
|
- {{ $tpl }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{ $context := . -}}
|
{{- $context := . }}
|
||||||
{{ range .Values.backup.scheduledBackups -}}
|
{{- range .Values.backup.scheduledBackups }}
|
||||||
---
|
---
|
||||||
apiVersion: postgresql.cnpg.io/v1
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
kind: ScheduledBackup
|
kind: ScheduledBackup
|
||||||
@@ -21,4 +21,4 @@ spec:
|
|||||||
name: {{ .plugin | default "barman-cloud.cloudnative-pg.io" }}
|
name: {{ .plugin | default "barman-cloud.cloudnative-pg.io" }}
|
||||||
parameters:
|
parameters:
|
||||||
barmanObjectName: "{{ include "cluster.name" $context }}-backup-{{ .backupName }}"
|
barmanObjectName: "{{ include "cluster.name" $context }}-backup-{{ .backupName }}"
|
||||||
{{ end -}}
|
{{- end }}
|
||||||
|
|||||||
@@ -127,6 +127,7 @@ cluster:
|
|||||||
# Applied to samples before ingestion.
|
# Applied to samples before ingestion.
|
||||||
metricRelabelings: []
|
metricRelabelings: []
|
||||||
|
|
||||||
|
# -- Prometheus rule
|
||||||
prometheusRule:
|
prometheusRule:
|
||||||
|
|
||||||
# -- Whether to enable the PrometheusRule automated alerts
|
# -- Whether to enable the PrometheusRule automated alerts
|
||||||
@@ -164,7 +165,7 @@ cluster:
|
|||||||
|
|
||||||
# -- PostgreSQL configuration options (postgresql.conf)
|
# -- PostgreSQL configuration options (postgresql.conf)
|
||||||
parameters:
|
parameters:
|
||||||
shared_buffers: 128MB
|
shared_buffers: 512MB
|
||||||
max_slot_wal_keep_size: 2000MB
|
max_slot_wal_keep_size: 2000MB
|
||||||
hot_standby_feedback: "on"
|
hot_standby_feedback: "on"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- name: common
|
- name: common
|
||||||
repository: https://bjw-s-labs.github.io/helm-charts/
|
repository: https://bjw-s-labs.github.io/helm-charts/
|
||||||
version: 4.6.2
|
version: 5.0.0
|
||||||
digest: sha256:35e8f4e5d15d878c246a04eb51de580291f31203fa10e9e4d2318f16026b2061
|
digest: sha256:153788a98eab8a2e83bd456e1f6f3d53d1a3363bfe5bca07bd232d948e01a6b2
|
||||||
generated: "2026-04-25T20:40:50.27544-05:00"
|
generated: "2026-05-07T20:56:33.260732-05:00"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: rclone-bucket
|
name: rclone-bucket
|
||||||
version: 0.3.0
|
version: 0.11.3
|
||||||
description: Rclone CronJob to replicate buckets
|
description: Rclone CronJob to replicate buckets
|
||||||
keywords:
|
keywords:
|
||||||
- rclone-bucket
|
- rclone-bucket
|
||||||
@@ -14,7 +14,7 @@ maintainers:
|
|||||||
dependencies:
|
dependencies:
|
||||||
- name: common
|
- name: common
|
||||||
repository: https://bjw-s-labs.github.io/helm-charts/
|
repository: https://bjw-s-labs.github.io/helm-charts/
|
||||||
version: 4.6.2
|
version: 5.0.0
|
||||||
icon: https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/rclone.png
|
icon: https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/rclone.png
|
||||||
# renovate: datasource=github-releases depName=rclone/rclone
|
# renovate: datasource=github-releases depName=rclone/rclone
|
||||||
appVersion: v1.73.5
|
appVersion: v1.74.1
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# rclone-bucket
|
# rclone-bucket
|
||||||
|
|
||||||
 
|
 
|
||||||
|
|
||||||
Rclone CronJob to replicate buckets
|
Rclone CronJob to replicate buckets
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ Rclone CronJob to replicate buckets
|
|||||||
|
|
||||||
| Repository | Name | Version |
|
| Repository | Name | Version |
|
||||||
|------------|------|---------|
|
|------------|------|---------|
|
||||||
| https://bjw-s-labs.github.io/helm-charts/ | common | 4.6.2 |
|
| https://bjw-s-labs.github.io/helm-charts/ | common | 5.0.0 |
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
@@ -27,9 +27,11 @@ Rclone CronJob to replicate buckets
|
|||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
| additionalLabels | object | `{}` | Add additional labels |
|
| additionalLabels | object | `{}` | Add additional labels |
|
||||||
| cronJob | object | `{"backoffLimit":3,"parallelism":1,"schedule":"0 0 * * *","suspend":false,"timeZone":"America/Chicago"}` | CronJob configuration |
|
| cronJob | object | `{"backoffLimit":3,"parallelism":1,"schedule":"0 0 * * *","suspend":false,"timeZone":"America/Chicago"}` | CronJob configuration |
|
||||||
| image | object | `{"pullPolicy":"IfNotPresent","repository":"rclone/rclone","tag":"1.73.5@sha256:1619a625f845e169c34b952cf40c483c0392965b821c5155cde8cbfd35254a96"}` | Default image |
|
| image | object | `{"pullPolicy":"IfNotPresent","repository":"rclone/rclone","tag":"1.74.1@sha256:eb8788b795f0009324e9572b0e2acb9b56885327c2746b07d67a9d3b893a6602"}` | Default image |
|
||||||
|
| metrics | object | `{"enabled":true}` | Metrics |
|
||||||
| nameOverride | string | `""` | Default pattern follows <pvcTarget>-backup |
|
| nameOverride | string | `""` | Default pattern follows <pvcTarget>-backup |
|
||||||
| prune | object | `{"ageToPrune":"90d","enabled":false}` | Enable prune job |
|
| prometheusRule | object | `{"enabled":true}` | Prometheus Rule |
|
||||||
|
| prune | object | `{"ageToPrune":"90d","enabled":false,"exclude":"","include":""}` | Enable prune job |
|
||||||
| rclone | object | `{"destination":{"bucketName":"bucket","forcePathStyle":true,"providerType":"Other"},"providerType":"Other","source":{"bucketName":"bucket","forcePathStyle":true,"providerType":"Other"}}` | rclone configuration |
|
| rclone | object | `{"destination":{"bucketName":"bucket","forcePathStyle":true,"providerType":"Other"},"providerType":"Other","source":{"bucketName":"bucket","forcePathStyle":true,"providerType":"Other"}}` | rclone configuration |
|
||||||
| rclone.destination | object | `{"bucketName":"bucket","forcePathStyle":true,"providerType":"Other"}` | Destination configuration |
|
| rclone.destination | object | `{"bucketName":"bucket","forcePathStyle":true,"providerType":"Other"}` | Destination configuration |
|
||||||
| rclone.source | object | `{"bucketName":"bucket","forcePathStyle":true,"providerType":"Other"}` | Source configuration |
|
| rclone.source | object | `{"bucketName":"bucket","forcePathStyle":true,"providerType":"Other"}` | Source configuration |
|
||||||
|
|||||||
@@ -43,35 +43,35 @@ Generate the secret name
|
|||||||
{{/*
|
{{/*
|
||||||
Common env names
|
Common env names
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "secret.envAccessKey" -}}
|
{{- define "secretRclone.envAccessKey" -}}
|
||||||
ACCESS_KEY_ID
|
ACCESS_KEY_ID
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- define "secret.envSecretKey" -}}
|
{{- define "secretRclone.envSecretKey" -}}
|
||||||
ACCESS_SECRET_KEY
|
ACCESS_SECRET_KEY
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- define "secret.envRegion" -}}
|
{{- define "secretRclone.envRegion" -}}
|
||||||
ACCESS_REGION
|
ACCESS_REGION
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- define "secret.envSrcEndpoint" -}}
|
{{- define "secretRclone.envSrcEndpoint" -}}
|
||||||
SRC_ENDPOINT
|
SRC_ENDPOINT
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- define "secret.envDestEndpoint" -}}
|
{{- define "secretRclone.envDestEndpoint" -}}
|
||||||
DEST_ENDPOINT
|
DEST_ENDPOINT
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Create chart name and version as used by the chart label.
|
Create chart name and version as used by the chart label.
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "secret.chart" -}}
|
{{- define "rclone.chart" -}}
|
||||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Common labels
|
Common labels
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "secret.labels" -}}
|
{{- define "rclone.labels" -}}
|
||||||
helm.sh/chart: {{ include "secret.chart" $ }}
|
helm.sh/chart: {{ include "rclone.chart" $ }}
|
||||||
{{ include "secret.selectorLabels" $ }}
|
{{ include "rclone.selectorLabels" $ }}
|
||||||
{{- if .Chart.AppVersion }}
|
{{- if .Chart.AppVersion }}
|
||||||
app.kubernetes.io/version: {{ .Chart.Version | quote }}
|
app.kubernetes.io/version: {{ .Chart.Version | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -84,7 +84,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|||||||
{{/*
|
{{/*
|
||||||
Selector labels
|
Selector labels
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "secret.selectorLabels" -}}
|
{{- define "rclone.selectorLabels" -}}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
global:
|
global:
|
||||||
nameOverride: {{ include "rclone.name" . }}
|
nameOverride: {{ include "rclone.name" . }}
|
||||||
fullNameOverride: {{ include "rclone.name" . }}
|
fullNameOverride: {{ include "rclone.name" . }}
|
||||||
|
createDefaultServiceAccount: true
|
||||||
controllers:
|
controllers:
|
||||||
main:
|
main:
|
||||||
type: cronjob
|
type: cronjob
|
||||||
@@ -11,6 +12,8 @@ controllers:
|
|||||||
cronjob:
|
cronjob:
|
||||||
{{- toYaml . | nindent 6 }}
|
{{- toYaml . | nindent 6 }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
serviceAccount:
|
||||||
|
identifier: {{ .Release.Name }}
|
||||||
containers:
|
containers:
|
||||||
sync:
|
sync:
|
||||||
image:
|
image:
|
||||||
@@ -23,8 +26,22 @@ controllers:
|
|||||||
- dest:{{ .Values.rclone.destination.bucketName }}
|
- dest:{{ .Values.rclone.destination.bucketName }}
|
||||||
- --s3-no-check-bucket
|
- --s3-no-check-bucket
|
||||||
{{- if .Values.prune.enabled }}
|
{{- if .Values.prune.enabled }}
|
||||||
- --min-age
|
- --max-age
|
||||||
- {{ .Values.prune.ageToPrune }}
|
- {{ .Values.prune.ageToPrune | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.prune.include }}
|
||||||
|
- --include
|
||||||
|
- {{ .Values.prune.include | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.prune.exclude }}
|
||||||
|
- --exclude
|
||||||
|
- {{ .Values.prune.exclude | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.enabled }}
|
||||||
|
- --rc
|
||||||
|
- --rc-addr=0.0.0.0:5572
|
||||||
|
- --rc-enable-metrics
|
||||||
|
- --rc-no-auth
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- --verbose
|
- --verbose
|
||||||
env:
|
env:
|
||||||
@@ -35,57 +52,57 @@ controllers:
|
|||||||
- name: RCLONE_CONFIG_SRC_PROVIDER
|
- name: RCLONE_CONFIG_SRC_PROVIDER
|
||||||
value: {{ .Values.rclone.source.providerType }}
|
value: {{ .Values.rclone.source.providerType }}
|
||||||
- name: RCLONE_CONFIG_SRC_ENV_AUTH
|
- name: RCLONE_CONFIG_SRC_ENV_AUTH
|
||||||
value: false
|
value: "false"
|
||||||
- name: RCLONE_CONFIG_SRC_ACCESS_KEY_ID
|
- name: RCLONE_CONFIG_SRC_ACCESS_KEY_ID
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "rclone.sourceSecretName" . }}
|
name: {{ include "rclone.sourceSecretName" . }}
|
||||||
key: {{ include "secret.envAccessKey" . }}
|
key: {{ include "secretRclone.envAccessKey" . }}
|
||||||
- name: RCLONE_CONFIG_SRC_SECRET_ACCESS_KEY
|
- name: RCLONE_CONFIG_SRC_SECRET_ACCESS_KEY
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "rclone.sourceSecretName" . }}
|
name: {{ include "rclone.sourceSecretName" . }}
|
||||||
key: {{ include "secret.envSecretKey" . }}
|
key: {{ include "secretRclone.envSecretKey" . }}
|
||||||
- name: RCLONE_CONFIG_SRC_REGION
|
- name: RCLONE_CONFIG_SRC_REGION
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "rclone.sourceSecretName" . }}
|
name: {{ include "rclone.sourceSecretName" . }}
|
||||||
key: {{ include "secret.envRegion" . }}
|
key: {{ include "secretRclone.envRegion" . }}
|
||||||
- name: RCLONE_CONFIG_SRC_ENDPOINT
|
- name: RCLONE_CONFIG_SRC_ENDPOINT
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "rclone.sourceSecretName" . }}
|
name: {{ include "rclone.sourceSecretName" . }}
|
||||||
key: {{ include "secret.envSrcEndpoint" . }}
|
key: {{ include "secretRclone.envSrcEndpoint" . }}
|
||||||
- name: RCLONE_CONFIG_SRC_S3_FORCE_PATH_STYLE
|
- name: RCLONE_CONFIG_SRC_FORCE_PATH_STYLE
|
||||||
value: {{ .Values.rclone.source.forcePathStyle }}
|
value: {{ .Values.rclone.source.forcePathStyle | quote }}
|
||||||
- name: RCLONE_CONFIG_DEST_TYPE
|
- name: RCLONE_CONFIG_DEST_TYPE
|
||||||
value: s3
|
value: s3
|
||||||
- name: RCLONE_CONFIG_DEST_PROVIDER
|
- name: RCLONE_CONFIG_DEST_PROVIDER
|
||||||
value: {{ .Values.rclone.destination.providerType }}
|
value: {{ .Values.rclone.destination.providerType }}
|
||||||
- name: RCLONE_CONFIG_DEST_ENV_AUTH
|
- name: RCLONE_CONFIG_DEST_ENV_AUTH
|
||||||
value: false
|
value: "false"
|
||||||
- name: RCLONE_CONFIG_DEST_ACCESS_KEY_ID
|
- name: RCLONE_CONFIG_DEST_ACCESS_KEY_ID
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "rclone.destinationSecretName" . }}
|
name: {{ include "rclone.destinationSecretName" . }}
|
||||||
key: {{ include "secret.envAccessKey" . }}
|
key: {{ include "secretRclone.envAccessKey" . }}
|
||||||
- name: RCLONE_CONFIG_DEST_SECRET_ACCESS_KEY
|
- name: RCLONE_CONFIG_DEST_SECRET_ACCESS_KEY
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "rclone.destinationSecretName" . }}
|
name: {{ include "rclone.destinationSecretName" . }}
|
||||||
key: {{ include "secret.envSecretKey" . }}
|
key: {{ include "secretRclone.envSecretKey" . }}
|
||||||
- name: RCLONE_CONFIG_DEST_REGION
|
- name: RCLONE_CONFIG_DEST_REGION
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "rclone.destinationSecretName" . }}
|
name: {{ include "rclone.destinationSecretName" . }}
|
||||||
key: {{ include "secret.envRegion" . }}
|
key: {{ include "secretRclone.envRegion" . }}
|
||||||
- name: RCLONE_CONFIG_DEST_ENDPOINT
|
- name: RCLONE_CONFIG_DEST_ENDPOINT
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "rclone.destinationSecretName" . }}
|
name: {{ include "rclone.destinationSecretName" . }}
|
||||||
key: {{ include "secret.envDestEndpoint" . }}
|
key: {{ include "secretRclone.envDestEndpoint" . }}
|
||||||
- name: RCLONE_CONFIG_SRC_DEST_FORCE_PATH_STYLE
|
- name: RCLONE_CONFIG_DEST_FORCE_PATH_STYLE
|
||||||
value: {{ .Values.rclone.destination.forcePathStyle }}
|
value: {{ .Values.rclone.destination.forcePathStyle | quote }}
|
||||||
{{- if .Values.prune.enabled }}
|
{{- if .Values.prune.enabled }}
|
||||||
prune:
|
prune:
|
||||||
image:
|
image:
|
||||||
@@ -96,38 +113,72 @@ controllers:
|
|||||||
- delete
|
- delete
|
||||||
- dest:{{ .Values.rclone.destination.bucketName }}
|
- dest:{{ .Values.rclone.destination.bucketName }}
|
||||||
- --min-age
|
- --min-age
|
||||||
- {{ .Values.prune.ageToPrune }}
|
- {{ .Values.prune.ageToPrune | quote }}
|
||||||
- --verbose
|
- --verbose
|
||||||
|
{{- if .Values.metrics.enabled }}
|
||||||
|
- --rc
|
||||||
|
- --rc-addr=0.0.0.0:5573
|
||||||
|
- --rc-enable-metrics
|
||||||
|
- --rc-no-auth
|
||||||
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
- name: RCLONE_CONFIG_DEST_TYPE
|
- name: RCLONE_CONFIG_DEST_TYPE
|
||||||
value: s3
|
value: s3
|
||||||
- name: RCLONE_CONFIG_DEST_PROVIDER
|
- name: RCLONE_CONFIG_DEST_PROVIDER
|
||||||
value: {{ .Values.rclone.destination.providerType }}
|
value: {{ .Values.rclone.destination.providerType }}
|
||||||
- name: RCLONE_CONFIG_DEST_ENV_AUTH
|
- name: RCLONE_CONFIG_DEST_ENV_AUTH
|
||||||
value: false
|
value: "false"
|
||||||
- name: RCLONE_CONFIG_DEST_ACCESS_KEY_ID
|
- name: RCLONE_CONFIG_DEST_ACCESS_KEY_ID
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "rclone.destinationSecretName" . }}
|
name: {{ include "rclone.destinationSecretName" . }}
|
||||||
key: {{ include "secret.envAccessKey" . }}
|
key: {{ include "secretRclone.envAccessKey" . }}
|
||||||
- name: RCLONE_CONFIG_DEST_SECRET_ACCESS_KEY
|
- name: RCLONE_CONFIG_DEST_SECRET_ACCESS_KEY
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "rclone.destinationSecretName" . }}
|
name: {{ include "rclone.destinationSecretName" . }}
|
||||||
key: {{ include "secret.envSecretKey" . }}
|
key: {{ include "secretRclone.envSecretKey" . }}
|
||||||
- name: RCLONE_CONFIG_DEST_REGION
|
- name: RCLONE_CONFIG_DEST_REGION
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "rclone.destinationSecretName" . }}
|
name: {{ include "rclone.destinationSecretName" . }}
|
||||||
key: {{ include "secret.envRegion" . }}
|
key: {{ include "secretRclone.envRegion" . }}
|
||||||
- name: RCLONE_CONFIG_DEST_ENDPOINT
|
- name: RCLONE_CONFIG_DEST_ENDPOINT
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "rclone.destinationSecretName" . }}
|
name: {{ include "rclone.destinationSecretName" . }}
|
||||||
key: {{ include "secret.envDestEndpoint" . }}
|
key: {{ include "secretRclone.envDestEndpoint" . }}
|
||||||
- name: RCLONE_CONFIG_SRC_S3_FORCE_PATH_STYLE
|
- name: RCLONE_CONFIG_DEST_FORCE_PATH_STYLE
|
||||||
value: {{ .Values.rclone.destination.forcePathStyle }}
|
value: {{ .Values.rclone.destination.forcePathStyle | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.enabled }}
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
controller: main
|
||||||
|
ports:
|
||||||
|
rc-sync:
|
||||||
|
port: 5572
|
||||||
|
targetPort: 5572
|
||||||
|
rc-prune:
|
||||||
|
port: 5573
|
||||||
|
targetPort: 5573
|
||||||
|
serviceMonitor:
|
||||||
|
main:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: {{ include "rclone.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Namespace }}
|
||||||
|
serviceName: '{{ include "bjw-s.common.lib.chart.names.fullname" $ }}'
|
||||||
|
endpoints:
|
||||||
|
- port: rc-sync
|
||||||
|
interval: 10s
|
||||||
|
scrapeTimeout: 5s
|
||||||
|
path: /metrics
|
||||||
|
- port: rc-prune
|
||||||
|
interval: 10s
|
||||||
|
scrapeTimeout: 5s
|
||||||
|
path: /metrics
|
||||||
|
{{- end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $_ := mergeOverwrite .Values (include "rclone.hardcodedValues" . | fromYaml) -}}
|
{{- $_ := mergeOverwrite .Values (include "rclone.hardcodedValues" . | fromYaml) -}}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ metadata:
|
|||||||
name: {{ include "rclone.sourceSecretName" . }}
|
name: {{ include "rclone.sourceSecretName" . }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "secret.labels" . | nindent 4 }}
|
{{- include "rclone.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/name: {{ include "rclone.sourceSecretName" . }}
|
app.kubernetes.io/name: {{ include "rclone.sourceSecretName" . }}
|
||||||
{{- with .Values.additionalLabels }}
|
{{- with .Values.additionalLabels }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
@@ -16,19 +16,19 @@ spec:
|
|||||||
kind: ClusterSecretStore
|
kind: ClusterSecretStore
|
||||||
name: {{ .Values.secret.externalSecret.storeName | required "External Secret store name is required" }}
|
name: {{ .Values.secret.externalSecret.storeName | required "External Secret store name is required" }}
|
||||||
data:
|
data:
|
||||||
- secretKey: {{ include "secret.envAccessKey" . }}
|
- secretKey: {{ include "secretRclone.envAccessKey" . }}
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: {{ .Values.secret.externalSecret.source.credentials.path }}
|
key: {{ .Values.secret.externalSecret.source.credentials.path }}
|
||||||
property: {{ .Values.secret.externalSecret.source.credentials.keyIdProperty }}
|
property: {{ .Values.secret.externalSecret.source.credentials.keyIdProperty }}
|
||||||
- secretKey: {{ include "secret.envSecretKey" . }}
|
- secretKey: {{ include "secretRclone.envSecretKey" . }}
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: {{ .Values.secret.externalSecret.source.credentials.path }}
|
key: {{ .Values.secret.externalSecret.source.credentials.path }}
|
||||||
property: {{ .Values.secret.externalSecret.source.credentials.secretKeyProperty }}
|
property: {{ .Values.secret.externalSecret.source.credentials.secretKeyProperty }}
|
||||||
- secretKey: {{ include "secret.envRegion" . }}
|
- secretKey: {{ include "secretRclone.envRegion" . }}
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: {{ .Values.secret.externalSecret.source.credentials.path }}
|
key: {{ .Values.secret.externalSecret.source.credentials.path }}
|
||||||
property: {{ .Values.secret.externalSecret.source.credentials.regionProperty }}
|
property: {{ .Values.secret.externalSecret.source.credentials.regionProperty }}
|
||||||
- secretKey: {{ include "secret.envSrcEndpoint" . }}
|
- secretKey: {{ include "secretRclone.envSrcEndpoint" . }}
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: {{ .Values.secret.externalSecret.source.config.path }}
|
key: {{ .Values.secret.externalSecret.source.config.path }}
|
||||||
property: {{ .Values.secret.externalSecret.source.config.endpointProperty }}
|
property: {{ .Values.secret.externalSecret.source.config.endpointProperty }}
|
||||||
@@ -40,7 +40,7 @@ metadata:
|
|||||||
name: {{ include "rclone.destinationSecretName" . }}
|
name: {{ include "rclone.destinationSecretName" . }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "secret.labels" . | nindent 4 }}
|
{{- include "rclone.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/name: {{ include "rclone.destinationSecretName" . }}
|
app.kubernetes.io/name: {{ include "rclone.destinationSecretName" . }}
|
||||||
{{- with .Values.additionalLabels }}
|
{{- with .Values.additionalLabels }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
@@ -50,19 +50,19 @@ spec:
|
|||||||
kind: ClusterSecretStore
|
kind: ClusterSecretStore
|
||||||
name: {{ .Values.secret.externalSecret.storeName | required "External Secret store name is required" }}
|
name: {{ .Values.secret.externalSecret.storeName | required "External Secret store name is required" }}
|
||||||
data:
|
data:
|
||||||
- secretKey: {{ include "secret.envAccessKey" . }}
|
- secretKey: {{ include "secretRclone.envAccessKey" . }}
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: {{ .Values.secret.externalSecret.destination.credentials.path }}
|
key: {{ .Values.secret.externalSecret.destination.credentials.path }}
|
||||||
property: {{ .Values.secret.externalSecret.destination.credentials.keyIdProperty }}
|
property: {{ .Values.secret.externalSecret.destination.credentials.keyIdProperty }}
|
||||||
- secretKey: {{ include "secret.envSecretKey" . }}
|
- secretKey: {{ include "secretRclone.envSecretKey" . }}
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: {{ .Values.secret.externalSecret.destination.credentials.path }}
|
key: {{ .Values.secret.externalSecret.destination.credentials.path }}
|
||||||
property: {{ .Values.secret.externalSecret.destination.credentials.keyIdProperty }}
|
property: {{ .Values.secret.externalSecret.destination.credentials.secretKeyProperty }}
|
||||||
- secretKey: {{ include "secret.envRegion" . }}
|
- secretKey: {{ include "secretRclone.envRegion" . }}
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: {{ .Values.secret.externalSecret.destination.credentials.path }}
|
key: {{ .Values.secret.externalSecret.destination.credentials.path }}
|
||||||
property: {{ .Values.secret.externalSecret.destination.credentials.keyIdProperty }}
|
property: {{ .Values.secret.externalSecret.destination.credentials.regionProperty }}
|
||||||
- secretKey: {{ include "secret.envDestEndpoint" . }}
|
- secretKey: {{ include "secretRclone.envDestEndpoint" . }}
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: {{ .Values.secret.externalSecret.destination.config.path }}
|
key: {{ .Values.secret.externalSecret.destination.config.path }}
|
||||||
property: {{ .Values.secret.externalSecret.destination.config.endpointProperty }}
|
property: {{ .Values.secret.externalSecret.destination.config.endpointProperty }}
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
{{- if .Values.prometheusRule.enabled }}
|
||||||
|
---
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: PrometheusRule
|
||||||
|
metadata:
|
||||||
|
name: {{ include "rclone.name" . }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
{{- include "rclone.labels" . | nindent 4 }}
|
||||||
|
app.kubernetes.io/name: {{ include "rclone.name" . }}
|
||||||
|
{{- with .Values.additionalLabels }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
groups:
|
||||||
|
- name: rclone.alerts
|
||||||
|
rules:
|
||||||
|
- alert: RclonePodFailed
|
||||||
|
expr: |
|
||||||
|
(kube_pod_container_status_last_terminated_exitcode > 0)
|
||||||
|
* on(pod, namespace) group_left(owner_name)
|
||||||
|
kube_pod_owner{owner_kind="Job", owner_name=~"rclone-.*"}
|
||||||
|
for: 1m
|
||||||
|
labels:
|
||||||
|
severity: critical
|
||||||
|
annotations:
|
||||||
|
summary: "Rclone Pod failed in {{ `{{ $labels.namespace }}` }}"
|
||||||
|
description: |
|
||||||
|
A pod for the Rclone sync of s3 bucket '{{ .Values.rclone.source.bucketName }}' failed with exit code {{ `{{ $value }}` }}.
|
||||||
|
Job: {{ `{{ $labels.owner_name }}` }}
|
||||||
|
Namespace: {{ `{{ $labels.namespace }}` }}
|
||||||
|
{{- end }}
|
||||||
@@ -7,7 +7,7 @@ additionalLabels: {}
|
|||||||
# -- Default image
|
# -- Default image
|
||||||
image:
|
image:
|
||||||
repository: rclone/rclone
|
repository: rclone/rclone
|
||||||
tag: 1.73.5@sha256:1619a625f845e169c34b952cf40c483c0392965b821c5155cde8cbfd35254a96
|
tag: 1.74.1@sha256:eb8788b795f0009324e9572b0e2acb9b56885327c2746b07d67a9d3b893a6602
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
# -- CronJob configuration
|
# -- CronJob configuration
|
||||||
@@ -38,6 +38,8 @@ rclone:
|
|||||||
prune:
|
prune:
|
||||||
enabled: false
|
enabled: false
|
||||||
ageToPrune: 90d
|
ageToPrune: 90d
|
||||||
|
include: ""
|
||||||
|
exclude: ""
|
||||||
|
|
||||||
# -- Secret configuration
|
# -- Secret configuration
|
||||||
secret:
|
secret:
|
||||||
@@ -80,3 +82,11 @@ secret:
|
|||||||
|
|
||||||
existingSecretDestination:
|
existingSecretDestination:
|
||||||
name: rclone-destination-secret
|
name: rclone-destination-secret
|
||||||
|
|
||||||
|
# -- Metrics
|
||||||
|
metrics:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
# -- Prometheus Rule
|
||||||
|
prometheusRule:
|
||||||
|
enabled: true
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: valkey
|
name: valkey
|
||||||
version: 0.6.1
|
version: 0.8.0
|
||||||
description: Valkey chart with preconfigured settings
|
description: Valkey chart with preconfigured settings
|
||||||
keywords:
|
keywords:
|
||||||
- valkey
|
- valkey
|
||||||
@@ -19,4 +19,4 @@ dependencies:
|
|||||||
version: 0.9.4
|
version: 0.9.4
|
||||||
icon: https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/valkey.png
|
icon: https://cdn.jsdelivr.net/gh/selfhst/icons@main/png/valkey.png
|
||||||
# renovate: datasource=github-releases depName=valkey-io/valkey
|
# renovate: datasource=github-releases depName=valkey-io/valkey
|
||||||
appVersion: 9.0.3
|
appVersion: 9.0.4
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# valkey
|
# valkey
|
||||||
|
|
||||||
 
|
 
|
||||||
|
|
||||||
Valkey chart with preconfigured settings
|
Valkey chart with preconfigured settings
|
||||||
|
|
||||||
@@ -35,11 +35,11 @@ Valkey chart with preconfigured settings
|
|||||||
| valkey.dataStorage.requestedSize | string | `"1Gi"` | |
|
| valkey.dataStorage.requestedSize | string | `"1Gi"` | |
|
||||||
| valkey.image.registry | string | `"docker.io"` | |
|
| valkey.image.registry | string | `"docker.io"` | |
|
||||||
| valkey.image.repository | string | `"valkey/valkey"` | |
|
| valkey.image.repository | string | `"valkey/valkey"` | |
|
||||||
| valkey.image.tag | string | `"9.0.3@sha256:3b55fbaa0cd93cf0d9d961f405e4dfcc70efe325e2d84da207a0a8e6d8fde4f9"` | |
|
| valkey.image.tag | string | `"9.0.4@sha256:8436e10bc65c94886a91d4415b6a6dfa9cb5a306fb3b996e5bb67cd2b4854193"` | |
|
||||||
| valkey.metrics.enabled | bool | `true` | |
|
| valkey.metrics.enabled | bool | `true` | |
|
||||||
| valkey.metrics.exporter.image.registry | string | `"ghcr.io"` | |
|
| valkey.metrics.exporter.image.registry | string | `"ghcr.io"` | |
|
||||||
| valkey.metrics.exporter.image.repository | string | `"oliver006/redis_exporter"` | |
|
| valkey.metrics.exporter.image.repository | string | `"oliver006/redis_exporter"` | |
|
||||||
| valkey.metrics.exporter.image.tag | string | `"v1.82.0@sha256:6a97d4dd743b533e1f950c677b87d880e44df363c61af3f406fc9e53ed65ee03"` | |
|
| valkey.metrics.exporter.image.tag | string | `"v1.83.0@sha256:e8c209894d4c0cc55b1259ddd47e0b769ad1ff864b356736ee885462a3b0e48c"` | |
|
||||||
| valkey.metrics.exporter.resources.requests.cpu | string | `"1m"` | |
|
| valkey.metrics.exporter.resources.requests.cpu | string | `"1m"` | |
|
||||||
| valkey.metrics.exporter.resources.requests.memory | string | `"10M"` | |
|
| valkey.metrics.exporter.resources.requests.memory | string | `"10M"` | |
|
||||||
| valkey.metrics.podMonitor.enabled | bool | `true` | |
|
| valkey.metrics.podMonitor.enabled | bool | `true` | |
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ valkey:
|
|||||||
image:
|
image:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: valkey/valkey
|
repository: valkey/valkey
|
||||||
tag: 9.0.3@sha256:3b55fbaa0cd93cf0d9d961f405e4dfcc70efe325e2d84da207a0a8e6d8fde4f9
|
tag: 9.0.4@sha256:8436e10bc65c94886a91d4415b6a6dfa9cb5a306fb3b996e5bb67cd2b4854193
|
||||||
serviceAccount:
|
serviceAccount:
|
||||||
create: true
|
create: true
|
||||||
resources:
|
resources:
|
||||||
@@ -31,7 +31,7 @@ valkey:
|
|||||||
image:
|
image:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
repository: oliver006/redis_exporter
|
repository: oliver006/redis_exporter
|
||||||
tag: v1.82.0@sha256:6a97d4dd743b533e1f950c677b87d880e44df363c61af3f406fc9e53ed65ee03
|
tag: v1.83.0@sha256:e8c209894d4c0cc55b1259ddd47e0b769ad1ff864b356736ee885462a3b0e48c
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 1m
|
cpu: 1m
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: volsync-target
|
name: volsync-target
|
||||||
version: 1.0.0
|
version: 2.0.0
|
||||||
description: Volsync Replication set to target specific PVC with preconfigured settings
|
description: Volsync Replication set to target specific PVC with preconfigured settings
|
||||||
keywords:
|
keywords:
|
||||||
- volsync-target
|
- volsync-target
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# volsync-target
|
# volsync-target
|
||||||
|
|
||||||
 
|
 
|
||||||
|
|
||||||
Volsync Replication set to target specific PVC with preconfigured settings
|
Volsync Replication set to target specific PVC with preconfigured settings
|
||||||
|
|
||||||
@@ -20,24 +20,25 @@ Volsync Replication set to target specific PVC with preconfigured settings
|
|||||||
| Key | Type | Default | Description |
|
| Key | Type | Default | Description |
|
||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
| additionalLabels | object | `{}` | Add additional labels |
|
| additionalLabels | object | `{}` | Add additional labels |
|
||||||
| external | object | `{"enabled":true,"externalSecret":{"bucketPath":"/digital-ocean/config","credentialPath":"/digital-ocean/home-infra/volsync-backups"},"restic":{"cacheCapacity":"1Gi","copyMethod":"Snapshot","pruneIntervalDays":7,"repository":"","retain":{"daily":7,"hourly":0,"monthly":3,"weekly":4,"yearly":1},"storageClassName":"ceph-block","volumeSnapshotClassName":"ceph-blockpool-snapshot"},"schedule":"0 9 * * *"}` | External backup configuration |
|
| external | object | `{"enabled":true,"externalSecret":{"bucketPath":"/backblaze/config","credentialPath":"/backblaze/home-infra/volsync-backups"},"restic":{"cacheCapacity":"1Gi","copyMethod":"Snapshot","pruneIntervalDays":35,"repository":"","retain":{"daily":0,"hourly":0,"monthly":0,"weekly":12,"yearly":0},"storageClassName":"ceph-block","volumeSnapshotClassName":"ceph-blockpool-snapshot"},"schedule":"0 9 * * 0"}` | External backup configuration |
|
||||||
| external.externalSecret | object | `{"bucketPath":"/digital-ocean/config","credentialPath":"/digital-ocean/home-infra/volsync-backups"}` | External Secret configuration |
|
| external.externalSecret | object | `{"bucketPath":"/backblaze/config","credentialPath":"/backblaze/home-infra/volsync-backups"}` | External Secret configuration |
|
||||||
| external.restic | object | `{"cacheCapacity":"1Gi","copyMethod":"Snapshot","pruneIntervalDays":7,"repository":"","retain":{"daily":7,"hourly":0,"monthly":3,"weekly":4,"yearly":1},"storageClassName":"ceph-block","volumeSnapshotClassName":"ceph-blockpool-snapshot"}` | Backup configuration, inserted directly into the yaml |
|
| external.restic | object | `{"cacheCapacity":"1Gi","copyMethod":"Snapshot","pruneIntervalDays":35,"repository":"","retain":{"daily":0,"hourly":0,"monthly":0,"weekly":12,"yearly":0},"storageClassName":"ceph-block","volumeSnapshotClassName":"ceph-blockpool-snapshot"}` | Backup configuration, inserted directly into the yaml |
|
||||||
| external.schedule | string | `"0 9 * * *"` | 5 character cron schedule |
|
| external.schedule | string | `"0 9 * * 0"` | 5 character cron schedule |
|
||||||
| externalSecrets | object | `{"enabled":true}` | Use external secrets |
|
| externalSecrets | object | `{"enabled":true}` | Use external secrets |
|
||||||
| kubernetesClusterName | string | `"cl01tl"` | Kubernetes cluster name |
|
| kubernetesClusterName | string | `"cl01tl"` | Kubernetes cluster name |
|
||||||
| local | object | `{"enabled":false,"externalSecret":{"bucketPath":"/garage/config","credentialPath":"/garage/home-infra/volsync-backups"},"restic":{"cacheCapacity":"1Gi","copyMethod":"Snapshot","pruneIntervalDays":7,"repository":"","retain":{"daily":7,"hourly":0,"monthly":3,"weekly":4,"yearly":1},"storageClassName":"ceph-block","volumeSnapshotClassName":"ceph-blockpool-snapshot"},"schedule":"0 8 * * *"}` | Local backup configuration |
|
| local | object | `{"enabled":false,"externalSecret":{"bucketPath":"/garage/config","credentialPath":"/garage/home-infra/volsync-backups"},"restic":{"cacheCapacity":"1Gi","copyMethod":"Snapshot","pruneIntervalDays":7,"repository":"","retain":{"daily":7,"hourly":0,"monthly":0,"weekly":4,"yearly":0},"storageClassName":"ceph-block","volumeSnapshotClassName":"ceph-blockpool-snapshot"},"schedule":"0 8 * * *"}` | Local backup configuration |
|
||||||
| local.externalSecret | object | `{"bucketPath":"/garage/config","credentialPath":"/garage/home-infra/volsync-backups"}` | External Secret configuration |
|
| local.externalSecret | object | `{"bucketPath":"/garage/config","credentialPath":"/garage/home-infra/volsync-backups"}` | External Secret configuration |
|
||||||
| local.restic | object | `{"cacheCapacity":"1Gi","copyMethod":"Snapshot","pruneIntervalDays":7,"repository":"","retain":{"daily":7,"hourly":0,"monthly":3,"weekly":4,"yearly":1},"storageClassName":"ceph-block","volumeSnapshotClassName":"ceph-blockpool-snapshot"}` | Backup configuration, inserted directly into the yaml |
|
| local.restic | object | `{"cacheCapacity":"1Gi","copyMethod":"Snapshot","pruneIntervalDays":7,"repository":"","retain":{"daily":7,"hourly":0,"monthly":0,"weekly":4,"yearly":0},"storageClassName":"ceph-block","volumeSnapshotClassName":"ceph-blockpool-snapshot"}` | Backup configuration, inserted directly into the yaml |
|
||||||
| local.schedule | string | `"0 8 * * *"` | 5 character cron schedule |
|
| local.schedule | string | `"0 8 * * *"` | 5 character cron schedule |
|
||||||
| moverSecurityContext | object | `{}` | Glocal security context for restic mover |
|
| moverSecurityContext | object | `{}` | Glocal security context for restic mover |
|
||||||
| nameOverride | string | `""` | Default pattern follows <pvcTarget>-backup |
|
| nameOverride | string | `""` | Default pattern follows <pvcTarget>-backup |
|
||||||
| namespaceOverride | string | `""` | Override the namespace of the chart |
|
| namespaceOverride | string | `""` | Override the namespace of the chart |
|
||||||
|
| prometheusRule | object | `{"enabled":true}` | Prometheus Rule |
|
||||||
| pvcTarget | string | `"data"` | Name of the PVC target |
|
| pvcTarget | string | `"data"` | Name of the PVC target |
|
||||||
| remote | object | `{"enabled":false,"externalSecret":{"bucketPath":"/garage/config","credentialPath":"/garage/home-infra/volsync-backups"},"restic":{"cacheCapacity":"1Gi","copyMethod":"Snapshot","pruneIntervalDays":7,"repository":"","retain":{"daily":7,"hourly":0,"monthly":3,"weekly":4,"yearly":1},"storageClassName":"ceph-block","volumeSnapshotClassName":"ceph-blockpool-snapshot"},"schedule":"0 10 * * *"}` | Remote backup configuration |
|
| remote | object | `{"enabled":false,"externalSecret":{"bucketPath":"/garage/config","credentialPath":"/garage/home-infra/volsync-backups"},"restic":{"cacheCapacity":"1Gi","copyMethod":"Snapshot","pruneIntervalDays":7,"repository":"","retain":{"daily":0,"hourly":0,"monthly":0,"weekly":12,"yearly":0},"storageClassName":"ceph-block","volumeSnapshotClassName":"ceph-blockpool-snapshot"},"schedule":"0 10 * * 0"}` | Remote backup configuration |
|
||||||
| remote.externalSecret | object | `{"bucketPath":"/garage/config","credentialPath":"/garage/home-infra/volsync-backups"}` | External Secret configuration |
|
| remote.externalSecret | object | `{"bucketPath":"/garage/config","credentialPath":"/garage/home-infra/volsync-backups"}` | External Secret configuration |
|
||||||
| remote.restic | object | `{"cacheCapacity":"1Gi","copyMethod":"Snapshot","pruneIntervalDays":7,"repository":"","retain":{"daily":7,"hourly":0,"monthly":3,"weekly":4,"yearly":1},"storageClassName":"ceph-block","volumeSnapshotClassName":"ceph-blockpool-snapshot"}` | Backup configuration, inserted directly into the yaml |
|
| remote.restic | object | `{"cacheCapacity":"1Gi","copyMethod":"Snapshot","pruneIntervalDays":7,"repository":"","retain":{"daily":0,"hourly":0,"monthly":0,"weekly":12,"yearly":0},"storageClassName":"ceph-block","volumeSnapshotClassName":"ceph-blockpool-snapshot"}` | Backup configuration, inserted directly into the yaml |
|
||||||
| remote.schedule | string | `"0 10 * * *"` | 5 character cron schedule |
|
| remote.schedule | string | `"0 10 * * 0"` | 5 character cron schedule |
|
||||||
|
|
||||||
----------------------------------------------
|
----------------------------------------------
|
||||||
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
|
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
{{- if .Values.prometheusRule.enabled }}
|
||||||
|
---
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: PrometheusRule
|
||||||
|
metadata:
|
||||||
|
name: {{ include "volsync.name" . }}-source-local
|
||||||
|
namespace: {{ include "volsync.namespace" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "volsync.labels" . | nindent 4 }}
|
||||||
|
app.kubernetes.io/name: {{ include "volsync.name" . }}-source-local
|
||||||
|
{{- with .Values.additionalLabels }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
groups:
|
||||||
|
- name: volsync.alerts
|
||||||
|
rules:
|
||||||
|
- alert: VolSyncBackupPodFailed
|
||||||
|
expr: |
|
||||||
|
(kube_pod_container_status_last_terminated_exitcode > 0)
|
||||||
|
* on(pod, namespace) group_left(owner_name)
|
||||||
|
kube_pod_owner{owner_kind="Job", owner_name=~"volsync-.*"}
|
||||||
|
for: 1m
|
||||||
|
labels:
|
||||||
|
severity: critical
|
||||||
|
annotations:
|
||||||
|
summary: "VolSync Backup Pod failed in {{ `{{ $labels.namespace }}` }}"
|
||||||
|
description: |
|
||||||
|
A pod for the VolSync backup of PVC '{{ .Values.pvcTarget }}' failed with exit code {{ `{{ $value }}` }}.
|
||||||
|
Job: {{ `{{ $labels.owner_name }}` }}
|
||||||
|
Namespace: {{ `{{ $labels.namespace }}` }}
|
||||||
|
{{- end }}
|
||||||
@@ -7,7 +7,7 @@ metadata:
|
|||||||
namespace: {{ include "volsync.namespace" . }}
|
namespace: {{ include "volsync.namespace" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "volsync.labels" . | nindent 4 }}
|
{{- include "volsync.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/name: {{ include "volsync.name" . }}
|
app.kubernetes.io/name: {{ include "volsync.name" . }}-source-local
|
||||||
{{- with .Values.additionalLabels }}
|
{{- with .Values.additionalLabels }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -16,6 +16,10 @@ pvcTarget: "data"
|
|||||||
# -- Glocal security context for restic mover
|
# -- Glocal security context for restic mover
|
||||||
moverSecurityContext: {}
|
moverSecurityContext: {}
|
||||||
|
|
||||||
|
# -- Prometheus Rule
|
||||||
|
prometheusRule:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
# -- Use external secrets
|
# -- Use external secrets
|
||||||
externalSecrets:
|
externalSecrets:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -35,8 +39,8 @@ local:
|
|||||||
hourly: 0
|
hourly: 0
|
||||||
daily: 7
|
daily: 7
|
||||||
weekly: 4
|
weekly: 4
|
||||||
monthly: 3
|
monthly: 0
|
||||||
yearly: 1
|
yearly: 0
|
||||||
copyMethod: Snapshot
|
copyMethod: Snapshot
|
||||||
storageClassName: ceph-block
|
storageClassName: ceph-block
|
||||||
volumeSnapshotClassName: ceph-blockpool-snapshot
|
volumeSnapshotClassName: ceph-blockpool-snapshot
|
||||||
@@ -54,7 +58,7 @@ remote:
|
|||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
# -- 5 character cron schedule
|
# -- 5 character cron schedule
|
||||||
schedule: 0 10 * * *
|
schedule: 0 10 * * 0
|
||||||
|
|
||||||
# -- Backup configuration, inserted directly into the yaml
|
# -- Backup configuration, inserted directly into the yaml
|
||||||
restic:
|
restic:
|
||||||
@@ -62,10 +66,10 @@ remote:
|
|||||||
repository: ""
|
repository: ""
|
||||||
retain:
|
retain:
|
||||||
hourly: 0
|
hourly: 0
|
||||||
daily: 7
|
daily: 0
|
||||||
weekly: 4
|
weekly: 12
|
||||||
monthly: 3
|
monthly: 0
|
||||||
yearly: 1
|
yearly: 0
|
||||||
copyMethod: Snapshot
|
copyMethod: Snapshot
|
||||||
storageClassName: ceph-block
|
storageClassName: ceph-block
|
||||||
volumeSnapshotClassName: ceph-blockpool-snapshot
|
volumeSnapshotClassName: ceph-blockpool-snapshot
|
||||||
@@ -83,18 +87,18 @@ external:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
# -- 5 character cron schedule
|
# -- 5 character cron schedule
|
||||||
schedule: 0 9 * * *
|
schedule: 0 9 * * 0
|
||||||
|
|
||||||
# -- Backup configuration, inserted directly into the yaml
|
# -- Backup configuration, inserted directly into the yaml
|
||||||
restic:
|
restic:
|
||||||
pruneIntervalDays: 7
|
pruneIntervalDays: 35
|
||||||
repository: ""
|
repository: ""
|
||||||
retain:
|
retain:
|
||||||
hourly: 0
|
hourly: 0
|
||||||
daily: 7
|
daily: 0
|
||||||
weekly: 4
|
weekly: 12
|
||||||
monthly: 3
|
monthly: 0
|
||||||
yearly: 1
|
yearly: 0
|
||||||
copyMethod: Snapshot
|
copyMethod: Snapshot
|
||||||
storageClassName: ceph-block
|
storageClassName: ceph-block
|
||||||
volumeSnapshotClassName: ceph-blockpool-snapshot
|
volumeSnapshotClassName: ceph-blockpool-snapshot
|
||||||
@@ -103,6 +107,6 @@ external:
|
|||||||
# -- External Secret configuration
|
# -- External Secret configuration
|
||||||
externalSecret:
|
externalSecret:
|
||||||
# This path must contain the ENDPOINT
|
# This path must contain the ENDPOINT
|
||||||
bucketPath: /digital-ocean/config
|
bucketPath: /backblaze/config
|
||||||
# This path must contain the AWS/S3 credentials and RESTIC_PASSWORD
|
# This path must contain the AWS/S3 credentials and RESTIC_PASSWORD
|
||||||
credentialPath: /digital-ocean/home-infra/volsync-backups
|
credentialPath: /backblaze/home-infra/volsync-backups
|
||||||
|
|||||||
Reference in New Issue
Block a user