forked from pablokbs/peladonerd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
07-logstash-deployment.yaml
39 lines (39 loc) · 995 Bytes
/
07-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
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: logging
name: logstash
labels:
app: logstash
spec:
replicas: 2
selector:
matchLabels:
app: logstash
template:
metadata:
labels:
app: logstash
spec:
containers:
- name: logstash
image: docker.elastic.co/logstash/logstash:6.5.2
command:
- '/bin/sh'
- '-c'
- 'logstash-plugin install logstash-output-loggly && logstash-plugin install logstash-filter-prune && /usr/local/bin/docker-entrypoint '
ports:
- containerPort: 8080
volumeMounts:
- name: config
mountPath: /usr/share/logstash/pipeline
env:
- name: XPACK_MONITORING_ENABLED
value: "false"
volumes:
- name: config
configMap:
name: logstash-config
items:
- key: logstash.conf
path: logstash.conf