-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathelasticsearch-data.yaml
44 lines (44 loc) · 1.02 KB
/
elasticsearch-data.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: elasticsearch
role: data
name: elasticsearch-data
namespace: default
spec:
replicas: 2
selector:
matchLabels:
app: elasticsearch
role: data
template:
metadata:
creationTimestamp: null
labels:
app: elasticsearch
role: data
spec:
containers:
- env:
- name: cluster.name
value: es_cluster
- name: node.master
value: "false"
- name: node.ingest
value: "true"
- name: node.data
value: "true"
- name: http.enabled
value: "true"
- name: ES_JAVA_OPTS
value: -Xms512m -Xmx512m
- name: discovery.zen.ping.unicast.hosts
value: elasticsearch-discovery.default.svc.master.cn
image: elasticsearch:6.4.0
imagePullPolicy: IfNotPresent
name: elasticsearch-data
ports:
- containerPort: 9300
protocol: TCP
restartPolicy: Always