Score:1

Why is Kubernetes K8s not in official Ubuntu repos?

us flag

I am aware of the more generic version of this question, found here:

Why is some software not in the official Ubuntu repositories?

However, I would like to ask about Kubernetes in particular.

I am wonder why some very popular package does not add in official Ubuntu repo? is there any way to add this to official repo?

For example I found kubectl in Debian repo but I do not know why found this in universe?

muru avatar
us flag
The Golang ecosystem is not very friendly to Debian/Red Hat packaging, and for complex systems like k8s with rapid release cycles (multiple times a year) being frozen into an LTS system like Ubuntu or Debian really doesn't make sense. Most people using K8s wouldn't want that. Put simply, there's no actual market, aside from the random hobbyist.
Score:1
sa flag

You can install the kubectl snap package in all currently supported versions of Ubuntu by running the following command:

sudo snap install microk8s --classic
sudo snap install kubectl --classic
sudo snap install kubelet --classic
sudo snap install kubeadm --classic

snap packages are available for all versions of kubectl from 1.5 to 1.28. Dozens of other kubernetes snap packages are also available. To list them all run snap find kubernetes .

sorosh_sabz avatar
us flag
Why we cannot use `apt install` ?
Artur Meinild avatar
vn flag
I believe `kubectl` isn't actually Kubernetes itself, but only a management interface. Whereas `microk8s` is a single-node Kubernetes instance.
sorosh_sabz avatar
us flag
But I need `kubeadm`, `kubectl`, `kubelet`, ... package separately in Debian form, for installing large scale Kubernetes in ubuntu servers
karel avatar
sa flag
kubeadm, kubectl, and kubelet are all packaged as snap packages in Ubuntu. I revised my answer accordingly.
sorosh_sabz avatar
us flag
@karel Ok, My question is why Ubuntu does not provide these packages in debian form?
karel avatar
sa flag
Because Kubernetes is being aggressively developed most users prefer to install recent versions. `apt` doesn't update as aggressively as snap, so packages with a fast update schedule like Firefox are packaged as snap packages in Ubuntu. That's good for Ubuntu users like me who sometimes need the latest version of a software.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.