forked from fluent/fluent-bit-kubernetes-logging
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestpod.yml
More file actions
22 lines (21 loc) · 730 Bytes
/
testpod.yml
File metadata and controls
22 lines (21 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
apiVersion: v1
kind: Pod
metadata:
name: testpod-fluentbit-kafka
namespace: default
spec:
containers:
- name: kafkacat
image: solsson/kafkacat@sha256:1266d140c52cb39bf314b6f22b6d7a01c4c9084781bc779fdfade51214a713a8
command:
- bash
- -ec
- >
cd /usr/local/bin;
echo '#!/bin/bash' > logs-cat;
chmod +x logs-cat;
echo "kafkacat -b kafka-0.broker.kafka.svc.cluster.local:9092 -C -t fluent-bit -o end" >> logs-cat;
echo "Won't cat logs to stdout because it would create an infinite loop of log aggregation.";
echo "Instead run something like:";
echo "kubectl -n default exec -ti testpod-fluentbit-kafka -- logs-cat";
tail -f /dev/null;