-
Notifications
You must be signed in to change notification settings - Fork 0
/
02_elasticsearch_resource.yaml
59 lines (59 loc) · 1.52 KB
/
02_elasticsearch_resource.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
52
53
54
55
56
57
58
59
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: es-log
namespace: elastic-system
spec:
version: 7.6.2
nodeSets:
- name: quickstart
count: 5
config:
node.master: true
node.data: true
node.ingest: true
podTemplate:
spec:
nodeSelector:
yandex.cloud/node-group-id: <dedicated-ig-for-elasticsearch>
http:
tls:
selfSignedCertificate:
subjectAltNames:
- dns: es-log-es-http.elastic-system.svc.cluster.local
- dns: es-log-es-http.elastic-system.svc
- dns: es-log-es-http
- dns: logs.svc.cluster.local
containers:
- name: elasticsearch
resources:
requests:
memory: 8Gi
cpu: 4000m
limits:
memory: 10Gi
cpu: 4000m
env:
- name: ES_JAVA_OPTS
value: "-Xms6g -Xmx6g"
initContainers:
- name: sysctl
securityContext:
privileged: true
command: ['sh', '-c', 'sysctl -w vm.max_map_count=262144']
- name: install-plugins
command:
- sh
- -c
- |
bin/elasticsearch-plugin install --batch repository-s3
volumeClaimTemplates:
- metadata:
name: elasticsearch-data
spec:
accessModes:
- ReadWriteOnce
storageClassName: yc-network-ssd
resources:
requests:
storage: 1280Gi