Skip to content

Commit

Permalink
Updated Snapshot concept for 0.9.0 (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
the-redback authored and tamalsaha committed Oct 14, 2018
1 parent 2720c6a commit 7a2ae99
Show file tree
Hide file tree
Showing 7 changed files with 268 additions and 162 deletions.
320 changes: 196 additions & 124 deletions docs/concepts/snapshot.md

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions docs/examples/snapshot/azure/azure-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ spec:
azure:
container: bucket-for-snapshot
prefix: demo
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
podTemplate:
spec:
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
16 changes: 9 additions & 7 deletions docs/examples/snapshot/gcs/gcs-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ spec:
gcs:
bucket: bucket-for-snapshot
prefix: demo
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
podTemplate:
spec:
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
21 changes: 21 additions & 0 deletions docs/examples/snapshot/local/local-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: kubedb.com/v1alpha1
kind: Snapshot
metadata:
name: local-snapshot
labels:
kubedb.com/kind: Postgres
spec:
databaseName: postgres-db
local:
mountPath: /repo
persistentVolumeClaim:
claimName: my-snap-pvc
podTemplate:
spec:
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
25 changes: 15 additions & 10 deletions docs/examples/snapshot/local/local-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@ metadata:
spec:
databaseName: postgres-db
local:
path: /repo
volumeSource:
emptyDir: {}
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
mountPath: /repo
hostPath:
# directory location on host
path: /var/postgres-snapshots
# this field is optional
type: DirectoryOrCreate
podTemplate:
spec:
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
16 changes: 9 additions & 7 deletions docs/examples/snapshot/s3/s3-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ spec:
endpoint: 's3.amazonaws.com'
bucket: kubedb-qa
prefix: demo
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
podTemplate:
spec:
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
16 changes: 9 additions & 7 deletions docs/examples/snapshot/swift/swift-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ spec:
swift:
container: bucket-for-snapshot
prefix: demo
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
podTemplate:
spec:
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"

0 comments on commit 7a2ae99

Please sign in to comment.