#1297 /opt for kubernetes client question
Opened 8 months ago by buckaroogeek. Modified 8 months ago

There is a need to allow multiple versions of the kubernetes command line client (kubectl) to be installed on a Fedora machine used by a kubernetes cluster administrator. I am currently maintaining the kubernetes rpms for Fedora.

To meet this need I am considering an option to support multiple packages for the kubernetes client that can be installed concurrently. For example kubernetes1.27-client and kubernetes1.28-client. Packaging guidelines recommend Environment Modules as the mechanism to allow users to select between different versions of the same capability in a session.

Would /opt/fedora/kubernetesxxx-client where xxx is a release version like 1.27 or 1.28 be the appropriate file system location for this use case? I am thinking each ./kubernetesxxx-client directory would have ./bin, ./man1, ./bash-completion, ./fish-completion, ./zsh-completion subdirectories.

If not /opt/fedora - what would be the appropriate location be?

Many thanks

Brad


And the appropriate environment module file would be placed at %{_modulesdir} for each client.

best regards

Login to comment on this ticket.

Metadata