Skip to content

Commit

Permalink
Add doc for kubedump
Browse files Browse the repository at this point in the history
Signed-off-by: Anisur Rahman <[email protected]>
  • Loading branch information
anisurrahman75 committed Feb 23, 2024
1 parent e062917 commit fe289c3
Show file tree
Hide file tree
Showing 35 changed files with 1,182 additions and 1,246 deletions.
58 changes: 37 additions & 21 deletions docs/addons/kubedump/application/examples/backupconfiguration.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,43 @@
apiVersion: stash.appscode.com/v1beta1
apiVersion: core.kubestash.com/v1alpha1
kind: BackupConfiguration
metadata:
name: application-manifest-backup
namespace: demo
spec:
schedule: "*/5 * * * *"
task:
name: kubedump-backup-0.1.0
params:
- name: includeDependants
value: "true"
repository:
name: application-resource-storage
target:
ref:
apiVersion: apps/v1
kind: Deployment
name: stash-stash-enterprise
namespace: kube-system
runtimeSettings:
pod:
serviceAccountName: cluster-resource-reader
retentionPolicy:
name: keep-last-5
keepLast: 5
prune: true
apiGroup: apps
kind: Deployment
name: kubestash-kubestash-operator
namespace: kubestash
backends:
- name: gcs-backend
storageRef:
namespace: demo
name: gcs-storage
retentionPolicy:
name: demo-retention
namespace: demo
sessions:
- name: frequent-backup
sessionHistoryLimit: 3
scheduler:
schedule: "*/5 * * * *"
jobTemplate:
backoffLimit: 1
repositories:
- name: gcs-repository
backend: gcs-backend
directory: /deployment-manifests
encryptionSecret:
name: encryption-secret
namespace: demo
deletionPolicy: WipeOut
addon:
name: kubedump-addon
tasks:
- name: manifest-backup
params:
includeDependants: "true"
jobTemplate:
spec:
serviceAccountName: cluster-resource-reader
14 changes: 7 additions & 7 deletions docs/addons/kubedump/application/examples/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: cluster-resource-reader
namespace: demo
namespace: kubestash
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: cluster-resource-reader
rules:
- apiGroups: ["*"]
resources: ["*"]
verbs: ["get","list"]
- apiGroups: ["*"]
resources: ["*"]
verbs: ["get","list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: cluster-resource-reader
subjects:
- kind: ServiceAccount
name: cluster-resource-reader
namespace: demo
- kind: ServiceAccount
name: cluster-resource-reader
namespace: kubestash
roleRef:
kind: ClusterRole
name: cluster-resource-reader
Expand Down
11 changes: 0 additions & 11 deletions docs/addons/kubedump/application/examples/repository.yaml

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit fe289c3

Please sign in to comment.