Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Story Points:2.8
-
Epic Link:
-
Team:SQuaRE
Attachments
Issue Links
- relates to
-
DM-12515 Redeploy squash to Kubernetes 1.8
- Done
Adopting a solution from https://github.com/whereisaaron/kube-backup
After a few changes I managed to make it work with squash-deployment
$ kubectl run --attach --rm --restart=Never kube-backup --image lsstsqre/kube-backup:latest -- --task=backup-mysql-exec --namespace=demo --pod=squash-db-1790786895-cx70z --container=mariadb
Fetched AWS credientials from 'kube-backup' secret
No database specified, getting database name from environment of container 'mariadb'
Backing up MySQL database 'qadb' from container 'mariadb' in pod 'squash-db-1790786895-cx70z' to 's3://jenkins-prod-qadb.lsst.codes-backups/demo/20171004-2116/squash-db-mariadb-qadb-20171004-2116.gz'
Backed up MySQL database 'qadb' from container 'mariadb' in pod 'squash-db-1790786895-cx70z' to 's3://jenkins-prod-qadb.lsst.codes-backups/demo/20171004-2116/squash-db-mariadb-qadb-20171004-2116.gz'
Done