Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design review #616

Closed
tamalsaha opened this issue Nov 22, 2018 · 1 comment
Closed

Design review #616

tamalsaha opened this issue Nov 22, 2018 · 1 comment

Comments

@tamalsaha
Copy link
Member

tamalsaha commented Nov 22, 2018

in _> CRD

out: Statefulset, Secret, Service + AppBinding

Vault / Database -> AppBinding


SidecarBackup |

VolumeBackup , Diskbackup

crd: BackupJob

backup process: write backup to disk, upload
  -- init container[0] takes backup
  -- container[0] uploads
recover process: download, restore
  -- init container downloads
  -- container[0] restores

mysqldump -host | restic -r s3:mydb

Non-namespaced CRD: BackupTemplate, RecoveryTemplate

apiVersion: stash.appscode.com/v1alpha1
kind: BackupTemplate
metadata
  name: mysql-backup
spec:
  command:
    mysqldump -host {{.DBSVC}}:{{port}} | restic -r {{RepoName}}

apiVersion: stash.appscode.com/v1alpha1
kind: RecoveryTemplate
metadata
  name: mysql-recovery
spec:
  container:
    ----
  command:
    restic -r {{RepoName}} | mysqld -host {{.DBSVC}}:{{port}}

apiVersion: stash.appscode.com/v1alpha1
kind: BackupJob
metadata
  name: gitlab-backup
  namespace: default
spec:
  backend:
    name: Repository-crd
    namespace: Repository-crd
  appRef:
    name: gitlab-db
    namespace: gitlab
  template:
    name: mysql-backup
    parameters:

  schedule:
    cron:

BackupJob + (template) -> k8s:Job

Default backup for any workload.


@tamalsaha
Copy link
Member Author

Dup: #648

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant