help request: `opentelemetry` input does not update the `fluent-bit` service

Aperta
#1,409 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
go, kubernetes

Direzione di ricerca

Inizia tracciando il modo in cui le risorse OpenTelemetry Input e ClusterInput aggiornano il pod e il Service di Fluent Bit, confrontando questo percorso con l’aggiornamento riuscito del secret fluent-bit-config. Riproduci il problema usando il chart fluent-operator e verifica che l’aggiunta di un input opentelemetry esponga la porta 4318 sia sul pod sia sul Service.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement question
Describe the issue

Adding opentelemetry input/clusterinput resources neither triggers addition of 4318 port to existing fluent-bit service, nor creation of a new one. The fluentbit-config k8s secret is updated successfully:

fluent-bit.conf: |                                                                                                                                                                                                
  [Service]                                                                                                                                                                                                       
      Http_Server    true                                                                                                                                                                                         
      Parsers_File    /fluent-bit/etc/parsers.conf                                                                                                                                                                
  [Input]                                                                                                                                                                                                         
      Name    opentelemetry                                                                                                                                                                                       
      listen    0.0.0.0                                                                                                                                                                                           
      port    4318                                                                                                                                                                                                
      tag_key    traces
...

fluent-bit cotainers are successfully loading the configuration and starting listening on port 4318:

* Copyright (C) 2015-2024 The Fluent Bit Authors                                                                                                                                                                  
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd                                                                                                                                                  
* https://fluentbit.io                                                                                                                                                                                            
                                                                                                                                                                                                                  
______ _                  _    ______ _ _           _____  __                                                                                                                                                     
|  ___| |                | |   | ___ (_) |         |____ |/  |                                                                                                                                                    
| |_  | |_   _  ___ _ __ | |_  | |_/ /_| |_  __   __   / /`| |                                                                                                                                                    
|  _| | | | | |/ _ \ '_ \| __| | ___ \ | __| \ \ / /   \ \ | |                                                                                                                                                    
| |   | | |_| |  __/ | | | |_  | |_/ / | |_   \ V /.___/ /_| |_                                                                                                                                                   
\_|   |_|\__,_|\___|_| |_|\__| \____/|_|\__|   \_/ \____(_)___/                                                                                                                                                   
                                                                                                                                                                                                                  
[2024/11/15 11:24:38] [ info] [fluent bit] version=3.1.7, commit=c6e902a43a, pid=12                                                                                                                               
[2024/11/15 11:24:38] [ info] [storage] ver=1.5.2, type=memory, sync=normal, checksum=off, max_chunks_up=128                                                                                                      
[2024/11/15 11:24:38] [ info] [cmetrics] version=0.9.5                                                                                                                                                            
[2024/11/15 11:24:38] [ info] [ctraces ] version=0.5.5                                                                                                                                                            
[2024/11/15 11:24:38] [ info] [input:opentelemetry:opentelemetry.0] initializing                                                                                                                                  
[2024/11/15 11:24:38] [ info] [input:opentelemetry:opentelemetry.0] storage_strategy='memory' (memory only)                                                                                                       
[2024/11/15 11:24:38] [ info] [input:opentelemetry:opentelemetry.0] listening on 0.0.0.0:4318
...

but the pod and service ports configs are not updated, thus the port is not properly exposed

pod ⬇️

...
    name: fluent-bit                                                                                                                                                                                              
    ports:                                                                                                                                                                                                        
    - containerPort: 2020                                                                                                                                                                                         
      name: metrics                                                                                                                                                                                               
      protocol: TCP                                                                                                                                                                                               
    resources:         
...

service ⬇️

apiVersion: v1
kind: Service
metadata:
  labels:
    app.kubernetes.io/name: fluent-bit
  name: fluent-bit
...
spec:
  ports:
  - name: metrics
    port: 2020
    protocol: TCP
    targetPort: 2020
  selector:
    app.kubernetes.io/name: fluent-bit
...
How did you install fluent operator?

i've used this chart https://github.com/fluent/fluent-operator/tree/master/charts/fluent-operator

Additional context

No response

Lingua principale
Go
Stelle
689
Fork
333
Merge medio
2g 14h
PR unite (30g)
41

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fluent/fluent-operator

Tutte le issue di fluent/fluent-operator

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.