innobead / kubefire

KubeFire 🔥, creates and manages Kubernetes Clusters using Firecracker microVMs
Apache License 2.0
511 stars 36 forks source link

kubefire create cluster demo fails - kubelet.service 404 #87

Open mjbright opened 1 year ago

mjbright commented 1 year ago

Describe the bug Running kubefire cluster create demo fails when attempting to enable kubelet.service

The problem seems to be the hardcoded URL https://raw.githubusercontent.com/kubernetes/release/v0.16.3/cmd/kubepkg/templates/latest/deb/kubelet/lib/systemd/system/kubelet.service which returns a 404 Not Found (apparently - not actually seen in the log)

To Reproduce To reproduce kubefire create cluster demo

Observe the curl command curl -sSL https://raw.githubusercontent.com/kubernetes/release/v0.16.3/cmd/kubepkg/templates/latest/deb/kubelet/lib/systemd/system/kubelet.service

Try this in a browser or command line - not 404 Not Found.

Expected behavior At this precise step, then kubelet service should be enabled. Bottom line is of course that a kubeadm cluster should be successfully created.

Environment

Additional context Looks like bitrot of the kubernetes/release repo ... structural change ?

Specifying k3s as bootstrapper creates a k3s based cluster successfully, presumably this problem touches only the default kubeadm bootstrapper.

sousmangoosta commented 1 year ago

I got same issue, I edited file .kubefire/bootstrappers/v0.3.10/kubeadm/v1.28.4.yaml to bypass I changed kube_release_version: v0.16.4 to kube_release_version: v0.16.2 for version: v1.28.4 They removed kubepkg on version v0.16.3