I'm trying to rebuild k3d to use the latest versio...
# k3d
h
I'm trying to rebuild k3d to use the latest version of k3s (v1.30.1+k3s1) I updated the tag in the Makefile to get the latest tag of K3S and verified that its returning the desired value. The k3d binary does build and
Copy code
bin/k3d --version
Reports:
k3d version 85347bdc
k3s version v1.30.1-k3s1 (default)
But when I run
Copy code
./bin/k3d cluster create mycluster
I get
Copy code
INFO[0000] Prep: Network
INFO[0000] Created network 'k3d-mycluster'
INFO[0000] Created image volume k3d-mycluster-images
INFO[0000] Starting new tools node...
ERRO[0001] Failed to run tools container for cluster 'mycluster'
INFO[0001] Creating node 'k3d-mycluster-server-0'
INFO[0001] Creating LoadBalancer 'k3d-mycluster-serverlb'
ERRO[0002] Failed Cluster Creation: error creating loadbalancer: runtime failed to create node 'k3d-mycluster-serverlb': failed to create container for node 'k3d-mycluster-serverlb': docker failed to pull image 'ghcr.io/k3d-io/k3d-proxy:85347bdc': docker failed to pull the image 'ghcr.io/k3d-io/k3d-proxy:85347bdc': Error response from daemon: manifest unknown
ERRO[0002] Failed to create cluster >>> Rolling Back
INFO[0002] Deleting cluster 'mycluster'
ERRO[0002] docker failed to remove the container 'k3d-mycluster-serverlb': Error response from daemon: No such container: k3d-mycluster-serverlb
INFO[0002] Deleting cluster network 'k3d-mycluster'
INFO[0003] Deleting 1 attached volumes...
FATA[0003] Cluster creation FAILED, all changes have been rolled back!
I would appreciate any pointers on how to do local testing
b
afaik, you don't need to build the binary unless the
--image
supplied while creating cluster fails.
Can get latest version from
Copy code
version=$(curl -s <https://update.k3s.io/v1-release/channels|https://update.k3s.io/v1-release/channels> | jq -r '.data[]|select(.id=="latest")|.latest')
version=${version/+/-}
Then,
k3d cluster create test --image rancher/k3s:$version
h
Many thanks, much appreciated
👍 1