-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathes-dep.yaml
51 lines (51 loc) · 1.32 KB
/
es-dep.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
44
45
46
47
48
49
50
51
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
role: elasticsearch
name: elasticsearch
spec:
replicas: 1
template:
metadata:
labels:
role: elasticsearch
spec:
initContainers:
- name: init-sysctl
image: busybox
imagePullPolicy: IfNotPresent
command: ["sysctl", "-w", "vm.max_map_count=262144"]
securityContext:
privileged: true
containers:
- name: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.3
securityContext:
privileged: false
capabilities:
add:
- IPC_LOCK
- SYS_RESOURCE
env:
- name: CLUSTER_NAME
value: "docker-cluster"
- name: DISCOVERT_ZEN_MINIMUM_MASTER_NODES
value: "1"
- name: DISCOVERY_TYPE
value: "single-node"
- name: XPACK_SECURITY_ENABLED
value: "false"
- name: XPACK_MONITORING_ENABLED
value: "false"
- name: XPACK_ML_ENABLED
value: "false"
- name: XPACK_GRAPH_ENABLED
value: "false"
- name: XPACK_WATCHER_ENABLED
value: "false"
- name: ES_JAVA_OPTS
value: -Xmx256m -Xms256m
ports:
- containerPort: 9200
- containerPort: 9300