Team I am trying to update the logLevel through f...
# fluent-operator
r
Team I am trying to update the logLevel through following manifest/yaml:
[root@96b6ed7198090d11eebb86df1e624adf02 crd]# cat config.yaml
apiVersion: <http://fluentbit.fluent.io/v1alpha2|fluentbit.fluent.io/v1alpha2>
kind: ClusterFluentBitConfig
metadata:
name: config-sample
labels:
<http://fluentbit.fluent.io/enabled|fluentbit.fluent.io/enabled>: "true"
spec:
service:
flushSeconds: 2
logLevel: "debug"
The creation succeeds, however it is not getting reflected and the [Service] doesn't get the logLevel field:
Copy code
[root@96b6ed7198090d11eebb86df1e624adf02 crd]# kubectl -n default get secrets fluent-bit-config -ojson | jq '.data."fluent-bit.conf"' | awk -F '"' '{printf $2}' | base64 --decode
[Service]
    Flush    5
    Parsers_File    parsers.conf   ==> The Log Level is no getting updated in secrets
[Input]
    Name    tail
    Path    /dev/null
    Refresh_Interval    10
    Skip_Long_Lines    true
    DB    /fluent-bit/tail/pos.db
    DB.Sync    Normal
    Mem_Buf_Limit    5MB
    Parser    cri
    Tag    kube.*
Can you let me know what could be the reason for the [Service] fields not getting updated? All other sections like Input, Output are getting updated properly. I am using fluent-operator version "v2.0.1". Thanks Raj
✅ 1