-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pvc): Support Snapshotting (#98)
* feat(pvc): Support Snapshotting * separate it out * sample Dragonfly PVC * get it working * name mount path better * have a snapshot top level field * use fsgroup to set the dfly permissions * add a df pvc test * fix nits and commits * add sample and test for schedule * update crd bases * remove volume and name it to df * err if cron is set without pvc
- Loading branch information
1 parent
0edd7fc
commit 0fbc4a9
Showing
7 changed files
with
397 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
apiVersion: dragonflydb.io/v1alpha1 | ||
kind: Dragonfly | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: dragonfly | ||
app.kubernetes.io/instance: dragonfly-sample | ||
app.kubernetes.io/part-of: dragonfly-operator | ||
app.kubernetes.io/managed-by: kustomize | ||
app.kubernetes.io/created-by: dragonfly-operator | ||
name: dragonfly-sample | ||
spec: | ||
replicas: 1 | ||
resources: | ||
requests: | ||
cpu: 500m | ||
memory: 500Mi | ||
limits: | ||
cpu: 600m | ||
memory: 750Mi | ||
snapshot: | ||
cron: "*/5 * * * *" | ||
persistentVolumeClaimSpec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 2Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.