-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelasticsearch.yaml
60 lines (60 loc) · 1.31 KB
/
elasticsearch.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
52
53
54
55
56
57
58
59
60
apiVersion: v1
kind: Service
metadata:
name: elasticsearch
labels:
app: elasticsearch
spec:
selector:
app: elasticsearch
ports:
- name: elasticsearch
protocol: TCP
port: 9200
targetPort: 80
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: elasticsearch
labels:
app: elasticsearch
spec:
replicas: 1
template:
metadata:
labels:
app: elasticsearch
spec:
containers:
- name: elasticsearch
image: elasticsearch:7.8.0
env:
- name: cluster.name
value: wuvt
- name: discovery.type
value: single-node
- name: ES_JAVA_OPTS
value: "-Xms4G -Xmx4G"
volumeMounts:
- name: elasticsearch-data
mountPath: /usr/share/elasticsearch/data
- name: nginx
image: wuvt/nginx-elasticsearch:latest
ports:
- containerPort: 80
volumeMounts:
- name: nginx-auth
mountPath: /etc/nginx/auth
volumes:
- name: elasticsearch-data
hostPath:
path: /srv/wuvt-elasticsearch-data
- name: nginx-auth
secret:
secretName: elasticsearch-nginx-auth
nodeName: columbia
tolerations:
- key: node-role.kubernetes.io/dbserver
operator: Exists
effect: NoSchedule