DEV Community

Cover image for How to Install K9s on Ubuntu: A Step-by-Step Guide
Dmitry Romanoff
Dmitry Romanoff

Posted on

64

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

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay