-
Notifications
You must be signed in to change notification settings - Fork 729
/
Copy pathelasticsearch.yaml
51 lines (51 loc) · 1.33 KB
/
elasticsearch.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# This sample sets up an Elasticsearch cluster with 3 nodes.
apiVersion: elasticsearch.k8s.elastic.co/v1alpha1
kind: Elasticsearch
metadata:
labels:
controller-tools.k8s.io: "1.0"
name: elasticsearch-sample
spec:
version: "7.1.0"
nodes:
- config:
node.master: true
node.data: true
node.attr.attr_name: attr_value
podTemplate:
metadata:
labels:
foo: bar
spec:
containers:
- name: elasticsearch
resources:
limits:
memory: 2Gi
cpu: 1
nodeCount: 3
## this shows how to request 2Gi of persistent data storage for pods in this topology element
#volumeClaimTemplates:
#- metadata:
# name: data
# spec:
# accessModes:
# - ReadWriteOnce
# resources:
# requests:
# storage: 2Gi
# storageClassName: elastic-local # or eg. gcePersistentDisk
## Inject secure settings into Elasticsearch nodes from a k8s secret reference
# secureSettings:
# secretName: "ref-to-secret"
## Add a list of SANs into the nodes certificates
# http:
# service:
# spec:
# type: LoadBalancer
# tls:
# selfSignedCertificate:
# subjectAltNames:
# - ip: 192.168.1.2
# - ip: 192.168.1.3
# - dns: elasticsearch-sample.example.com