Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I install kubectx on Ubuntu Linux 20.04?

I would like to install kubectx on Ubuntu 20.04. I couldn't find any info on how to do it. Any comment is much appreciated. Thanks!

like image 573
desdemona Avatar asked Sep 06 '21 07:09

desdemona


People also ask

How do I use kubectl in Kubernetes?

Kubectl is a kubernetes command line tool. It helps to run command against Kubernetes clusters. Using kubctl we can deploy application,manage cluster resources, inspect and view logs. Eksctl is also similar to kubectl and a command line tool which is used to create & managing kubenetes cluster. Step 1: Update the system. Step 2: Install Kubectl.

How to install kubectx on Debian?

If you want find completely install kubectx guide, you need to go to this github page. You can use an installation for Debian. APT stands for Advanced Package Tool. It is a set of core tools inside Debian and Ubuntu Linux system. You can use the apt command to install apps, delete or remove apps, keep Ubuntu/Debian server up to date and more.

Is there a kubectx snap package for Ubuntu?

There is a kubectx snap package in all currently supported versions of Ubuntu: I successfully installed ctx and ns as kubectl plugin using Krew. There's one minor catch. You won't use the commands like this: To install kubectx without having to edit your /etc/apt/sources.list:

How do I install Kubernetes on Linux?

Open a terminal and type the following commands on both the master and the worker node to install Docker: Once Docker has finished installing, use the following commmands to start the service and to make sure it starts automatically after each reboot: Now we are ready to install Kubernetes.


1 Answers

This package contains in deb http://ftp.de.debian.org/debian buster main repo which is not available in ubuntu.

First you need to do add this to /etc/apt/sources.list like below

#for kubectlx
deb [trusted=yes] http://ftp.de.debian.org/debian buster main

Then run

sudo apt-get update

Then you can install using this cmd.

sudo apt install kubectx
like image 172
cdev Avatar answered Sep 21 '22 08:09

cdev