This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aws backup|restore support and backup cronjob (#118)
* #backup aws support #100 * #backup secretName option * #restore aws support for core pods * #restore aws support for read pods * #default values updated * #single secret path for backup * #restore deployment-scenarios
- Loading branch information
Showing
12 changed files
with
554 additions
and
359 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,31 @@ | ||
# This scenario creates a cluster | ||
# that automatically restores from a backup with the given | ||
# parameters in the "initContainers" section. | ||
# | ||
# IN ORDER FOR THIS TO WORK - you must have pre-created a secret, and | ||
# you must modify the BUCKET parameter, and make sure backups are in place | ||
# to be restored. See the documentation for more information. | ||
# See the documentation for more information. | ||
############################################################### | ||
restoreSecret: neo4j-service-key | ||
|
||
neo4jPassword: test | ||
plugins: "[\"apoc\"]" | ||
core: | ||
standalone: false | ||
numberOfServers: 3 | ||
initContainers: | ||
- name: restore-from-backup | ||
image: gcr.io/neo4j-helm/restore:4.1.0-1 | ||
imagePullPolicy: Always | ||
volumeMounts: | ||
- name: datadir | ||
mountPath: /data | ||
# The statefulset will already have a volume named "creds" when restoreSecret is set. | ||
# Make sure to mount this to /auth | ||
- name: creds | ||
mountPath: /auth | ||
env: | ||
- name: BUCKET | ||
value: gs://graph-backup-storage | ||
- name: DATABASE | ||
value: neo4j,system | ||
- name: GOOGLE_APPLICATION_CREDENTIALS | ||
value: /auth/credentials.json | ||
- name: FORCE_OVERWRITE | ||
value: "true" | ||
|
||
numberOfServers: 3 | ||
restore: | ||
enabled: true | ||
image: gcr.io/neo4j-helm/restore | ||
imageTag: 4.1.0-1 | ||
secretName: neo4j-gcp-credentials #neo4j-aws-credentials | ||
database: neo4j,system | ||
cloudProvider: gcp #aws | ||
bucket: gs://test-neo4j #s3://test-neo4j | ||
timestamp: "latest" | ||
forceOverwrite: true | ||
purgeOnComplete: true | ||
readReplica: | ||
numberOfServers: 1 | ||
initContainers: | ||
- name: restore-from-backup | ||
image: gcr.io/neo4j-helm/restore:4.1.0-1 | ||
imagePullPolicy: Always | ||
volumeMounts: | ||
# - name: datadir | ||
# mountPath: /data | ||
# The statefulset will already have a volume named "creds" when restoreSecret is set. | ||
# Make sure to mount this to /auth | ||
- name: creds | ||
mountPath: /auth | ||
env: | ||
- name: BUCKET | ||
value: gs://graph-backup-storage | ||
- name: DATABASE | ||
value: neo4j,system | ||
- name: GOOGLE_APPLICATION_CREDENTIALS | ||
value: /auth/credentials.json | ||
- name: FORCE_OVERWRITE | ||
value: "true" | ||
|
||
acceptLicenseAgreement: "yes" | ||
neo4jPassword: other | ||
numberOfServers: 1 | ||
restore: | ||
enabled: true | ||
image: gcr.io/neo4j-helm/restore | ||
imageTag: 4.1.0-1 | ||
secretName: neo4j-gcp-credentials #neo4j-aws-credentials | ||
database: neo4j,system | ||
cloudProvider: gcp #aws | ||
bucket: gs://test-neo4j #s3://test-neo4j | ||
timestamp: "latest" | ||
forceOverwrite: true | ||
purgeOnComplete: true | ||
|
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
Oops, something went wrong.