Kubernetes Tutorial for the PS2 group meetings at UC Berkeley.
Slides can be found here.
Linux users - you only need docker installed. You can then use the tutorial docker image:
# Make sure you're logged in to DockerHub
docker login
# Run docker image for the tutorial
./run_tutorial.sh
If you do not wish to use the container, see instructions below.
Mac/WSL/Linux users - Please install:
-
Docker (Mac / Windows). After installation:
# Make sure you're logged in to DockerHub docker login
-
Kind - utility that we use to run the Kubernetes cluster.
# Linux/WSL curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.12.0/kind-linux-amd64 chmod +x ./kind mv ./kind /usr/local/bin/kind
# Mac brew install kind
-
Kubectl - utility to interact with Kubernetes clusters.
# Linux/WSL curl -LO https://dl.k8s.io/release/v1.23.0/bin/linux/amd64/kubectl chmod +x kubectl mv ./kubectl /usr/local/bin/kubectl kubectl version --client
# Mac brew install kubectl
-
(Optional, but highly recommended) Setup bash autocompletion for kubectl. This will save you countless copy-pastes.
If you would like to build your own images, please make sure you are signed into your DockerHub account by running docker login
.