Skip to content

Commit

Permalink
fluent-bit unhelm input to fluent/fluent-bit-kubernetes-logging#90
Browse files Browse the repository at this point in the history
  • Loading branch information
solsson committed Aug 10, 2021
1 parent 0a683f2 commit 59b9880
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ mkdir /tmp/unhelm && chmod a+rxw /tmp/unhelm
docker-compose up --build --exit-code-from logs logs
docker-compose up --build --exit-code-from mysql mysql
docker-compose up --build --exit-code-from vault vault
docker-compose up --build --exit-code-from fluent-bit fluent-bit
```
23 changes: 23 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,26 @@ services:
set +x
echo "Done. To extract the results:"
echo "rsync -av --delete /tmp/unhelm/vault/* ./vault/"
fluent-bit:
image: docker.io/yolean/ystack-runner:6e0024f0386b9aeff890f5d507178b684cc80aaa@sha256:06770d55312fff7e79475e30b9f866f144a27b6786fe0aae83dd3b49136249eb
working_dir: /tmp
volumes:
- /tmp/unhelm:/tmp/unhelm:rw
- ./fluent-bit:/workspace/fluent-bit:ro
command:
- /bin/bash
- -cx
- |
set -eo pipefail
helm version
helm repo add fluent https://fluent.github.io/helm-charts
helm repo update
helm search repo fluent-bit --versions
mkdir -p /tmp/unhelm/fluent-bit
echo 'resources:' > /tmp/unhelm/fluent-bit/kustomization.yaml
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
sed -i 's/ namespace: unhelm-namespace-placeholder/ #namespace: unhelm-namespace-placeholder/' /tmp/unhelm/fluent-bit/templates/*.yaml
set +x
echo "Done. To extract the results:"
echo "rsync -av --delete /tmp/unhelm/fluent-bit/* ./fluent-bit/"

0 comments on commit 59b9880

Please sign in to comment.