-
Notifications
You must be signed in to change notification settings - Fork 41
/
logstash.yaml
56 lines (55 loc) · 1.22 KB
/
logstash.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: logstash
spec:
replicas: 1
selector:
matchLabels:
app: logstash
template:
metadata:
labels:
app: logstash
spec:
volumes:
- name: logstash-pipelines
configMap:
name: logstash-pipelines
- name: logstash-patterns
configMap:
name: logstash-patterns
- name: elasticsearch-es-http-certs-public
secret:
secretName: elasticsearch-es-http-certs-public
containers:
- name: logstash
image: logstash:7.16.3
volumeMounts:
- name: logstash-pipelines
mountPath: /usr/share/logstash/pipeline
- name: logstash-patterns
mountPath: /usr/share/logstash/patterns
- name: elasticsearch-es-http-certs-public
mountPath: /usr/share/logstash/config/ca.crt
subPath: ca.crt
ports:
- containerPort: 5140
name: syslog
protocol: UDP
---
apiVersion: v1
kind: Service
metadata:
name: logstash-service
labels:
app: logstash
spec:
externalTrafficPolicy: Local
type: LoadBalancer
selector:
app: logstash
ports:
- protocol: UDP
port: 5140
targetPort: syslog