I would like to switch to Silverblue for the Fedora 35 release but my different tests to do a clean install of Kubernetes failed and I didn’t find any resources about it. The goal of the install is local development.
How do you install Kubernetes on Silverblue ? Any pointers would be appreciated.
Hello @jakfrost .
Thanks for all these resources. I already had some of them and k3s seemed to be the best candidate. But I hoped to find to some resources for things like minikube or kind that have features that help developers.
I will also use podman but I also want to test my manifest and helm charts, so I need a local Kubernetes installation. I don’t how Openshift works but I will read about it with your links. Thanks!
minikube works on silverblue, install moby-engine using rpm-ostree install moby-engine after that reboot your system. After reboot, download minikube binary and place it into your ~/.local/bin directory and change chmod to be able to execute it, and after that start the minikube using minikube start --vm-driver=docker and it will work without issues
And also if you have BTRFS enabled, you have to create a custom cluster-config.yaml in order to mount the host volume to the nodes, else will fail on creation.
Then create the cluster with your cluster-config.yaml file:
kind create cluster --config=cluster-config.yaml
That should do it
ps. What’s best: you don’t need to install any additional stuff to get your cluster up and running, just the kind binary and that’s it. no rpm-ostree, no nothing…
The latest minikube (v1.23.2 at the time of this writing) works great with the kvm2 driver on Silverblue if you install virt-manager libvirt-client packages in an rpm-ostree overlay.
Then from there you need to add your user to be able to run virtual machines in polkit:
Create the file /etc/polkit-1/rules.d/50-org.libvirt.unix.manage.rules and place the following inside, replacing the string USERNAME with the actual username you want to use: