Skip to content

Instantly share code, notes, and snippets.

@hossainemruz
Created February 1, 2021 15:16
Show Gist options
  • Save hossainemruz/4ad86c9b6378677e14eff12713e75e44 to your computer and use it in GitHub Desktop.
Save hossainemruz/4ad86c9b6378677e14eff12713e75e44 to your computer and use it in GitHub Desktop.
apiVersion: stash.appscode.com/v1beta1
kind: BackupSession
metadata:
name: instant-trigger
namespace: <namespace>
spec:
invoker:
apiGroup: stash.appscode.com
kind: BackupConfiguration
name: <backupconfiguration name>
@abarry-gn
Copy link

abarry-gn commented Feb 1, 2021

apiVersion: kubedb.com/v1alpha2
kind: Elasticsearch
metadata:
  name: elasticsearch-rest
  namespace: aba-elastic
spec:
  version: 7.3.2-xpack
  storageType: Durable
  init:
    waitForInitialRestore: true
  topology:
    master:
      suffix: master
      replicas: 1
      storage:
        storageClassName: "standard"
        accessModes:
        - ReadWriteOnce
        resources:
          requests:
            storage: 1Gi
    data:
      suffix: data
      replicas: 2
      storage:
        storageClassName: "standard"
        accessModes:
        - ReadWriteOnce
        resources:
          requests:
            storage: 1Gi
    ingest:
      suffix: client
      replicas: 2
      storage:
        storageClassName: "standard"
        accessModes:
        - ReadWriteOnce
        resources:
          requests:
            storage: 1Gi

@abarry-gn
Copy link

abarry-gn commented Feb 1, 2021

apiVersion: stash.appscode.com/v1beta1
kind: RestoreSession
metadata:
  name: elasticsearch-restore
  namespace: aba-elastic
  labels:
    app.kubernetes.io/name: elasticsearches.kubedb.com
spec:
  task:
    name: elasticsearch-restore-7.3.2-v6
    params:
    - name: args
      value: --ignoreChildError=true
  repository:
    name: ecv-s3-repo
  target:
    ref:
      apiVersion: appcatalog.appscode.com/v1alpha1
      kind: AppBinding
      name: elasticsearch-rest
  interimVolumeTemplate:
    metadata:
      name: stash-tmp-storage
    spec:
      accessModes: [ "ReadWriteOnce" ]
      storageClassName: "standard"
      resources:
        requests:
          storage: 1Gi
  rules:
  - snapshots: [latest]

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