Skip to content

Commit

Permalink
feat(cloud): added nodeSelector to backup destinations.
Browse files Browse the repository at this point in the history
Ensure backup pods aren't scheduled on screenshot nodes.
  • Loading branch information
bitfade committed May 2, 2022
1 parent a266ae5 commit 52f54c1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/percona-xtradb-cluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 1.10.18
version: 1.10.19

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
Expand Down
10 changes: 10 additions & 0 deletions charts/percona-xtradb-cluster/templates/cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ spec:
# storage: 60Gi

backup-2:
nodeSelector:
database-node: "true"
type: s3
labels:
{{ .Values.label_name }}: {{ .Values.label_value }}
Expand All @@ -385,6 +387,8 @@ spec:
region: {{ .Values.s3_region_backup_2 }}

backup-3:
nodeSelector:
database-node: "true"
type: s3
labels:
{{ .Values.label_name }}: {{ .Values.label_value }}
Expand All @@ -396,6 +400,8 @@ spec:
region: {{ .Values.s3_region_backup_3 }}

backup-4:
nodeSelector:
database-node: "true"
type: s3
labels:
{{ .Values.label_name }}: {{ .Values.label_value }}
Expand All @@ -407,6 +413,8 @@ spec:
region: {{ .Values.s3_region_backup_4 }}

backup-pitr-1:
nodeSelector:
database-node: "true"
type: s3
labels:
{{ .Values.label_name }}: {{ .Values.label_value }}
Expand All @@ -417,6 +425,8 @@ spec:
region: {{ .Values.s3_region_backup_pitr_1 }}

backup-local:
nodeSelector:
database-node: "true"
type: filesystem
volume:
persistentVolumeClaim:
Expand Down

0 comments on commit 52f54c1

Please sign in to comment.