Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fluentbit resource does not create daemonsets #1007

Closed
anthonyoride opened this issue Dec 1, 2023 · 3 comments
Closed

fluentbit resource does not create daemonsets #1007

anthonyoride opened this issue Dec 1, 2023 · 3 comments

Comments

@anthonyoride
Copy link

Describe the issue

i have deployed fluentbit using the operator following the official guide https://github.com/kubesphere-sigs/fluent-operator-walkthrough. however i don't see the fluent bit daemonsets.

To Reproduce

below is my resource definition as seen from the official guide

apiVersion: fluentbit.fluent.io/v1alpha2
kind: FluentBit
metadata:
name: fluent-bit
namespace: fluent
labels:
app.kubernetes.io/name: fluent-bit
spec:
image: kubesphere/fluent-bit:v1.8.11
positionDB:
hostPath:
path: /var/lib/fluent-bit/
resources:
requests:
cpu: 10m
memory: 25Mi
limits:
cpu: 500m
memory: 200Mi
fluentBitConfigName: fluent-bit-only-config
tolerations:

  • operator: Exists

Expected behavior

with the above custom resource, fluent bits daemonsets should be created but they are not.

Your Environment

- Fluent Operator version: v1.8.11
- Container Runtime: crio
- Operating system: linux
- Kernel version:

How did you install fluent operator?

fluent was installed using the manifest => https://raw.githubusercontent.com/fluent/fluent-operator/release-2.5/manifests/setup/setup.yaml

Additional context

No response

@cw-Guo
Copy link
Collaborator

cw-Guo commented Dec 4, 2023

You need a ClusterFluentBitConfig manifest too to create a daemonset.
Quoted from the original workthrough

The FluentBit CR works together with ClusterFluentBitConfig and they should be created together.

@anthonyoride
Copy link
Author

anthonyoride commented Dec 4, 2023

@cw-Guo thanks for your response. i did have the ClusterFluentBitConfig created as well.

apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterFluentBitConfig
metadata:
name: fluent-bit-config
labels:
app.kubernetes.io/name: fluent-bit
spec:
service:
parsersFile: parsers.conf
inputSelector:
matchLabels:
fluentbit.fluent.io/enabled: "true"
fluentbit.fluent.io/mode: "k8s"
filterSelector:
matchLabels:
fluentbit.fluent.io/enabled: "true"
fluentbit.fluent.io/mode: "k8s"
outputSelector:
matchLabels:
fluentbit.fluent.io/enabled: "true"
fluentbit.fluent.io/mode: "k8s"

I created every resources quoted in the docs

@anthonyoride
Copy link
Author

this is resolved it was due to the fluentBitConfigName field in the fluentbit resource not matching with the name of the ClusterFluentBitConfig name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants