Skip to content

extraVolumeMounts in opentelemetry-collector chart is not creating mount path #1590

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

Open
shnigam2 opened this issue Mar 22, 2025 · 0 comments

Comments

@shnigam2
Copy link

shnigam2 commented Mar 22, 2025

When using extraVolume and extraVolumeMounts mounts is not getting created

            extraVolumes:
               - name: dynatrace-token
                 secret:
                   secretName: dt-secret
                   items:
                    - key: DT_API_TOKEN
                      path: DT_API_TOKEN
            extraVolumeMounts:
              - name: dynatrace-token
                mountPath: /etc/dynatrace
                readOnly: true

when debugging into collector pod

kubectl debug -it dynatrace-collector-opentelemetry-collector-agent-5vk9b --image=busybox:1.28 --target=opentelemetry-collector -n dynatrace
Targeting container "opentelemetry-collector". If you don't see processes from this container it may be because the container runtime doesn't support this feature.
Defaulting debug container name to debugger-wwzh9.
If you don't see a command prompt, try pressing enter.

/ # ls -ld /etc/dynatrace
ls: /etc/dynatrace: No such file or directory
/ # 

When describing pod it is showing mounts and volumes

Volumes:  
dynatrace-token:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  dt-secret
    Optional:    false

    Mounts:
      /conf from opentelemetry-collector-configmap (rw)
      /etc/dynatrace from dynatrace-token (ro)
      /hostfs from hostfs (ro)
      /var/lib/docker/containers from varlibdockercontainers (ro)
      /var/log/pods from varlogpods (ro)
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-rqj5k (ro)
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

1 participant