forked from zalando-incubator/es-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
elasticsearchdataset-vct.yaml
92 lines (91 loc) · 2.29 KB
/
elasticsearchdataset-vct.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
apiVersion: zalando.org/v1
kind: ElasticsearchDataSet
metadata:
labels:
application: elasticsearch
role: data
group: simple
name: es-data-simple
namespace: es-operator-demo
spec:
#replicas: 5
volumeClaimTemplates:
- metadata:
annotations:
volume.beta.kubernetes.io/storage-class: px-es-data-sc
name: data
spec:
storageClassName: px-es-data-sc
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
scaling:
enabled: true
minReplicas: 3
maxReplicas: 99
minIndexReplicas: 2
maxIndexReplicas: 3
minShardsPerNode: 2
maxShardsPerNode: 6
scaleUpCPUBoundary: 50
scaleUpThresholdDurationSeconds: 30
scaleUpCooldownSeconds: 30
scaleDownCPUBoundary: 25
scaleDownThresholdDurationSeconds: 30
scaleDownCooldownSeconds: 30
diskUsagePercentScaledownWatermark: 80
template:
metadata:
labels:
application: elasticsearch
role: data
group: simple
spec:
securityContext:
fsGroup: 1000
containers:
- name: elasticsearch
env:
- name: "node.name"
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: "node.attr.group"
value: "simple"
- name: "node.master"
value: "false"
- name: "node.data"
value: "true"
- name: "ES_JAVA_OPTS"
value: "-Xmx500m -Xms500m"
image: "docker.elastic.co/elasticsearch/elasticsearch-oss:7.0.0"
ports:
- containerPort: 9300
name: transport
readinessProbe:
httpGet:
path: /_cat/master
port: 9200
timeoutSeconds: 10
resources:
limits:
cpu: 1500m
memory: 800Mi
requests:
memory: 800Mi
volumeMounts:
- mountPath: /usr/share/elasticsearch/data
name: data
- name: elasticsearch-config
mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
subPath: elasticsearch.yml
serviceAccountName: operator
volumes:
- name: elasticsearch-config
configMap:
name: es-config
items:
- key: elasticsearch.yml
path: elasticsearch.yml