grafana / docker-otel-lgtm

OpenTelemetry backend in a Docker image
Apache License 2.0
319 stars 59 forks source link

fix: pod startup on openshift #133

Closed frzifus closed 2 weeks ago

frzifus commented 1 month ago

Closes #132

Testing:

oc apply -f https://raw.githubusercontent.com/frzifus/docker-otel-lgtm/fd2e5b1687a3d86d27ad04384f2740f1b2a4154d/k8s/lgtm.yaml
╭─     ~/gi/go/o/docker-otel-lgtm/k8s    main *1 +1 ?3
╰─❯ oc version                 
Client Version: 4.16.3
Server Version: 4.16.5
Kubernetes Version: v1.29.6+aba1e8d
╭─     ~/gi/go/o/docker-otel-lgtm/k8s    openshift *1 ?3
╰─❯ oc get pods      
NAME                    READY   STATUS    RESTARTS   AGE
lgtm-669d9bf776-ljq8m   1/1     Running   0          7m18s
zeitlinger commented 1 month ago

is there a way to fix this problem without adding mounts at all? just to keep it simple

frzifus commented 1 month ago

I tried to add a mount for / but the problem is, in that case no files exists. ^^

zeitlinger commented 1 month ago

ok - can you add a comment in the file explaining the reason?

frzifus commented 3 weeks ago

added a comment @zeitlinger :smiley: