Skip to content

Commit

Permalink
Change yaml descriptors for recommended node layout
Browse files Browse the repository at this point in the history
  • Loading branch information
rocketraman authored and pires committed Jun 14, 2018
1 parent 118d237 commit e318513
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 6 deletions.
8 changes: 8 additions & 0 deletions es-data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,21 @@ spec:
limits:
cpu: 1
ports:
- containerPort: 9200
name: http
- containerPort: 9300
name: transport
livenessProbe:
tcpSocket:
port: transport
initialDelaySeconds: 20
periodSeconds: 10
readinessProbe:
httpGet:
path: /_cluster/health
port: http
initialDelaySeconds: 20
timeoutSeconds: 5
volumeMounts:
- name: storage
mountPath: /data
Expand Down
15 changes: 15 additions & 0 deletions es-ingest-svc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: elasticsearch-ingest
labels:
component: elasticsearch
role: ingest
spec:
selector:
component: elasticsearch
role: ingest
ports:
- name: http
port: 9200
#type: LoadBalancer
8 changes: 4 additions & 4 deletions es-client.yaml → es-ingest.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: es-client
name: es-ingest
labels:
component: elasticsearch
role: client
role: ingest
spec:
replicas: 2
template:
metadata:
labels:
component: elasticsearch
role: client
role: ingest
spec:
initContainers:
- name: init-sysctl
Expand All @@ -23,7 +23,7 @@ spec:
securityContext:
privileged: true
containers:
- name: es-client
- name: es-ingest
image: quay.io/pires/docker-elasticsearch-kubernetes:6.2.4
env:
- name: NAMESPACE
Expand Down
4 changes: 2 additions & 2 deletions es-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ metadata:
name: elasticsearch
labels:
component: elasticsearch
role: client
role: data
spec:
selector:
component: elasticsearch
role: client
role: data
ports:
- name: http
port: 9200
Expand Down
8 changes: 8 additions & 0 deletions stateful/es-data-stateful.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,21 @@ spec:
limits:
cpu: 1
ports:
- containerPort: 9200
name: http
- containerPort: 9300
name: transport
livenessProbe:
tcpSocket:
port: transport
initialDelaySeconds: 20
periodSeconds: 10
readinessProbe:
httpGet:
path: /_cluster/health
port: http
initialDelaySeconds: 20
timeoutSeconds: 5
volumeMounts:
- name: storage
mountPath: /data
Expand Down

0 comments on commit e318513

Please sign in to comment.