Grafana starts but I cant choose Loki as data-source. The pod ‘loki-0’ does not start and under the events of ‘kubectl describe pod loki-0’ I get:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 19s (x2 over 19s) default-scheduler 0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
Has anyone else experienced this and can help me, to get this pod running?
I just ran your kubectl command on a DigitalOcean cluster and received the same error.
Let’s try and pin this down, shall we? Where are you deploying to? And what K8s version? LAstly, can you inspect your PVC? Run kubectl get pvc and grab the PVC name and describe it. It should be: kubectl describe pvc storage-loki-0
With this command, my message reads: storageclass.storage.k8s.io "standard" not found
just tested this on minikube and a GKE cluster and the volume successfully mounted in both cases. Everything provisioned succesfully. I’ll be very curious to hear where you are deploying to…
Hey @mattabrams,
first of thank you for replying and looking into it!
Since I first wanted to test my solution before deploying it to a test server. I tried to deploy it on my local k8s cluster. It is hosted by Docker Desktop since I am working on a Windows-machine and do not have have the rights to enable WSL2.
So let’s get into version-details:
Win-Ver: 1909
Win-Build: 18363.1316
Docker-Engine: v20.10.5
Kubernetes: v1.19.7
Helm: v3.5.3
Running kubectl get pvc does show me that storage-loki-0 exists but is pending.
Describe does print the same error you are describing in your first message:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning ProvisioningFailed 24h (x71 over 25h) persistentvolume-controller storageclass.storage.k8s.io "standard" not found
Warning ProvisioningFailed 43s (x8 over 7m43s) persistentvolume-controller storageclass.storage.k8s.io "standard" not found
The command failed for me on Docker Desktop K8s as well. This appears to be a known issue with Docker Desktop. If you are looking to play/develop Kubernetes on your local machine, I’d suggest giving Minikube a try, or seeing if Grafana Cloud suits your needs.