jaegertracing / jaeger-operator

Jaeger Operator for Kubernetes simplifies deploying and running Jaeger on Kubernetes.
https://www.jaegertracing.io/docs/latest/operator/
Apache License 2.0
997 stars 340 forks source link

[Bug]: jaeger-operator v1.57.0 query.base-path is broken when strategy is production and storage.type is memory #2593

Open yanqi27 opened 4 weeks ago

yanqi27 commented 4 weeks ago

What happened?

I tried to deploy a jaeger instance with strategy=production and custom query.base-path.

apiVersion: jaegertracing.io/v1
kind: Jaeger
metadata:
  name: jaeger
spec:
  strategy: production
  query:
    options:
      query:
        base-path: /jaeger

I couldn't access the query UI through web browser. I notice two things that may explain why it doesn't work. [1] The jaeger container command argument misses --query.base-path=/jaeger.

...
spec:
  containers:
  - args:
    - --sampling.strategies-file=/etc/jaeger/sampling/sampling.json
    env:
    - name: SPAN_STORAGE_TYPE
      value: memory

[2] The ingress doesn't have the expected rules for path=/jaeger.

...
spec:
  defaultBackend:
    service:
      name: jaeger-query
      port:
        number: 16686

Steps to reproduce

  1. kubectl apply -f jaeger.yaml (contents shown in the above section)
  2. review the generated deployment and ingress. (also shown in the above section)

Expected behavior

The command argument includes --query.base-path=/jaeger

Relevant log output

No response

Screenshot

No response

Additional context

No response

Jaeger backend version

No response

SDK

No response

Pipeline

No response

Stogage backend

No response

Operating system

No response

Deployment model

No response

Deployment configs

No response

iblancasa commented 4 weeks ago

Hi @yanqi27. Thanks for reporting. Would you like to send a pull request?

yanqi27 commented 4 weeks ago

@iblancasa This happens only for storage.type==memory from my test. Therefore, it might be a minor issue. Though I am interested in fixing it, I am not familiar with the repo and I am currently tied with other works.