grafana / helm-charts

Apache License 2.0
1.62k stars 2.25k forks source link

Tempo: Error: container has runAsNonRoot #1081

Open batazor opened 2 years ago

batazor commented 2 years ago

I try running the last version tempo charts, but get an error:

$> kubectl -n grafana describe po grafana-tempo-0

Events:
  Type     Reason     Age                    From               Message
  ----     ------     ----                   ----               -------
  Normal   Scheduled  3m28s                  default-scheduler  Successfully assigned grafana/grafana-tempo-0 to node3
  Normal   Pulling    3m28s                  kubelet            Pulling image "grafana/tempo:1.3.2"
  Normal   Pulled     3m21s                  kubelet            Successfully pulled image "grafana/tempo:1.3.2" in 6.606207777s
  Warning  Failed     2m27s (x6 over 3m21s)  kubelet            Error: container has runAsNonRoot and image will run as root (pod: "grafana-tempo-0_grafana(ee923a76-6eb3-4c7b-b2e0-597aef6d24c5)", container: tempo)
  Normal   Pulled     2m27s (x6 over 3m21s)  kubelet            Container image "grafana/tempo-query:1.0.1" already present on machine
  Warning  Failed     2m27s (x6 over 3m21s)  kubelet            Error: container has runAsNonRoot and image will run as root (pod: "grafana-tempo-0_grafana(ee923a76-6eb3-4c7b-b2e0-597aef6d24c5)", container: tempo-query)
  Normal   Pulled     2m27s (x5 over 3m20s)  kubelet            Container image "grafana/tempo:1.3.2" already present on machine

How can we fix this problem? Maybe can we add the section securityContext for this chart?

batazor commented 2 years ago

I see that such PR #1076 has already been created