-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathes-deployment.yaml
56 lines (56 loc) · 1.15 KB
/
es-deployment.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
apiVersion: v1
kind: Service
metadata:
name: zenodo-es
labels:
app: zenodo
spec:
ports:
- port: 9200
name: es1
- port: 9300
name: es2
selector:
app: zenodo
tier: es
clusterIP: None
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: zenodo-es
labels:
app: zenodo
spec:
selector:
matchLabels:
app: zenodo
tier: es
serviceName: zenodo-es
template:
metadata:
labels:
app: zenodo
tier: es
spec:
volumes:
- name: es-pv-storage
persistentVolumeClaim:
claimName: zenodo-es-pv-claim
containers:
- name: es
image: elasticsearch:2.3
ports:
- containerPort: 9200
- containerPort: 9300
env:
- name: ES_JAVA_OPTS
value: "-Xms4g -Xmx4g"
command: ["/bin/sh"]
args: ["-c", "plugin install royrusso/elasticsearch-HQ/v2.0.3; plugin install mapper-attachments; /docker-entrypoint.sh elasticsearch"]
resources:
requests:
memory: "6Gi"
volumeMounts:
- name: es-pv-storage
mountPath: /usr/share/elasticsearch/data