How to install Kubernetes client on Ubuntu Linux 18.04 desktop machine?

How to install Kubernetes client on Ubuntu Linux 18.04 desktop machine?

    Here, we install Kubernetes client on the host machine, so that a system user can connect and operate the Kubernetes cluster. Later, we have to create a Kubernetes user with proper credentials to operate the Kubernetes cluster using the installed client.

# Add Kubernetes official GPG key to package manager.
$ curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

# Add Kubernetes repository to package manager source list.
$ echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list

# Check for package updates.
$ sudo apt update

# Install Kubernetes client package from repository.
$ sudo apt install kubectl

# Check Kubernetes client version.
$ kubectl version --client

    • Related Articles

    • How to install Docker on Ubuntu Linux 18.04 desktop machine?

      Docker is available in two editions: Community Edition (CE) and Enterprise Edition (EE). Here, we'll proceed with Docker CE, the Community Edition. To do a clean installation, you must first remove existing Docker installation, if anything found. And ...
    • How to install VirtualBox on Ubuntu Linux 18.04 desktop machine?

      If you have a host machine that runs Ubuntu Linux operating system, then you need to install VirtualBox to build and run virtual machines. Now, let's see how to do VirtualBox installation on Linux host machine. # Install required system packages. $ ...
    • How to install Vagrant on Ubuntu Linux 18.04 desktop machine?

      If you have a host machine that runs Ubuntu Linux operating system, then you need to install Vagrant to automate and manage virtual machines. Now, let's see how to do Vagrant installation on Linux host machine. # Download Vagrant. $ wget ...
    • How to install Git on Ubuntu Linux 18.04 desktop machine?

      Here, we install Git using system package manager. This is most recommended way of installing Git on Ubuntu Linux operating system. No matter how we install Git, its just a command line utility. Once the installation is done, you need to verify Git ...
    • How to install Terraform on Ubuntu Linux 18.04 desktop machine?

      Let's install Terraform by downloading and extracting the executable binary for Linux. This is most recommended way of installing Terraform on any Linux-based operating system. No matter how we install Terraform, its just a executable binary. Once ...