forked from kyma-project/telemetry-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtelemetry_v1alpha1_logpipeline.yaml
103 lines (103 loc) · 1.77 KB
/
telemetry_v1alpha1_logpipeline.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
---
apiVersion: v1
kind: Namespace
metadata:
name: log-sink
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: log-sink
namespace: log-sink
spec:
replicas: 1
selector:
matchLabels:
app: log-sink
template:
metadata:
labels:
app: log-sink
name: log-sink
spec:
containers:
- args:
- -i http
- -o stdout
- -q
image: fluent/fluent-bit:latest
livenessProbe:
tcpSocket:
port: http-ingest
name: log-sink
ports:
- containerPort: 9880
name: http-ingest
protocol: TCP
readinessProbe:
tcpSocket:
port: http-ingest
---
apiVersion: v1
kind: Service
metadata:
name: log-sink
namespace: log-sink
spec:
ports:
- name: http-ingest
port: 9880
protocol: TCP
targetPort: http-ingest
selector:
app: log-sink
---
apiVersion: v1
kind: Namespace
metadata:
name: log-gen
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: log-gen
namespace: log-gen
spec:
replicas: 1
selector:
matchLabels:
app: log-gen
template:
metadata:
labels:
app: log-gen
spec:
containers:
- image: mingrammer/flog:latest
name: flog
args:
- -b=64
- -f=json
- -l
---
apiVersion: telemetry.kyma-project.io/v1alpha1
kind: LogPipeline
metadata:
name: sample
spec:
input:
application:
namespaces:
include:
- log-gen
output:
http:
dedot: true
host:
value: log-sink.log-sink.svc.cluster.local
port: "9880"
uri: /
format: json
tls:
disabled: true
skipCertificateValidation: true