Skip to content

ttarczynski/kubernetes-101-workshop

Repository files navigation

Materials for Kubernetes Workshop

This workshop is based on:

Table of Contents

  1. Prerequirements
  2. Materials
  3. Cluster Preparation

Prerequirements

Technical Knowledge

Workshop participants should have woring knowledge of:

  • Linux environment (commands, editors, packages, etc.)
  • Docker
  • Vagrant
  • VirtualBox

Kubernetes Cluster

Each participant should have access to a Kubernetes cluster (1 master + 2 worker nodes) prepared before the workshop.
We suggest to use one of the 2 options:

Materials

Books

Documentation

Cluster Preparation

Local Vagrant Environment

It requires:

  • Laptop with min. 8GB RAM
  • Preferably Linux environemnt on the laptop
  • Vagrant and VirtualBox installed

Vagrant Environment setup:

  1. Install VirtualBox: https://www.virtualbox.org/wiki/Downloads
  2. Install Vagrant: https://www.vagrantup.com/docs/installation/
  3. Verify correct Vagrant/VirtualBox versions and config
  • the following versions are confirmed to be working OK:
# vagrant --version
  Vagrant 2.2.6
# VirtualBox --help
  Oracle VM VirtualBox VM Selector v6.0.14
  1. Install kubectl on your system
  1. Clone GIT repo:
$ git clone https://github.com/ttarczynski/kubernetes-101-workshop.git
$ cd kubernetes-101-workshop/
  1. Run the initialization script:
$ ./01_initialize_kubernetes_cluster.sh
  1. Verify:
$ kubectl get componentstatus
NAME                 STATUS    MESSAGE              ERROR
controller-manager   Healthy   ok
scheduler            Healthy   ok
etcd-0               Healthy   {"health": "true"}

$ kubectl get nodes
NAME      STATUS    ROLES     AGE       VERSION
ks101     Ready     master    3d        v1.15.5
ks102     Ready     <none>    3d        v1.15.5
ks103     Ready     <none>    3d        v1.15.5

Google Kubernetes Engine

Use this in case the Local Vagrant Environment option doesn't work for you.
It requires:

  • Google Cloud account with enabled billing
    (there’s $300 credit for free trial)

GCP Environment setup:

  1. Follow steps 1–3 from the Running a Container in Kubernetes with Container Engine Codelab
  2. Scale the cluster to 2 worker nodes
  3. Make sure to clean-up after you're done with the excercises (to save on cost).
$ gcloud container clusters delete hello-world

About

Workshop presenting basics of Kubernetes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published