-
Notifications
You must be signed in to change notification settings - Fork 13
/
manifest_elasticsearch.j2
72 lines (72 loc) · 2.15 KB
/
manifest_elasticsearch.j2
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
60
61
62
63
64
65
66
67
68
69
70
71
72
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: elasticsearch
namespace: '{{ ansible_operator_meta.namespace }}'
spec:
auth: {}
http:
service:
metadata: {}
spec: {}
tls:
certificate:
secretName: elasticsearch-es-cert
monitoring:
logs: {}
metrics: {}
nodeSets:
- count: {{ servicetelemetry_vars.backends.events.elasticsearch.node_count }}
name: default
config:
node.roles:
- master
- data
- ingest
node.store.allow_mmap: true
{% if servicetelemetry_vars.backends.events.elasticsearch.storage.strategy == "persistent" %}
volumeClaimTemplates:
- metadata:
name: elasticsearch-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: {{ servicetelemetry_vars.backends.events.elasticsearch.storage.persistent.pvc_storage_request }}
{% if servicetelemetry_vars.backends.events.elasticsearch.storage.persistent.storage_selector is defined %}
selector: {{ servicetelemetry_vars.backends.events.elasticsearch.storage.persistent.storage_selector }}
{% endif %}
{% if servicetelemetry_vars.backends.events.elasticsearch.storage.persistent.storage_class | length %}
storageClassName: {{ servicetelemetry_vars.backends.events.elasticsearch.storage.persistent.storage_class }}
{% endif %}
{% endif %}
podTemplate:
metadata:
labels:
tuned.openshift.io/elasticsearch: elasticsearch
spec:
containers:
- name: elasticsearch
resources:
limits:
cpu: "2"
memory: 4Gi
requests:
cpu: "1"
memory: 4Gi
{% if servicetelemetry_vars.backends.events.elasticsearch.storage.strategy == "ephemeral" %}
volumes:
- emptyDir: {}
name: elasticsearch-data
{% endif %}
transport:
service:
metadata: {}
spec: {}
tls:
certificate: {}
updateStrategy:
changeBudget: {}
version: {{ servicetelemetry_vars.backends.events.elasticsearch.version }}
volumeClaimDeletePolicy: DeleteOnScaledownOnly