forked from osman/elasticsearch-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.yml
59 lines (59 loc) · 1.33 KB
/
client.yml
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: es-client
labels:
application: demo
component: elasticsearch
type: client
spec:
replicas: 2
minReadySeconds: 1
strategy:
rollingUpdate:
maxSurge: 5
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
labels:
application: demo
component: elasticsearch
type: client
spec:
containers:
- name: elasticsearch
image: quay.io/pires/docker-elasticsearch-kubernetes:2.4.1
imagePullPolicy: Always
ports:
- containerPort: 9300
name: transport
- containerPort: 9200
name: http
readinessProbe:
httpGet:
path: /
port: 9200
env:
- name: DISCOVERY_SERVICE
value: elasticsearch-masters
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: CLUSTER_NAME
value: 'demo'
- name: NODE_MASTER
value: 'false'
- name: NODE_DATA
value: 'false'
- name: ES_HEAP_SIZE
value: '500m'
securityContext:
privileged: true
capabilities:
add:
- IPC_LOCK
resources:
requests:
memory: 1Gi