Index Keywords Recent

↶ Return Home

Installing kubectl on Ubuntu

Last Updated May 3rd 2022, 12:41:16 am

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 ↩︎