grafana / tempo-operator

Grafana Tempo Kubernetes operator
https://grafana.com/docs/tempo/latest/setup/operator/
GNU Affero General Public License v3.0
61 stars 30 forks source link

Invalid statefulset when monolithic is deployed with receiver TLS enable both protocols #976

Closed rubenvp8510 closed 3 months ago

rubenvp8510 commented 3 months ago

In monolithic deployment, if we enable TLS on the OTLP- GRPC and OTLP-HTTP protocols the statefulset generated by the operator is invalid and cannot be ready due this error:

  Type     Reason        Age                 From                    Message
  ----     ------        ----                ----                    -------
  Warning  FailedCreate  29s (x12 over 40s)  statefulset-controller  create Pod tempo-simplest-0 in StatefulSet tempo-simplest failed error: Pod "tempo-simplest-0" is invalid: [spec.volumes[4].name: Duplicate value: "custom-ca", spec.volumes[5].name: Duplicate value: "custom-cert", spec.containers[0].volumeMounts[4].mountPath: Invalid value: "/var/run/ca-receiver": must be unique, spec.containers[0].volumeMounts[5].mountPath: Invalid value: "/var/run/tls/receiver": must be unique]

CR used:

apiVersion: tempo.grafana.com/v1alpha1
kind: TempoMonolithic
metadata:
  name: simplest
spec:
  jaegerui:
    enabled: true
  ingestion:
    otlp:
      grpc:
        enabled: true
        tls:
          enabled: true
          caName: custom-ca
          certName: custom-cert
      http:
        enabled: true
        tls:
          enabled: true
          caName: custom-ca
          certName: custom-cert