Skip to content

Latest commit

 

History

History
52 lines (44 loc) · 1.85 KB

README.md

File metadata and controls

52 lines (44 loc) · 1.85 KB

Kubernetes for Grad Students

Kubernetes Tutorial for the PS2 group meetings at UC Berkeley.

Slides can be found here.

Dilbert on k8s

Prerequisites

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:

  1. Docker (Mac / Windows). After installation:

    # Make sure you're logged in to DockerHub
    docker login
  2. 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
    
  3. 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
    
  4. (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.