Back to Dockerlabs

Kubernetes Workshop

kubernetes/beginners/workshop/README.md

latest3.5 KB
Original Source

Kubernetes Workshop

Lab #01 - Getting Started

Building 5-Node Kubernetes Cluster on Browser

Running Your First Nginx pod

Exposing the Service so as to browse the Nginx over URL

Cleaning Up Nginx Pod

Lab #02 - Getting Started with Pod Manifest file

Creating Nginx Pod using Pod Manifest File

Accessing Nginx Page over URL

Lab #03 - Getting Started with ReplicaSet Manifest File

Creating ReplicaSet Manifest file for Nginx

Scaling up Nginx Application

Lab #04 - Getting Started with Deployment Manifest File

Creating a Deployment with 3 replicas of NGINX service

Lab #05 Deployments, Rolling Updates and Rollbacks

[ creating deployement nginx with 2 replicals ]

[ Rolling update of nginx application via two methods]

[ Rolling out deployement with revision ]

Lab #06 Service Networking

Lab #07 Ingress for kubernetes

lab #08 Deploying a Load Balancer

lab #09 Configure and Use Cluster DNS

lab #10 Persistent Storage

lab #11 Kubernetes Self-Healing

lab #12 Liveness Probes in Kubernetes

lab #13 Auto-Scaling

lab #14 Horizontal Pod Auto-Scaling

lab #15 monitoring

Using Helm

Installing Helm

Installing WordPress using Helm on PWK

Tips & Tricks

#1: My system rebooted and now the kubectl get nodes is unable to display my K8s nodes. What shall I do?

~$ sudo systemctl restart kubelet
@kubemaster:~$ sudo kubectl version
Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.0", GitCommit:"e8462b5b5dc2584fdcd18e6bcfe9f1e4d970a529", GitTreeState:"clean", BuildDate:"2019-06-19T16:40:16Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.0", GitCommit:"e8462b5b5dc2584fdcd18e6bcfe9f1e4d970a529", GitTreeState:"clean", BuildDate:"2019-06-19T16:32:14Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
$ sudo kubectl get nodes
NAME               STATUS   ROLES    AGE   VERSION
kubemaster         Ready    master   10d   v1.15.0
worker1            Ready    <none>   10d   v1.15.0