-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtelemetry-controller.yaml
49 lines (49 loc) · 1.01 KB
/
telemetry-controller.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
apiVersion: telemetry.kube-logging.dev/v1alpha1
kind: Collector
metadata:
name: kubernetes
spec:
debug: true
controlNamespace: default
tenantSelector:
matchLabels:
collectorLabel: kubernetes
---
apiVersion: telemetry.kube-logging.dev/v1alpha1
kind: Tenant
metadata:
labels:
collectorLabel: kubernetes
name: default
spec:
subscriptionNamespaceSelectors:
- matchLabels:
kubernetes.io/metadata.name: default
logSourceNamespaceSelectors:
- matchLabels:
kubernetes.io/metadata.name: log-generator
---
apiVersion: telemetry.kube-logging.dev/v1alpha1
kind: Subscription
metadata:
name: all-logs
namespace: default
spec:
condition: "true"
outputs:
- name: fluent
namespace: default
---
apiVersion: telemetry.kube-logging.dev/v1alpha1
kind: Output
metadata:
name: fluent
namespace: default
spec:
fluentforward:
endpoint:
tcp_addr: all-to-file-fluentd.default:24240
tag: otelcol
kubernetes_metadata:
key: kubernetes
include_pod_labels: true