Hi all,
I am encountering an issue where I get the error mkdir /tmp/loki/
on startup for the ingester
, index-gateway
, and compactor
components when installing Loki v3.4.2 with the Lokistack CRD and Loki Operator v0.8.0.
This issue has been mentioned in a couple of existing GitHub issues:
One of the issues suggests patching the StatefulSets with an initContainer to add the missing permissions. This approach works, but only if I also update the lokistack
CR to use spec.managementState: Unmanaged
. However, I feel like this defeats the purpose of using the operator in the first place.
I’ve looked into the Loki Helm chart, and I see that each component supports specifying initContainers. Unfortunately, this isn’t the case for the Lokistack CRD.
Has anyone found a fix for this issue that doesn’t involve patching and setting managementState
to Unmanaged
?
Also, is the Loki Operator actively maintained? I see new commits, but I’m wondering if there are any ongoing updates to address issues like this.
Thanks in advance for any insights!