-
Notifications
You must be signed in to change notification settings - Fork 0
/
elasticsearch-deployment.yaml
48 lines (48 loc) · 1.35 KB
/
elasticsearch-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
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert --volumes hostPath -o k8s/overlays/local
kompose.version: 1.34.0 (HEAD)
labels:
io.kompose.service: elasticsearch
name: elasticsearch
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: elasticsearch
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert --volumes hostPath -o k8s/overlays/local
kompose.version: 1.34.0 (HEAD)
labels:
io.kompose.service: elasticsearch
spec:
containers:
- env:
- name: ES_JAVA_OPTS
value: -Xms256m -Xmx256m
- name: LOG4J_FORMAT_MSG_NO_LOOKUPS
value: "true"
- name: bootstrap.memory_lock
value: "true"
image: thr3a/growi-es
name: elasticsearch
volumeMounts:
- mountPath: /usr/share/elasticsearch/data
name: es-data
- mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
name: elasticsearch-hostpath1
subPath: elasticsearch.yml
restartPolicy: Always
volumes:
- persistentVolumeClaim:
claimName: es
name: es-data
- configMap:
name: es-conf
name: elasticsearch-hostpath1