https://rancher.com/ logo
Title
r

ripe-yacht-78857

12/27/2022, 10:54 AM
Hi Folks, We use k3d-action@v2 GitHub action in our CI for https://github.com/kanisterio/kanister. And recently, we have been getting into the problem that was already raised as an issue in k3s repo. I tried to use the flags that are recommended in the issue discussion but they don't seem to be working for us. After looking further we got to know that the same issue is fixed by this PR in k3s and merged on Oct 6. Since I don't see any k3d release after Aug 29, is it possible to consume the k3s version, that was released after Oct with the mentioned fix, using k3d? Thank you.
w

wide-garage-9465

12/27/2022, 12:09 PM
Hey 👋 You can use the --image flag to choose any k3s version image you like to use with k3d. It's also shown in the action docs: https://github.com/marketplace/actions/absaoss-k3d-action#version-mapping-and-override
r

ripe-yacht-78857

12/27/2022, 12:13 PM
thank you. I will try that out.
so this is what I tried
AbsaOSS/k3d-action@v2

args: >-
          --agents 3
          --image <http://docker.io/rancher/k3s:v1.24.7+k3s1|docker.io/rancher/k3s:v1.24.7+k3s1>
and I got into below problem
ERRO[0001] Failed Cluster Creation: failed setup of server/agent node k3d-kanister-run-helm-test-server-0: failed to create node: runtime failed to create node 'k3d-kanister-run-helm-test-server-0': failed to create container for node 'k3d-kanister-run-helm-test-server-0': docker failed to create container 'k3d-kanister-run-helm-test-server-0': Error response from daemon: invalid reference format
it looks like something is wrong with the image format.
w

wide-garage-9465

12/27/2022, 2:38 PM
Change the + for a -
K3s version tags have a + and that's changed when the images are uploaded to dockerhub, as + is not allowed there
r

ripe-yacht-78857

12/27/2022, 2:39 PM
ok, thank you.
Hi @wide-garage-9465 It is working after changing the image tag, thank you for the help.