Slide 1

Slide 1 text

Rahulkrishnan R A @rahulkrishnanra Building block of Kubernetes Chennai Kubernetes

Slide 2

Slide 2 text

- Containers are normal process - Process executed using two Linux kernel features - Cgroups - Namespace Containers Virtual Machines How containers looks like?

Slide 3

Slide 3 text

Orchestration - Kubernetes • Horizontal scaling • Self-healing • Automated rollouts and rollbacks • Secret and configuration management • Automatic Binpacking • Batch execution

Slide 4

Slide 4 text

Pod in kubernetes POD PODS – grouping containers App 1 App 2 App 3

Slide 5

Slide 5 text

Kubernetes Architecture Worker Node 1 Master Node CLI UI API Kubelet Kube-proxy Worker Node 2 Kubelet Kube-proxy Worker Node 3 Kubelet Kube-proxy Controller Manager Scheduler etcd

Slide 6

Slide 6 text

Nginx v1 Mount Hostname PID Network IPC Nginx v2 Mount Hostname PID Network IPC Container 1 Container 2 Isolation using namespace Isolated Containers

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

nginx Hostname PID Network IPC cache localhost Pod with multiple containers

Slide 9

Slide 9 text

How POD looks like? Namespaces - Net - IPC …… Label 1 Label 2 Label 3 Pause Container Init Container Post Start Pre Stop Main Readiness Liveness

Slide 10

Slide 10 text

Usecase of POD

Slide 11

Slide 11 text

How to create pod? 1) kubectl run --image= --port= Eg: $kubectl run nginx –image=nginx:latest –port=80 2) Using Manifest file kubectl create – f Eg: kubectl create –f pod.yaml Note : Always create POD with the help of controllers

Slide 12

Slide 12 text

Manifest file

Slide 13

Slide 13 text

Demo Time

Slide 14

Slide 14 text

POD is the Building block of Kubernetes

Slide 15

Slide 15 text

@rahulkrishnanra Thank you https://www.meetup.com/Chennai-Kubernetes @k8schennai k8schennai.slack.com