It does not seem very clear when I install k3d, what version of k3s will be used.
Is it always latest? or is it something that can be specified?
If the version of k3s is pinned per k3d release, it might be nice to list/document/add to release notes so that users don't have to search multiple repos to find out what version is being used.
Hi @dtomcej , thanks for opening this issue.
I know, that it's unfortunately not very clear at first glance, which image of k3s will be used.
We cannot use the latest tag, since that one is not being maintained in the k3s repo (we had some issues with this before).
Because of that, we decided to "bake" the most recent release version of k3s into k3d code at build time. But apart from just creating a cluster there's currently no way to see that baked-in version of k3s.
However, you can specify, which image of k3s you want to use, e.g. k3d create --image rancher/k3s:v0.10.1.
I can add this to the --help output of k3d :+1:
No, you cannot see it in code, as it's being injected at build time.
If you want to ensure, that you're always using the same version, you can choose it using the --image flag.
Thanks!
Maybe a possible enhancement for a future release would be to pin in code.
For now, we will use the image flag :)
Thanks!
Sure thing, the only problem with this is possible human error, where one forgets to update the version in code before creating the new release, which then cannot be updated, since people might end up with the same version of k3d using a different version of k3s :grimacing:
FYI: I just pushed https://github.com/rancher/k3d/commit/18a3db3d9b335ab50d23b4bb1fa728b8422823df which adds a k3d version command which will output both the k3d and the k3s version like this:
$ k3d version
k3d version v1.3.4-2-ge22299f
k3s version v0.10.1