-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathelasticsearch-master.yaml
46 lines (46 loc) · 1.1 KB
/
elasticsearch-master.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: elasticsearch
role: master
name: elasticsearch-master
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: elasticsearch
role: master
template:
metadata:
creationTimestamp: null
labels:
app: elasticsearch
role: master
spec:
containers:
- env:
- name: cluster.name
value: es_cluster
- name: node.master
value: "true"
- name: discovery.zen.minimum_master_nodes
value: "1"
- name: node.ingest
value: "false"
- name: node.data
value: "false"
- name: http.enabled
value: "false"
- 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-master
ports:
- containerPort: 9300
protocol: TCP
restartPolicy: Always