-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Container Stuck in ContainerCreating | no runtime for "spin" is configured #209
Comments
Update It works fine for applications without autoscaling. When I apply the hpa example, I still have the same problem. Does anyone know why this is happening. |
@kate-goldenring had issues scaling on k3s that looked like they were tied to concurrent pull limits in the kubelet when scaling up by more than a couple of replicas at a time. I haven't ever dug in further to see if they were easily fixable (or specifically related to SpinKube) though. If you could attach kubelet logs they would be super helpful for seeing if it's the same issue and further triage. Thanks 🎉 |
I have done some further test on a new cluster and documented exactly the way i got normal spin apps without scling working
Afterward, I was able to run the example. The next comment will describe the scaling part |
when i manually check the pods with Kubectl, i get a values
When I do kubectl get hpa i also get values.
After tying the ingress i noticed that it was unable to sclae and when I removed and re added the hpa i got
I hope you can work with this info When I tried 5 concurrent invocations, the result was CPU%1 all the time. I also tried to change the interval of the metric server but this also didn't fix anything I can confirm that the communication between the metric server and spin apps does not work. because when i set the pods under loads nothing happens. and it stays at 1% |
@megamxl as @endocrimes mentioned I had some issues with k3s. One was the one you described. The shim wasn't being used until i restarted the k3s service (which contains containerd); however, a change was added to the node installer to do The other issue i was experiencing was Pods restarting due to For HPA, I believe i also had delays on calculating CPU usage with it showing |
closing this as it's a cluster configuration issue, more than an operator issue that we can act on - but definitely something to keep in mind when using k3s |
Running into (what I think is) this issue with a k3s setup as well. Going into /var/lib/rancher/rke2/agent/etc/containerd/config.toml.tmpl on the nodes gives something like this:
Note the runtime_type definition for spin at the end. Is this correct? Substituting it for: [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.spin] Doesn't seem to work. This k3s cluster was setup using rke2. |
@chokosabe that looks correct -- it should use the v2 shim as is specified in the config. Are you getting the no runtime for "spin" is configured error? Is this the first time you have installed the shim on these nodes? Can you confirm that the shim exists at |
Raised it here as well: #289 Resolved now. |
This issue is already resolved, but I don't know where to share this information to fix it. I want to share this here that other stuck at this can get help when facing this issue.
kubectl describe pods
The failure was: Unknown desc = failed to get sandbox runtime: no runtime for "spin" is configured
I fixed it with a comment from the Ferymon Discord server, which isn't' that easy to get crawled by a serch engine.
The fix is from @stevesloka on Discord.
edit this file: /var/lib/rancher/k3s/agent/etc/containerd/config.toml.tmpl on each host
add this
https://docs.k3s.io/advanced?_highlight=config.toml.tmp#configuring-containerd
I rebooted, than all nodes and then i was finally able to deploy apps.
The text was updated successfully, but these errors were encountered: