2

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?

1 Answers1

2

Services and command-line interfaces in the Kubernetes ecosystem are typically developed in the Go programming language with static linking.

This doesn't fit too well with the Deb packaging system of Ubuntu, i.e. the official Ubuntu repos.

Instead, Ubuntu provides this software in the form of Snap packages which are self-contained (comes with all dependencies) and can be "rigorously confined" in the sense that these programs can be isolated completely from the operating system.

This also means that Snap packages can be updated more frequently because the Ubuntu software maintenance team doesn't need to be involved:

However, it is up to the publisher of the snap to ensure that issues in dependencies are addressed with newer versions of the snap because snaps are build and published directly by the upstream vendor of the software.

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

$ sudo snap install kubectl --classic

Note that classic mode mode gives this Snap package full access to your system like a traditional package.

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.

malthe
  • 131
  • 4
karel
  • 122,292
  • 133
  • 301
  • 332