K8sFundamentals SetupGuide V3
K8sFundamentals SetupGuide V3
https://hub.docker.com/
Laptop – Hardware
A laptop supporting virtualization.
Note that corporate locked down machines may not grant you enough privileges to run some tools used
in this course.
Windows Requirements
A laptop supporting virtualization, with Windows 10 or 11 and the latest updates.
https://docs.microsoft.com/en-us/windows/wsl/install
It’s important to limit the max memory and CPU that WSL can use by creating a config file.
Create a file named .wslconfig (that’s dot wslconfig, no extension) in your C:\users\[YourUser]\ folder
To enable it, press the Windows key and type “turn windows features on or off” and click on it to open
it. Check Hyper-V and reboot.
https://chocolatey.org/install
Note that corporate locked down machines may not grant you enough privileges to install Chocolatey.
Make sure to run a Command or a Powershell Prompt as an admin when installing packages.
Already using Chocolatey? Make sure to update your already installed packages.
choco upgrade all -y
macOS
macOS 10.15 and higher. Using the latest version is recommended.
Mac with Intel chip or Apple Silicon can run Docker Desktop.
Note that other tools used in this course may not yet work on Apple Silicon.
Brew
Brew is a package manager for macOS. Installation instructions are found here:
https://brew.sh/
Linux
Ubuntu Desktop 18.04.x or later.
Snap
Snap is a package manager for Ubuntu and it should already be installed. To validate open a terminal,
type snap to validate. If not, install it using:
sudo apt update
sudo apt install snapd
Docker
On Windows and macOS, install Docker Desktop.
https://www.docker.com/products/docker-desktop
Docker Engine
Refer to the documentation for the latest installation instructions:
https://docs.docker.com/engine/install/ubuntu/
Docker Desktop
https://docs.docker.com/desktop/install/linux-install/
https://code.visualstudio.com/
Windows
On Windows, make sure that Docker is using Linux containers. To validate, right-click on the Docker icon
in the system tray and if you see Switch to Windows containers…, you’re OK
MacOS
MicroK8s
https://ubuntu.com/kubernetes/install
sudo snap install microk8s –classic
sudo snap alias microk8s.kubectl kubectl
Kind
https://kind.sigs.k8s.io/docs/user/quick-start/
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64
chmod +x ./kind
# move to a folder in your path
mv ./kind /some-dir-in-your-PATH/kind
# create a cluster with the default name “kind”
kind create cluster
Windows
The Kubernetes CLI should be installed by Docker Desktop. To confirm, open a terminal and type kubectl.
If not installed, you can install it using chocolatey.
choco install kubernetes-cli
MacOS
The Kubernetes CLI should be installed by Docker Desktop. To confirm, open a terminal and type kubectl.
If not installed, you can install it using Brew.
brew install kubectl
Ubuntu
snap install kubectl –classic
Before installing these, open a terminal and type the commands (curl, grep and sed) to see if they are
already installed or not.
choco install curl
choco install grep
choco install sed
Windows Terminal
It is highly recommended that you use the Windows Terminal. It’s much better than the old Command
Prompt and it’s available for free from the Windows Store. On Windows 11, Terminal is installed by
default.
https://docs.microsoft.com/en-us/windows/terminal/get-started
Checklist
Use this checklist to validate your installation.
I have installed the Docker Engine instead of Docker Desktop and if I type
docker at the command prompt/terminal I get some information and no
errors