Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Story Points:2.8
-
Epic Link:
-
Team:SQuaRE
Description
SQuaSH database backups required alpha features enabled to use CronJob resource (batch/v2alpha1)
This has been deprecated and cluster version 1.8 switchs to batch/v1beta1 which is enabled by default in the API server.
Also we need to fix the squash-dash.lsst.codes -> squash.lsst.codes creation which is done manual currently.
Attachments
Issue Links
- relates to
-
DM-11486 Automate backups for squash-db
- Done
Manual backups can be executed with this command, the AWS S3 credentials and the slack webook are obtained from the squash-db-backup secret in the squash-prod namespace.
kubectl run --attach --rm --restart=Never --image=lsstsqre/kube-backup:latest squash-db-backup -- --task=backup-mysql-exec --namespace=squash-prod --secret=squash-db-backup --pod=<squash-db pod name> --container=mariadb