-
Notifications
You must be signed in to change notification settings - Fork 0
/
es-master.yaml
43 lines (43 loc) · 979 Bytes
/
es-master.yaml
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: "es-master"
namespace: ump-es-staging
labels:
type: master
component: es-cluster
spec:
replicas: 3
template:
metadata:
labels:
type: master
component: es-cluster
spec:
securityContext:
fsGroup: 0
containers:
- name: elasticsearch
env:
- name: SERVICE
value: "es-cluster"
- name: ES_JAVA_OPTS
value: "-Xms2g -Xmx2g"
- name: KUBERNETES_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: NODE_DATA
value: "false"
resources:
requests:
cpu: "4"
memory: "8Gi"
limits:
cpu: "4"
memory: "8Gi"
image: "fabric8/elasticsearch-k8s:2.3.2"
imagePullPolicy: "Always"
ports:
- containerPort: 9300
name: transport