Skip to content

Commit

Permalink
[digital ocean] Add some config for elasticsearch-deployment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
welbon committed Sep 26, 2024
1 parent 9a804b6 commit b1633d2
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions kube/base-components/elasticsearch-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,9 @@ spec:
lifecycle:
postStart:
exec:
command:
- "sh"
- "-c"
- |
echo ${S3_CLIENT_ACCESS_KEY} | /usr/share/elasticsearch/bin/elasticsearch-keystore add s3.client.default.access_key --stdin
echo ${S3_CLIENT_SECRET_KEY} | /usr/share/elasticsearch/bin/elasticsearch-keystore add s3.client.default.secret_key --stdin
/usr/share/elasticsearch/bin/elasticsearch-plugin list | grep -q repository-s3 || /usr/share/elasticsearch/bin/elasticsearch-plugin install --batch repository-s3
command: ["/bin/bash", "-c", "/usr/share/elasticsearch/bin/elasticsearch-plugin list | grep -q repository-s3 || /usr/share/elasticsearch/bin/elasticsearch-plugin install --batch repository-s3 && \
echo ${S3_CLIENT_ACCESS_KEY} | /usr/share/elasticsearch/bin/elasticsearch-keystore add s3.client.default.access_key --stdin &&\
echo ${S3_CLIENT_SECRET_KEY} | /usr/share/elasticsearch/bin/elasticsearch-keystore add s3.client.default.secret_key --stdin"]
volumes:
- name: es-data
persistentVolumeClaim:
Expand Down

0 comments on commit b1633d2

Please sign in to comment.