How to Install K9s on Ubuntu: A Step-by-Step Guide

dm8ry

Dmitry Romanoff

Posted on October 21, 2024

How to Install K9s on Ubuntu: A Step-by-Step Guide

K9s is a powerful command-line tool that helps you manage Kubernetes clusters with ease. It provides a terminal-based UI to interact with your clusters, making it easier to monitor and troubleshoot your applications. In this article, we’ll walk you through the installation process of K9s on Ubuntu.

How to Install K9s on Ubuntu: A Step-by-Step Guide

Prerequisites

Before we begin, ensure you have the following:

  • A running instance of Ubuntu (any recent version should work).
  • Administrative (sudo) access to install packages.
  • A Kubernetes cluster set up and accessible.

Step 1: Download the K9s Debian Package

First, you need to download the latest K9s Debian package. Open your terminal and run the following command:

wget https://github.com/derailed/k9s/releases/download/v0.32.5/k9s_linux_amd64.deb
Enter fullscreen mode Exit fullscreen mode

This command fetches the Debian package for K9s version 0.32.5. You can check for the latest version on the K9s GitHub releases page [https://github.com/derailed/k9s/releases] and replace the version in the URL if necessary.

Step 2: Install K9s

Once the download is complete, you can install K9s using the following command:

sudo apt install ./k9s_linux_amd64.deb
Enter fullscreen mode Exit fullscreen mode

This command installs the K9s package on your system. The ./ before the package name indicates that the file is in the current directory.

Step 3: Clean Up

After installation, you can remove the downloaded .deb file to save space:

rm k9s_linux_amd64.deb
Enter fullscreen mode Exit fullscreen mode

This step is optional but recommended if you want to keep your system clean.

Step 4: Run K9s

Now that K9s is installed, you can start it by simply typing:

k9s
Enter fullscreen mode Exit fullscreen mode

You should see the K9s interface, which allows you to navigate through your Kubernetes resources, view logs, and perform various operations on your clusters.

Conclusion

With this tool, managing your Kubernetes clusters becomes significantly easier and more efficient. Explore its features and streamline your workflow in Kubernetes.

For more information on using K9s, you can refer to the official K9s documentation.

How to Install K9s on Ubuntu: A Step-by-Step Guide

💖 💪 🙅 🚩
dm8ry
Dmitry Romanoff

Posted on October 21, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related