gnomock
gnomock copied to clipboard
Bug: K3s preset doesn't work on GitHub Actions
Describe the bug For a while I've been using Gnomock to test an application which have been working very well. Specifically I'm using the K3s preset to deploy a cluster and launch some pods. However last week my tests started to fail and while I have been debugging high and low I can't figure out what's wrong. I also tried to check out an older version of my code, which previously passed without problems, but now doesn't.
After looking into the K3s cluster I can see the pods fail to start and have the below message on them
0/1 nodes are available: 1 node(s) had untolerated taint {node.kubernetes.io/disk-pressure: }. preemption: 0/1 nodes are available: 1 Preemption is not helpful for scheduling.
It should be noted that the test runs just fine on my own laptop and the same when my colleagues run it locally. So the problem is only present when we run on GHA.
Additional context The application is open source and the test in question can be found here.
The K3s cluster is started here and I did try various versions of K3s as well.
A recent CI run can be found here.
I tried to find the preset images on Docker Hub but could only find a references on this page to https://hub.docker.com/repository/docker/orlangure/k3s but the images seems quite old so I suspect that repository ins't used anymore.
On this page I also see some K3s versions listed but they also seems out of date.