Skip to content

Commit

Permalink
write manifest for easy backup and restore
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Gupta <[email protected]>
  • Loading branch information
shubham-cmyk committed Sep 15, 2023
1 parent ffdd46b commit 6ba423e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 22 deletions.
4 changes: 2 additions & 2 deletions example/v1beta2/backup_restore/backup/env-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ stringData:
BACKUP_DESTINATION: AWS_S3
AWS_S3_BUCKET: shubham-redis
AWS_DEFAULT_REGION: ap-south-1
AWS_ACCESS_KEY_ID: "AKIA4C3B4OYHOLOWCGMB"
AWS_SECRET_ACCESS_KEY: "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"
AWS_ACCESS_KEY_ID: ""
AWS_SECRET_ACCESS_KEY: ""
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ stringData:
DEFAULT_FILE_PATH: /data/dump.rdb
RESTIC_PASSWORD: abc@123
RESTIC_CACHE_DIR: "/tmp/restic_cache"
DEFAULT_REDIS_HOST: redis-cluster-leader-0
DEFAULT_REDIS_PORT: "6379"
DEFAULT_REDIS_PASSWORD: ""
BACKUP_DESTINATION: AWS_S3
AWS_S3_BUCKET: shubham-redis
AWS_DEFAULT_REGION: ap-south-1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
# - name: regcred
initContainer:
enabled: true
image: shubham192001/restore:latest
image: quay.io/opstree/redis-operator-restore:latest
imagePullPolicy: Always
command: ["/bin/bash", "-c", "/app/restore.bash"]
resources:
Expand Down Expand Up @@ -63,21 +63,6 @@ spec:
secretKeyRef:
name: env-secrets
key: RESTIC_CACHE_DIR
- name: DEFAULT_REDIS_HOST
valueFrom:
secretKeyRef:
name: env-secrets
key: DEFAULT_REDIS_HOST
- name: DEFAULT_REDIS_PORT
valueFrom:
secretKeyRef:
name: env-secrets
key: DEFAULT_REDIS_PORT
- name: DEFAULT_REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: env-secrets
key: DEFAULT_REDIS_PASSWORD
- name: BACKUP_DESTINATION
valueFrom:
secretKeyRef:
Expand Down Expand Up @@ -138,6 +123,7 @@ spec:
resources:
requests:
storage: 1Gi
nodeConfVolume: true
nodeConfVolumeClaimTemplate:
spec:
accessModes: ["ReadWriteOnce"]
Expand Down
3 changes: 2 additions & 1 deletion example/v1beta2/redis-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
runAsUser: 1000
fsGroup: 1000
kubernetesConfig:
image: quay.io/opstree/redis:v7.0.5
image: quay.io/opstree/redis:v7.0.11
imagePullPolicy: IfNotPresent
resources:
requests:
Expand Down Expand Up @@ -64,6 +64,7 @@ spec:
resources:
requests:
storage: 1Gi
nodeConfVolume: true
nodeConfVolumeClaimTemplate:
spec:
accessModes: ["ReadWriteOnce"]
Expand Down

0 comments on commit 6ba423e

Please sign in to comment.