Skip to content

Commit

Permalink
[digital ocean] Add backup pvc
Browse files Browse the repository at this point in the history
  • Loading branch information
welbon committed Sep 19, 2024
1 parent d8bbc67 commit b20fb4d
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion kube/base-components/elasticsearch-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ spec:
volumeMounts:
- name: es-data
mountPath: /usr/share/elasticsearch/data
- name: es-backup
mountPath: /data/es_snapshot_repository
- name: elasticsearch-config
mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
subPath: elasticsearch.yml
Expand All @@ -58,6 +60,9 @@ spec:
- name: es-data
persistentVolumeClaim:
claimName: es-pvc
- name: es-backup
persistentVolumeClaim:
claimName: es-backup-pvc
- name: elasticsearch-config
configMap:
name: elasticsearch-config
Expand All @@ -72,6 +77,7 @@ data:
xpack.security.enabled: true
xpack.license.self_generated.type: basic
network.host: 0.0.0.0
path.repo: ["/data/es_snapshot_repository"]
---
# Elasticsearch Persistent Volume Claim
Expand All @@ -84,7 +90,21 @@ spec:
- ReadWriteOnce
resources:
requests:
storage: 100Gi
storage: 500Gi
storageClassName: do-block-storage-retain

---
# Elasticsearch Snapshot Repository Persistent Volume Claim
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: es-backup-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Gi
storageClassName: do-block-storage-retain

---
Expand Down

0 comments on commit b20fb4d

Please sign in to comment.