Hi team! When I tried to run <ghcr.io/fluent/fluen...
# fluent-operator
v
Hi team! When I tried to run ghcr.io/fluent/fluent-bit:4.0.3 I run into trouble not having any of my config actually properly propagated despite the fact that I can observe it being mounted. Afterwards, I switched to ghcr.io/fluent/fluent-bit:4.0.3-debug where I can see entrypoint being
Copy code
root           1  0.0  0.0  85760 14480 ?        Ssl  10:08   0:00 /fluent-bit/bin/fluent-bit -c /fluent-bit/etc/fluent-bit.conf
Whereas my config is landed at
Copy code
/fluent-bit/config
Is it a bug of 3.4.0 version of an operator, or intended, or there's some other thing I have completely forgotten to configure by any chance?
https://github.com/fluent/fluent-bit/blob/v4.0.3/dockerfiles/Dockerfile has CMD ["/fluent-bit/bin/fluent-bit", "-c", "/fluent-bit/etc/fluent-bit.conf"] as a default cmd (expected, according to what I saw debugging) Therefore, I suppose that means that I should override it myself when I am utilizing
Copy code
apiVersion: <http://fluentbit.fluent.io/v1alpha2|fluentbit.fluent.io/v1alpha2>
kind: FluentBit
?
In case, I have achieved results I needed to by modifying command:
Copy code
spec:
  image: {{ .Values.fluentbitCRD.fluentbit.image }}
  
  # Override command to use correct config path
  command:
    - /fluent-bit/bin/fluent-bit
    - -c
    - /fluent-bit/config/fluent-bit.conf
n
From the readme
A custom Fluent Bit image <http://ghcr.io/fluent/fluent-operator/fluent-bit|ghcr.io/fluent/fluent-operator/fluent-bit> is required to work with FluentBit Operator for dynamic configuration reloading.
make sure you use the Fluent Bit image specially package for the operator, and not the regular one?
❤️ 1
you shouldn't have to override the command yourself