-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathes-deploy.yaml
52 lines (52 loc) · 1.22 KB
/
es-deploy.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: elastic-search
spec:
selector:
matchLabels:
app: elastic-search
strategy:
rollingUpdate:
maxSurge: 0
template:
metadata:
labels:
app: elastic-search
spec:
containers:
- name: elastic-search
image: elasticsearch-placeholder
env:
- name: discovery.type
value: single-node
- name: xpack.security.enabled
value: "false"
resources:
limits:
memory: 1Gi
cpu: 2
ports:
- containerPort: 9200
name: http
- containerPort: 9300
livenessProbe:
httpGet:
path: /_cluster/health?wait_for_status=yellow
port: http
readinessProbe:
httpGet:
path: /_cluster/health?wait_for_status=yellow
port: http
securityContext:
runAsNonRoot: true
runAsUser: 1000
volumeMounts:
- name: data
mountPath: /usr/share/elasticsearch/data
securityContext:
fsGroup: 1000
volumes:
- name: data
persistentVolumeClaim:
claimName: elasticsearch