Last active
March 22, 2023 00:44
-
-
Save emchristiansen/ab49b609fc22031f15f88918a964c453 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See: | |
# https://docs.pingcap.com/tidb-in-kubernetes/stable/backup-to-s3 | |
# https://github.com/pingcap/docs-tidb-operator/blob/master/en/backup-restore-cr.md#backupschedule-cr-fields | |
apiVersion: pingcap.com/v1alpha1 | |
kind: BackupSchedule | |
metadata: | |
name: backup-schedule | |
namespace: tidb-cluster | |
spec: | |
schedule: "* * * * *" | |
pause: false | |
maxBackups: 3 | |
maxReservedTime: "45m" | |
backupTemplate: | |
from: | |
host: tidb-service-devenv.tidb-cluster.svc.cluster.local | |
port: 4000 | |
user: root | |
secretName: tidb-secret | |
s3: | |
provider: aws | |
region: us-west-2 | |
secretName: s3-secret | |
bucket: tidb | |
storageClass: INTELLIGENT_TIERING | |
storageSize: 5Gi | |
affinity: | |
nodeAffinity: | |
requiredDuringSchedulingIgnoredDuringExecution: | |
nodeSelectorTerms: | |
- matchExpressions: | |
- key: kubernetes.io/hostname | |
operator: In | |
values: | |
- devenv | |
logBackupTemplate: | |
from: | |
host: tidb-service-devenv.tidb-cluster.svc.cluster.local | |
port: 4000 | |
user: root | |
secretName: tidb-secret | |
s3: | |
provider: aws | |
region: us-west-2 | |
secretName: s3-secret | |
bucket: tidb-log | |
storageClass: INTELLIGENT_TIERING | |
storageSize: 5Gi | |
affinity: | |
nodeAffinity: | |
requiredDuringSchedulingIgnoredDuringExecution: | |
nodeSelectorTerms: | |
- matchExpressions: | |
- key: kubernetes.io/hostname | |
operator: In | |
values: | |
- devenv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment