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

bug: influxdb host configured as ipv6 type, not accepting hostname #1359

Closed
EvgenyAsocs opened this issue Sep 25, 2024 · 0 comments · Fixed by #1363
Closed

bug: influxdb host configured as ipv6 type, not accepting hostname #1359

EvgenyAsocs opened this issue Sep 25, 2024 · 0 comments · Fixed by #1363

Comments

@EvgenyAsocs
Copy link

Describe the issue

influxDB.host field in ClusterOutput CRD define as type: ipv6.
The restriction does not allow to use ipv4 or hostname in the field

To Reproduce

install fluent-operator with Helm Chart,
try to apply ClusterOutput CRD:

apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterOutput
metadata:
   name: influx
   namespace: fluent-operator
   labels:
     fluentbit.fluent.io/enabled: "true"
     fluentbit.fluent.io/component: logging
spec:
   match: "*"
   influxDB:
     host: 'influx.default.svc.cluster.local'
     port: 8086
     bucket: data1
     org: default
     httpToken:
       valueFrom:
         secretKeyRef:
           key: influxdb-token
     tagKeys:
       - ipaddr
       - unit-uuid
       - unit-type
       - unit-id
       - pi-type
       - pi-id
     sequenceTag: "off"

Expected behavior

ClusterOutput CRD would be created, but error is thrown:
The ClusterOutput "influx" is invalid: spec.influxDB.host: Invalid value: "influx.default.svc.cluster.local": spec.influxDB.host in body must be of type ipv6: "influx.default.svc.cluster.local"

Your Environment

- Fluent Operator version: 3.2.0
- Container Runtime: cri-o
- Operating system: Rocky 9
- Kernel version: 5.14.0-427.13.1

How did you install fluent operator?

helm install -f custom-fluent.yaml fluent-operator -n fluent-operator https://github.com/fluent/fluent-operator/releases/download/v3.2.0/fluent-operator.tgz

custom-fluent.yaml:
containerRuntime: crio
fluentbit:
crdsEnable: true
   enable: true
   additionalVolumes:
     - name: file-output-node
     hostPath:
     path: /tmp/fluent-logs
  additionalVolumesMounts:
   - mountPath: /tmp/fluent-logs
     mountPropagation: HostToContainer
     name: file-output-node

Additional context

No response

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

Successfully merging a pull request may close this issue.

1 participant