Skip to content

Commit

Permalink
fix: pod startup on openshift
Browse files Browse the repository at this point in the history
Signed-off-by: Benedikt Bongartz <[email protected]>
  • Loading branch information
frzifus committed Oct 30, 2024
1 parent b2bc9f7 commit 12fa5d9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions k8s/lgtm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,21 @@ spec:
command:
- cat
- /tmp/ready
# NOTE: By default OpenShift does not allow writing the root directory.
# Thats why the data dirs for grafana, prometheus and loki can not be
# created and the pod never becomes ready.
# See: https://github.com/grafana/docker-otel-lgtm/issues/132
volumeMounts:
- name: grafana-data
mountPath: /otel-lgtm/grafana/data
- name: loki-storage
mountPath: /loki
- name: p8s-storage
mountPath: /data/prometheus
volumes:
- name: grafana-data
emptyDir: {}
- name: loki-storage
emptyDir: {}
- name: p8s-storage
emptyDir: {}

0 comments on commit 12fa5d9

Please sign in to comment.