forked from osman/elasticsearch-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.yml.tmpl
64 lines (64 loc) · 1.45 KB
/
data.yml.tmpl
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
60
61
62
63
64
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: es-data-{{&id}}
labels:
application: demo
component: elasticsearch
type: data
id: '{{&id}}'
spec:
replicas: 1
minReadySeconds: 5
strategy:
type: Recreate
template:
metadata:
labels:
application: demo
component: elasticsearch
type: data
id: '{{&id}}'
spec:
containers:
- name: elasticsearch
image: quay.io/pires/docker-elasticsearch-kubernetes:2.4.1
imagePullPolicy: Always
ports:
- containerPort: 9300
name: transport
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: 'true'
- name: ES_HEAP_SIZE
value: '500m'
securityContext:
privileged: true
capabilities:
add:
- IPC_LOCK
resources:
requests:
memory: 1Gi
volumeMounts:
- name: es-data
mountPath: /data
volumes:
- name: es-data
gcePersistentDisk:
pdName: es-demo-{{&id}}
fsType: ext4