Error running Solace under Kubernetes on WSL

Hello,
I have been struggling to get Solace running under k8s on WSL.
I have tried using the Helm templates here: https://github.com/SolaceProducts/pubsubplus-kubernetes-quickstart and using the Docker compose template here: https://github.com/SolaceLabs/solace-single-docker-compose

In both cases the container stops with the Unable to raise event; rc(would block) error. I have tried all sorts of things but nothing seems to work.

Using the Docker compose template, the container runs without any problems.

I have to report some progress - it works if the storage:persistent value is set to false in the helm template.

@TomF : I was hoping someone from Solace could give me some insight into this.

Hi @chewymints k8s isn’t really my area of expertise which is why I’ve refrained from commenting. Let me see if someone can help.

Hi @chewymints could we get more info on your K8S deployment? Is it Minikube running on WSL? Do you have a storage provider? If so which one?
Which version of WSL are you using? Which distro? Is it required that you must make this work in WSL or could you use a VM?

Can you please provide the output of “kubectl get storageclass”. Unless you set storage.useStorageClass in your values.yaml file we will be using the storage class marked as “default” . Looking at this: Kubernetes Volumes not correctly mounted with WSL2 · Issue #5325 · docker/for-win · GitHub you may have to edit values.yaml → storage.useStorageClass: local-storage

@amackenzie
Apologies for the delayed response. I have just managed to get back to this.
The k8s deployment is a test deployment for now. I am playing around with Solace and k8s to see what is possible. For now, it’s just Docker Desktop with k8s enabled and managed using CLI on WSL. I have also verified that the error happens without WSL enabled as well.

@KenBarr
The output is below:

kubectl get storageclass
NAME                 PROVISIONER          AGE
hostpath (default)   docker.io/hostpath   24h