Skip to content
This repository was archived by the owner on Nov 7, 2018. It is now read-only.

Commit e318513

Browse files
rocketramanpires
authored andcommitted
Change yaml descriptors for recommended node layout
1 parent 118d237 commit e318513

File tree

5 files changed

+37
-6
lines changed

5 files changed

+37
-6
lines changed

es-data.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,21 @@ spec:
5252
limits:
5353
cpu: 1
5454
ports:
55+
- containerPort: 9200
56+
name: http
5557
- containerPort: 9300
5658
name: transport
5759
livenessProbe:
5860
tcpSocket:
5961
port: transport
6062
initialDelaySeconds: 20
6163
periodSeconds: 10
64+
readinessProbe:
65+
httpGet:
66+
path: /_cluster/health
67+
port: http
68+
initialDelaySeconds: 20
69+
timeoutSeconds: 5
6270
volumeMounts:
6371
- name: storage
6472
mountPath: /data

es-ingest-svc.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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

es-client.yaml renamed to es-ingest.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
apiVersion: apps/v1beta1
22
kind: Deployment
33
metadata:
4-
name: es-client
4+
name: es-ingest
55
labels:
66
component: elasticsearch
7-
role: client
7+
role: ingest
88
spec:
99
replicas: 2
1010
template:
1111
metadata:
1212
labels:
1313
component: elasticsearch
14-
role: client
14+
role: ingest
1515
spec:
1616
initContainers:
1717
- name: init-sysctl
@@ -23,7 +23,7 @@ spec:
2323
securityContext:
2424
privileged: true
2525
containers:
26-
- name: es-client
26+
- name: es-ingest
2727
image: quay.io/pires/docker-elasticsearch-kubernetes:6.2.4
2828
env:
2929
- name: NAMESPACE

es-svc.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ metadata:
44
name: elasticsearch
55
labels:
66
component: elasticsearch
7-
role: client
7+
role: data
88
spec:
99
selector:
1010
component: elasticsearch
11-
role: client
11+
role: data
1212
ports:
1313
- name: http
1414
port: 9200

stateful/es-data-stateful.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,21 @@ spec:
5353
limits:
5454
cpu: 1
5555
ports:
56+
- containerPort: 9200
57+
name: http
5658
- containerPort: 9300
5759
name: transport
5860
livenessProbe:
5961
tcpSocket:
6062
port: transport
6163
initialDelaySeconds: 20
6264
periodSeconds: 10
65+
readinessProbe:
66+
httpGet:
67+
path: /_cluster/health
68+
port: http
69+
initialDelaySeconds: 20
70+
timeoutSeconds: 5
6371
volumeMounts:
6472
- name: storage
6573
mountPath: /data

0 commit comments

Comments
 (0)