Switch from fluentd to fluentbit for log forwarding (#1086)
This removes fluentd in favor of using fluentbit, which is lighter (in memory usage) and seems to be more actively maintained. Fluentbit's config file format is different from fluentd's. It also doesn't support the same record modification stuff that fluentd supports, so we have to change the influxdb query slightly. This means that after an upgrade, the new CLI may won't work for querying older logs. Hopefully, this slight breakage is acceptable; if users really need older logs they can use the older CLI.
This commit is contained in:
committed by
Ta-Ching Chen
parent
0fc864f230
commit
4e4c8aa14f
@@ -96,23 +96,6 @@ build_builder_image() {
|
||||
popd
|
||||
}
|
||||
|
||||
build_logger_image() {
|
||||
local version=$1
|
||||
local tag=fission/fluentd:$version
|
||||
|
||||
pushd $DIR/logger/fluentd
|
||||
|
||||
docker build -t $tag .
|
||||
docker tag $tag fission/fluentd:latest
|
||||
|
||||
popd
|
||||
}
|
||||
|
||||
push_logger_image() {
|
||||
local version=$1
|
||||
local tag=fission/fluentd:$version
|
||||
}
|
||||
|
||||
build_env_image() {
|
||||
local version=$1
|
||||
envdir=$2
|
||||
@@ -294,7 +277,6 @@ build_all() {
|
||||
build_fission_bundle_image $version $date $gitcommit
|
||||
build_fetcher_image $version $date $gitcommit
|
||||
build_builder_image $version $date $gitcommit
|
||||
build_logger_image $version
|
||||
build_all_cli $version $date $gitcommit
|
||||
build_pre_upgrade_checks_image $version $date $gitcommit
|
||||
}
|
||||
|
||||
@@ -46,12 +46,6 @@ push_builder_image() {
|
||||
docker push $tag
|
||||
}
|
||||
|
||||
push_logger_image() {
|
||||
local version=$1
|
||||
local tag=fission/fluentd:$version
|
||||
docker push $tag
|
||||
}
|
||||
|
||||
push_env_image() {
|
||||
local version=$1
|
||||
envdir=$2
|
||||
@@ -141,9 +135,6 @@ push_all() {
|
||||
push_builder_image $version
|
||||
push_builder_image latest
|
||||
|
||||
push_logger_image $version
|
||||
push_logger_image latest
|
||||
|
||||
push_pre_upgrade_checks_image $version
|
||||
push_pre_upgrade_checks_image latest
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
if [ ! -f ${KUBECONFIG} ]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user