-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathLogstash_Deployment.yaml
44 lines (44 loc) · 1.22 KB
/
Logstash_Deployment.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
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: sample-logstash
labels:
component: sample-logstash
spec:
replicas: 1
selector:
matchLabels:
component: sample-logstash
template:
metadata:
labels:
component: sample-logstash
spec:
containers:
- name: sample-logstash
image: docker.elastic.co/logstash/logstash:6.4.1
volumeMounts:
- name: sample-logstash-configmap
mountPath: /usr/share/logstash/config/logstash.yml
subPath: logstash.yml
- name: sample-logstash-configmap
mountPath: /usr/share/logstash/pipeline/logstash.conf
subPath: logstash.conf
- name: sample-logstash-configmap
mountPath: /usr/share/logstash/azureeventhubs.cfg
subPath: azureeventhubs.cfg
- name: sample-logstash-configmap
mountPath: /usr/share/logstash/config/pipelines.yml
subPath: pipelines.yml
resources:
limits:
cpu: 1000m
requests:
cpu: 100m
ports:
- containerPort: 5601
name: http
volumes:
- name: sample-logstash-configmap
configMap:
name: sample-logstash-configmap