Hack_loki_operator step-by-step guide does not work

Hi Everyone,

i am new to grafan loki and i tried to deploy loki with loki operator by using hack_loki_operator guideline.

I run into the same problem in 2 different kubernetes clusters, when i apply hack/lokistack_dev.yaml. The deployments are in pending status, stating:

Waiting for deployment “lokistack-dev-distributor” rollout to finish: 0 of 1 updated replicas are available…

All Pods (comapctor, distributor, index-gateway, ingester, querier, query-frontend) are in Pending status or ContainerCreating status.

I have set lokiStackGateway to false, since we are not using multi-tenancy.

E.g. one of the log status from compactor states:

0/4 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/4 nodes are available: 4 Preemption is not helpful for scheduling…

For distributer it is different error:

MountVolume.SetUp failed for volume “lokistack-dev-distributor-http” : secret “lokistack-dev-distributor-http” not found

Unable to attach or mount volumes: unmounted volumes=[lokistack-dev-ca-bundle lokistack-dev-distributor-http lokistack-dev-distributor-grpc], unattached volumes=, failed to process volumes=: timed out waiting for the condition

Where are the additional settings to configure the deployment correctly, or what excactly did i do wrong?

Any help is much appriciated. Thanks in advance

I could fix the problem with Distributer by: deploying cert manager and certificates, as described in quickstart.sh certificates() function.

But the problem with volume claims remains.

Fixed the problem with volume claims. Had to change the storage class to “default” instead of “standard”