kubelabs icon indicating copy to clipboard operation
kubelabs copied to clipboard

Get Started with Kubernetes

An Ultimate Kubernetes Hands-on Labs and Tutorials

stars forks issues GitHub contributors Visitor count Twitter

Pre-requisite:

  • Introductory Slides
  • Deep Dive into Kubernetes Architecture

Preparing 5-Node Kubernetes Cluster

PWK:

GKE

  • Setting up GKE Cluster
  • Setting up Weavescope for Visualization on GKE

Docker Desktop for Mac

  • Setting up Kubernetes Cluster on AWS using Kops running on Docker Desktop for Mac

Ubuntu

Using Kubectl

  • Kubectl for Docker Beginners
  • Accessing Kubernetes API

Pods101

  • Introductory Slides
  • Deploying Your First Nginx Pod
  • Viewing Your Pod
  • Where is your Pod running on?
  • Pod Output in JSON
  • Executing Commands against Pod
  • Terminating a Pod
  • Adding a 2nd container to a Pod

ReplicaSet101

  • Introductory Slides
  • Creating Your First ReplicaSet - 4 Pods serving Nginx
  • Removing a Pod from ReplicaSet
  • Scaling & Autoscaling a ReplicaSet
  • Best Practices
  • Deleting ReplicaSets

Deployment101

  • Introductory Slides
  • Creating Your First Deployment
  • Checking the list of application deployment
  • Scale up/down application deployment
  • Scaling the service to 2 Replicas
  • Perform rolling updates to application deployment
  • Rollback updates to application deployment
  • Cleaning Up

Scheduler101

  • How Kubernetes Selects the Right node?
  • Node Affinity
  • Anti-Node Affinity
  • Nodes taints and tolerations

Services101

  • Introductory Slides
  • Deploy a Kubernetes Service?
  • Service Exposing More Than One Port
  • Kubernetes Service Without Pods?
  • Service Discovery
  • Connectivity Methods
  • Headless Service In Kubernetes?

StatefulSets101

  • The difference between a Statefulset and a Deployment
  • Deploying a Stateful Application Using Kubernetes Statefulset?
  • Deploying NFS Server
  • Deploying PV
  • Deploying PVC
  • Using Volume
  • Recreate Pod

DaemonSet101

  • Why DaemonSets in Kubernetes?
  • Creating your first DeamonSet Deployment
  • Restrict DaemonSets To Run On Specific Nodes
  • How To Reach a DaemonSet Pod

Jobs101

  • Creating Your First Kubernetes Job
  • Multiple Parallel Jobs (Work Queue)

Ingress101

  • What is Kubernetes ingress?
    • NodePort
    • Load Balancer
    • Ingress
    • How to Use Nginx Ingress Controller
    • Ingress Controllers and Ingress Resources

RBAC101

  • Role-Based Access Control (RBAC) Overview
  • Creating a Kubernetes User Account Using X509 Client Certificate

Service Catalog101

  • What is Kubernetes Service Catalog?
  • Creating a sample Service Catalog
  • Installing Service Catalog Helm Chart

Cluster Networking101

  • What Is Cluster Networking In Kubernetes Sense?
  • Kubernetes Networking Rules
  • Types of Networks
    • Underlay Network
    • Overlay Network
  • What is a Container Network Interface (CNI)?
    • AWS VPC CNI for Kubernetes
    • AZURE CNI for Kubernetes
    • Calico
    • Cilium
    • Weave Net from WeaveWorks
    • Flannel
  • LAB- Weave Net Implementation

Network Policies101

  • What is a Kubernetes Network Policy?
  • Creating Your First NetworkPolicy Definition
  • How can we fine-tune Network Policy using selectors?
  • Deny Ingress Traffic That Has No Rules
  • Deny Egress Traffic That Has No Rules
  • Allow All Ingress Traffic Exclusively
  • Allow All Egress Traffic Exclusively

Monitoring101

  • Monitoring in Kubernetes
  • Core Monitoring Pipeline
  • Services Monitoring Pipeline
  • What should you consider in Kubernetes Services Pipeline?
  • What about Metrics Visualization?
  • Changes To Watch For
    • Heapster is Going Away
    • Metrics Server Will Get More Cool Features

Logging101

  • Logging introduction
  • Elasticsearch
  • Fluentd
  • Kafka
  • Fluent Bit

Helm101

  • What is Helm?
  • Installing a Helm Chart
  • Helm Charts
  • Helm Chart Hooks
  • Helm Chart Testing
  • Helm Chart Repository

AKS101

  • What is AKS?
  • AKS Networking
  • AKS IAM
  • AKS Storage
  • AKS Service Mesh
  • AKS KEDA

Security101

  • What is DevSecOps?
  • Securing your cluster

GitOps101

  • What is GitOps
  • ArgoCD

LKE101

  • What is LKE

Contributors

Further References:

Next: Kubernetes201