Search Articles   Keywords



Installing kubectl on Ubuntu

Installing kubectl on Ubuntu


  1. 1. Description
    1. 1.1. Requirements
      1. 1.1.1. Client Setup
      2. 1.1.2. Cluster Setup
  2. 2. Install Kubectl[1]
  3. 3. Sources

Description

This article explains how to install kubectl on systems running Ubuntu 21.10 AMD64.

Requirements

I am using the following setup.

Client Setup

  • One (1) Laptop (Running Ubuntu 21.10)

Cluster Setup

  • Three (3) Raspberry Pis running Raspberry Pi OS, 64-bit (Debian 10 buster)
    • Two (2) raspberry pi model 4s, with 8gb RAM
    • One (1) Raspberry Pi 400 with 4gb RAM
    • Each Pi is using a Samsung T7 SSD connected via USB 3.0 for storage

Install Kubectl[1]

  1. Download the latest release of kubectl with the following command:
1
$ curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
  1. Install kubectl:
1
$ sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

Sources


  1. Kubernetes.io: Install Kubectl - Linux ↩︎