-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrsyslog-server-deployment.yaml
57 lines (53 loc) · 1.12 KB
/
rsyslog-server-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
45
46
47
48
49
50
51
52
53
54
55
56
57
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: rsyslog-server
labels:
app: rsyslog-server
spec:
replicas: 1
selector:
matchLabels:
app: rsyslog-server
template:
metadata:
labels:
app: rsyslog-server
spec:
containers:
- name: rsyslog-server
image: jumanjiman/rsyslog:latest
ports:
- containerPort: 514
name: tcp
protocol: TCP
- containerPort: 514
name: upd
protocol: UDP
volumeMounts:
- name: config-volume
mountPath: /etc/rsyslog.d
volumes:
- name: config-volume
configMap:
name: rsyslog-d
---
apiVersion: v1
kind: ConfigMap
metadata:
name: rsyslog-d
labels:
app: rsyslog-server
data:
filelog.conf: |
# http://www.rsyslog.com/doc/
# Output
$template DynaFile,"/var/log/container-%HOSTNAME%.log"
# Actions
*.* -?DynaFile # one file for every device
imtcp.conf: |
module(load="imtcp")
input(type="imtcp" port="514")
imudp.conf: |
module(load="imudp")
input(type="imudp" port="514")