diff --git a/k8s/lgtm.yaml b/k8s/lgtm.yaml index a7ea377..8887fff 100644 --- a/k8s/lgtm.yaml +++ b/k8s/lgtm.yaml @@ -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: {}