Yesterday I conducted Kubernetes workshop for almost 500+ audience at SAP Labs, Bengaluru (India) during Docker Bangalore Meetup #50. The workshop was targeted for Beginners & Intermediate level users. The labs were conducted completely on Play with Kubernetes Platform, shortly called as PWK. Play with Kubernetes is a labs site provided by Docker and created by Tutorius. It is a playground which allows users to run K8s clusters in a matter of seconds. It gives the experience of having a free CentOS Linux Virtual Machine running on the browser. Under the hood Docker-in-Docker (DinD) is used to give the effect of multiple VMs/PCs. It was a project hacked by Marcos Liljedhal during July 2017.
Kubernetes isn’t complex; Rather your business problems are.
Kubernetes is rather the simplest, easiest way to meet the needs of complex web applications. Kubernetes vastly simplifies onboarding & management of services. The service owner, be it a sysadmin, developer, or architect, can create a YAML/JSON file in the Kubernetes format. With Kubernetes, every system and every user speaks the same language. Said that, Kubelabs is one effort with an aim to simplify Kubernetes through hands-on labs and workshop.
Based on Docker community feedback, kubelabs.collabnix.com was born during early December 2019. Collabnix Slack members volunteered to contribute towards the labs and after 1 month of effort, Kubelabs was structured well and reviewed. Can’t wait to share that not a single issue was reported during the workshop. The platform is quite stable and open for all. Incredible, isn’t it?
Kubelabs is still under progress. New tutorials are welcomed every week and we are expected to cover almost all 101 series by the next Docker Bangalore Meetup.
Are you interested to contribute? Join us here.
Link for Slides:
Topic | Presentation |
---|---|
Kubernetes Introduction | Slides |
Pod 101 | Slides |
ReplicaSet101 | Slides |
Deployment101 | Slides |
Services101 | Slides |
Pre-requisite:
Preparing 5-Node Kubernetes Cluster
PWK:
- Preparing 5-Node Kubernetes Cluster on Play with Kubernetes Platform
- Setting up WeaveScope For Visualization on PWK
GKE
Docker Desktop for Mac
Using Kubectl
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
- Introductory Slides
- 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
- Introductory Slides
- 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
In the next Docker Meetup, we will be targeting Ingress101, Cluster Networking101, Jobs101, RBAC101 and so on… Stay tuned for more updates.