Skip to content

Instantly share code, notes, and snippets.

@Callonski
Created July 19, 2020 08:14
Show Gist options
  • Save Callonski/f63e1ac25965a0d1f77244a0e4a8de3e to your computer and use it in GitHub Desktop.
Save Callonski/f63e1ac25965a0d1f77244a0e4a8de3e to your computer and use it in GitHub Desktop.
####### PLUGIN, SERVICE-ACCOUNT AND RESTART ELASTICSEARCH ########
systemctl enable elasticsearch.service
cd /usr/share/elasticsearch
sudo ./bin/elasticsearch-plugin install repository-gcs -b
echo ${gcp_sa} | base64 -d > credentials.json
sudo ./bin/elasticsearch-keystore add-file gcs.client.default.credentials_file credentials.json -s
systemctl restart elasticsearch.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment