Hey all, i'm trying to get the fluent-operator de...
# fluent-operator
l
Hey all, i'm trying to get the fluent-operator developement setup running for the first time and would like som help from you guys 😉 After i do "make install & make run" the fluent-operator starts successfully in the terminal. However when i apply the sample manifest from the quickstart, i get some error messages and nothing happens:
2024-06-21T16:57:17+02:00       ERROR   Reconciler error        {"controller": "fluentbit", "controllerGroup": "<http://fluentbit.fluent.io|fluentbit.fluent.io>", "controllerKind": "FluentBit", "FluentBit": {"name":"fluent-bit-config"}, "namespace": "", "name": "fluent-bit-config", "reconcileID": "4d53a5ea-f249-42d2-80c7-72610967746a", "error": "an empty namespace may not be set during creation"}
I'm applying the following manifest here and would expect a fluentbit pods to spawn. Any help would be appreciated, since im trying to make my first contribution
Copy code
apiVersion: fluentbit.fluent.io/v1alpha2
kind: FluentBit
metadata:
  name: fluent-bit
  namespace: fluent
  labels:
    app.kubernetes.io/name: fluent-bit
spec:
  image: ghcr.io/fluent/fluent-operator/fluent-bit:3.0.7
  fluentBitConfigName: fluent-bit-config

---
apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterFluentBitConfig
metadata:
  name: fluent-bit-config
  namespace: fluent
  labels:
    app.kubernetes.io/name: fluent-bit
spec:
  inputSelector:
    matchLabels:
      fluentbit.fluent.io/enabled: "true"
  outputSelector:
    matchLabels:
      fluentbit.fluent.io/enabled: "true"
---
apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterOutput
metadata:
  name: tcp
  namespace: fluent
  labels:
    fluentbit.fluent.io/enabled: "true"
spec:
  match: "*"
  tcp:
    host: 127.0.0.1
    port: 9090
    format: json_lines
    # net:
    #   ConnectTimeout: 20
p
It looks like no namespace is specified by something
l
Yeah but i've took that manifest from the quickstart? So i expected that to work?
And the provided error is about the fluent-bit-config CR. But it's correctly created in a namespace as shown by kubectl?
Copy code
$ k get <http://clusterfluentbitconfigs.fluentbit.fluent.io|clusterfluentbitconfigs.fluentbit.fluent.io> -n fluent
NAME                AGE
fluent-bit-config   93s
This issue is present in the master-branch and release-2.9 branch
https://github.com/fluent/fluent-operator/issues/1215 Opened an issue about this since from a previous thread @Roman Dymov seems to face the same issue!
c
You need to set an environment variable. Export NAMESPACE=something
l
Thanks a lot! I will create a PR for the README to make that clear
👍 1