Created
September 26, 2023 11:53
-
-
Save arn-ob/000ccb619923f4946fb94387b573f37e to your computer and use it in GitHub Desktop.
Elasticsearch and Kibana
This file contains hidden or 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
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: elasticsearch | |
--- | |
apiVersion: elasticsearch.k8s.elastic.co/v1 | |
kind: Elasticsearch | |
metadata: | |
name: quickstart | |
namespace: elasticsearch | |
spec: | |
version: 8.10.2 | |
nodeSets: | |
- name: default | |
count: 1 | |
podTemplate: | |
spec: | |
initContainers: | |
- name: install-plugins | |
command: | |
- sh | |
- -c | |
- | | |
bin/elasticsearch-plugin install --batch repository-s3 | |
- name: add-aws-keys | |
env: | |
- name: AWS_ACCESS_KEY_ID | |
value: <AWS_ACCESS_KEY_ID> | |
- name: AWS_SECRET_ACCESS_KEY | |
value: <AWS_SECRET_ACCESS_KEY> | |
command: | |
- sh | |
- -c | |
- | | |
echo $AWS_ACCESS_KEY_ID | bin/elasticsearch-keystore add --stdin --force s3.client.default.access_key | |
echo $AWS_SECRET_ACCESS_KEY | bin/elasticsearch-keystore add --stdin --force s3.client.default.secret_key | |
volumeClaimTemplates: | |
- metadata: | |
name: elasticsearch-data | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 100Gi | |
config: | |
node.store.allow_mmap: false | |
--- | |
apiVersion: kibana.k8s.elastic.co/v1 | |
kind: Kibana | |
metadata: | |
name: quickstart | |
namespace: elasticsearch | |
spec: | |
version: 8.10.2 | |
count: 1 | |
elasticsearchRef: | |
name: quickstart | |
http: | |
tls: | |
selfSignedCertificate: | |
disabled: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment