-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path03-liferay-search.yaml
98 lines (93 loc) · 1.89 KB
/
03-liferay-search.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
93
94
95
96
97
apiVersion: v1
kind: Service
metadata:
name: liferay-search
namespace: liferay
labels:
app: liferay
tier: search
spec:
ports:
- name: search-9200
port: 9200
- name: search-9300
port: 9300
selector:
app: liferay
tier: search
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: liferay-search-pvc
namespace: liferay
labels:
app: liferay
tier: search
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: liferay-search
namespace: liferay
labels:
app: liferay
tier: search
spec:
replicas: 1
selector:
matchLabels:
app: liferay
tier: search
strategy:
type: Recreate
template:
metadata:
namespace: liferay
labels:
app: liferay
tier: search
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
fsGroupChangePolicy: "OnRootMismatch"
containers:
- name: search
image: liferaycloud/elasticsearch:7.17.13-5.2.0
resources:
requests:
memory: "2048Mi"
limits:
memory: "2560Mi"
env:
- name: ES_JAVA_OPTS
value: -Xms2g -Xmx2g
- name: LCP_PROJECT_ENVIRONMENT
value: local
- name: LCP_SERVICE_ID
value: search
- name: LCP_SERVICE_SCALE
value: "1"
- name: cluster.routing.allocation.disk.threshold_enabled
value: "false"
- name: discovery.type
value: single-node
ports:
- containerPort: 9200
- containerPort: 9300
volumeMounts:
- mountPath: /data
name: liferay-search-storage
restartPolicy: Always
volumes:
- name: liferay-search-storage
persistentVolumeClaim:
claimName: liferay-search-pvc