This repository was archived by the owner on Nov 7, 2018. It is now read-only.
File tree 5 files changed +37
-6
lines changed
5 files changed +37
-6
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,21 @@ spec:
52
52
limits :
53
53
cpu : 1
54
54
ports :
55
+ - containerPort : 9200
56
+ name : http
55
57
- containerPort : 9300
56
58
name : transport
57
59
livenessProbe :
58
60
tcpSocket :
59
61
port : transport
60
62
initialDelaySeconds : 20
61
63
periodSeconds : 10
64
+ readinessProbe :
65
+ httpGet :
66
+ path : /_cluster/health
67
+ port : http
68
+ initialDelaySeconds : 20
69
+ timeoutSeconds : 5
62
70
volumeMounts :
63
71
- name : storage
64
72
mountPath : /data
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : Service
3
+ metadata :
4
+ name : elasticsearch-ingest
5
+ labels :
6
+ component : elasticsearch
7
+ role : ingest
8
+ spec :
9
+ selector :
10
+ component : elasticsearch
11
+ role : ingest
12
+ ports :
13
+ - name : http
14
+ port : 9200
15
+ # type: LoadBalancer
Original file line number Diff line number Diff line change 1
1
apiVersion : apps/v1beta1
2
2
kind : Deployment
3
3
metadata :
4
- name : es-client
4
+ name : es-ingest
5
5
labels :
6
6
component : elasticsearch
7
- role : client
7
+ role : ingest
8
8
spec :
9
9
replicas : 2
10
10
template :
11
11
metadata :
12
12
labels :
13
13
component : elasticsearch
14
- role : client
14
+ role : ingest
15
15
spec :
16
16
initContainers :
17
17
- name : init-sysctl
23
23
securityContext :
24
24
privileged : true
25
25
containers :
26
- - name : es-client
26
+ - name : es-ingest
27
27
image : quay.io/pires/docker-elasticsearch-kubernetes:6.2.4
28
28
env :
29
29
- name : NAMESPACE
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ metadata:
4
4
name : elasticsearch
5
5
labels :
6
6
component : elasticsearch
7
- role : client
7
+ role : data
8
8
spec :
9
9
selector :
10
10
component : elasticsearch
11
- role : client
11
+ role : data
12
12
ports :
13
13
- name : http
14
14
port : 9200
Original file line number Diff line number Diff line change @@ -53,13 +53,21 @@ spec:
53
53
limits :
54
54
cpu : 1
55
55
ports :
56
+ - containerPort : 9200
57
+ name : http
56
58
- containerPort : 9300
57
59
name : transport
58
60
livenessProbe :
59
61
tcpSocket :
60
62
port : transport
61
63
initialDelaySeconds : 20
62
64
periodSeconds : 10
65
+ readinessProbe :
66
+ httpGet :
67
+ path : /_cluster/health
68
+ port : http
69
+ initialDelaySeconds : 20
70
+ timeoutSeconds : 5
63
71
volumeMounts :
64
72
- name : storage
65
73
mountPath : /data
You can’t perform that action at this time.
0 commit comments