Skip to content

Commit 59b9880

Browse files
committed
fluent-bit unhelm input to fluent/fluent-bit-kubernetes-logging#90
1 parent 0a683f2 commit 59b9880

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ mkdir /tmp/unhelm && chmod a+rxw /tmp/unhelm
77
docker-compose up --build --exit-code-from logs logs
88
docker-compose up --build --exit-code-from mysql mysql
99
docker-compose up --build --exit-code-from vault vault
10+
docker-compose up --build --exit-code-from fluent-bit fluent-bit
1011
```

docker-compose.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,26 @@ services:
9999
set +x
100100
echo "Done. To extract the results:"
101101
echo "rsync -av --delete /tmp/unhelm/vault/* ./vault/"
102+
103+
fluent-bit:
104+
image: docker.io/yolean/ystack-runner:6e0024f0386b9aeff890f5d507178b684cc80aaa@sha256:06770d55312fff7e79475e30b9f866f144a27b6786fe0aae83dd3b49136249eb
105+
working_dir: /tmp
106+
volumes:
107+
- /tmp/unhelm:/tmp/unhelm:rw
108+
- ./fluent-bit:/workspace/fluent-bit:ro
109+
command:
110+
- /bin/bash
111+
- -cx
112+
- |
113+
set -eo pipefail
114+
helm version
115+
helm repo add fluent https://fluent.github.io/helm-charts
116+
helm repo update
117+
helm search repo fluent-bit --versions
118+
mkdir -p /tmp/unhelm/fluent-bit
119+
echo 'resources:' > /tmp/unhelm/fluent-bit/kustomization.yaml
120+
helm template fluent-bit fluent/fluent-bit -f /workspace/fluent-bit/fluent-bit.values.yaml -n unhelm-namespace-placeholder --output-dir /tmp/unhelm | sed 's|wrote /tmp/unhelm/fluent-bit/|- ./|' | tee -a /tmp/unhelm/fluent-bit/kustomization.yaml
121+
sed -i 's/ namespace: unhelm-namespace-placeholder/ #namespace: unhelm-namespace-placeholder/' /tmp/unhelm/fluent-bit/templates/*.yaml
122+
set +x
123+
echo "Done. To extract the results:"
124+
echo "rsync -av --delete /tmp/unhelm/fluent-bit/* ./fluent-bit/"

0 commit comments

Comments
 (0)