Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

VM VM VM VM Server Host OS Hypervisor Guest OS Guest OS Guest OS App C App B App A Server Host OS Hypervisor

Slide 5

Slide 5 text

VM VM VM VM Server Host OS Hypervisor Guest OS Guest OS Guest OS App C App B App A Server Host OS Hypervisor

Slide 6

Slide 6 text

VM Container VM VM VM Server Host OS Hypervisor Guest OS Guest OS Guest OS App C App B App A Server Host OS Hypervisor Bins/Libs App A

Slide 7

Slide 7 text

VM Container Container Container VM VM VM Server Host OS Hypervisor Guest OS Guest OS Guest OS App C App B App A Server Host OS Hypervisor Bins/Libs App B App C Bins/Libs App A Bins/Libs

Slide 8

Slide 8 text

VM Container Container Container VM VM VM Server Host OS Hypervisor Guest OS Guest OS Guest OS App C App B App A Server Host OS Hypervisor Bins/Libs App B App C Bins/Libs App A Bins/Libs

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

Image Name Process started in an executing container Initializes a new build stage and sets the base image Execute commands in a new layer on top of the current image and commit results Provide defaults for an executing container Captures the steps to build a container image Version-able asset in your DevOps flows Configuration-as-Code

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

VM Container Container Container Server Host OS Hypervisor Bins/Libs App B App C Bins/Libs App A Bins/Libs Container Image Container Image Container Image Container Image Container Image Container Image

Slide 13

Slide 13 text

VM Container Container Container Server Host OS Hypervisor Bins/Libs App B App C Bins/Libs App A Bins/Libs Container Image Container Image Container Image Container Image Container Image Container Image

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

VM Container Container Container Server Host OS Hypervisor Bins/Libs App B App C Bins/Libs App A Bins/Libs VM Container Container Container Server Host OS Hypervisor Bins/Libs App B App C Bins/Libs App A Bins/Libs

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

Container Orchestrator

Slide 20

Slide 20 text

Container Orchestrator Cluster

Slide 21

Slide 21 text

VM Server Host OS Hypervisor Guest OS Container Orchestrator Cluster

Slide 22

Slide 22 text

VM Server Host OS Hypervisor Guest OS Cluster

Slide 23

Slide 23 text

Kubernetes comes from the Greek word κυβερνήτης:, which means helmsman or ship pilot, ie: the captainer of a container ship. "Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications."

Slide 24

Slide 24 text

VM Server Host OS Hypervisor Guest OS Kubernetes Master Cluster Node Node Node Node Node Node

Slide 25

Slide 25 text

AKS reduces the complexity and operational overhead of managing Kubernetes by offloading much of that responsibility to Azure. You only pay for the worker nodes within your clusters, not for the master nodes

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

Kubernetes Cluster Node Node Node Node Node Node

Slide 28

Slide 28 text

Master Cluster Node api-server etcd controller- manager scheduler

Slide 29

Slide 29 text

Master Cluster Node api-server etcd controller- manager scheduler

Slide 30

Slide 30 text

Container Container Container Bins/Libs App B App C Bins/Libs App A Bins/Libs Where do the Containers go?

Slide 31

Slide 31 text

Container Container Container Bins/Libs App B App C Bins/Libs App A Bins/Libs Introducing…. Pods!

Slide 32

Slide 32 text

Pods Master Cluster Node api-server etcd controller- manager scheduler

Slide 33

Slide 33 text

Pods Master Cluster Node api-server etcd controller- manager scheduler

Slide 34

Slide 34 text

ratings-api Label(s) app=ratings-api Container-image my.azurecr.io/ratings-api Port 3001 (VolumeMount) /mnt/share (Resources) ratings-web Label(s) app=ratings-web Container-image my.azurecr.io/ratings-web Port 3000 (VolumeMount) /mnt/share (Resources) Pods – What are they? otherApp Label(s) app=otherApp Container-image other.azurecr.io/other App Port 4045 (VolumeMount) /mnt/share Metadata that describes how the containers are configured.

Slide 35

Slide 35 text

Deployments Metadata that describes how to deploy a pod More Metadata ratings-web replicas 2 ratings-web Label(s) app=ratings-web Container- image my.azurecr.io/ ratings-web Port 3000 (Volume) … (Resources) …

Slide 36

Slide 36 text

Cluster Node Node Master

Slide 37

Slide 37 text

Cluster Node Node Master

Slide 38

Slide 38 text

Cluster Node Node Master

Slide 39

Slide 39 text

ratings-web2 Label(s) app=ratings-web Container- image my.azurecr.io/ ratings-web Port 3000 Services Metadata that describes how to reach the pods Yet More Metadata! ratings-web Selector app=ratings-web Port Mapping 8080:3000 Type (Internal or External) LoadBalancer ratings-web1 Label(s) app=ratings-web Container- image my.azurecr.io/ ratings-web Port 3000

Slide 40

Slide 40 text

Services Cluster Node Node Service ratings-web IP Address Master

Slide 41

Slide 41 text

Services Cluster Node Node Service ratings-web IP Address Master

Slide 42

Slide 42 text

Manual via Kubernetes Portal Infra-as-Code a YAML file

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

Scaling Pods ratings-web replicas 3 ratings-web Label(s) app=ratings-web Container- image my.azurecr.io/ ratings-web Port 3000 (Volume) … (Resources) …

Slide 45

Slide 45 text

Scaling Pods ratings-web replicas 6 ratings-web Label(s) app=ratings-web Container- image my.azurecr.io/ ratings-web Port 3000 (Volume) … (Resources) …

Slide 46

Slide 46 text

Node Master Cluster Node Node

Slide 47

Slide 47 text

Node Node Node Master Cluster Node az scale –name –g –node-count

Slide 48

Slide 48 text

Azure Container Instances Node With Azure Container Instances Master Cluster Node az enable-addons –g –name –addons –subnet-name

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

Master Cluster Service ratings-web IP Address Updated App Updated App Updated App

Slide 51

Slide 51 text

Node Node Node Master Cluster Service ratings-web IP Address

Slide 52

Slide 52 text

Node Node Node Master Cluster Service ratings-web IP Address

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

Why do we need volumes ? Volume (state)

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

PV vs PVC Volumes emptyDir hostPath Persistent Volume Claim (PVC) ConfigMap Security …. Persistent Volume (PV)

Slide 57

Slide 57 text

Dynamic Storage in AKS – Azure Disk

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

Inter-Pod Communication

Slide 60

Slide 60 text

Why Services?

Slide 61

Slide 61 text

Why Services?

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

How does ClusterIP Work

Slide 64

Slide 64 text

How does LoadBalancer Work

Slide 65

Slide 65 text

How does NodePort Work

Slide 66

Slide 66 text

How does Ingress Controller Work

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

1. Kubernetes users communicate with API server and apply desired state 2. Master nodes actively enforce desired state on worker nodes 3. Worker nodes support communication between containers Kubernetes control API server replication, namespace, serviceaccounts, etc. -controller- manager -scheduler etcd Master node Worker node kubelet Service Docker Pods Pods Worker node kubelet Service Docker Pods Pods Internet 4. Worker nodes support communication from the Internet

Slide 69

Slide 69 text

API server Controller Manager Scheduler etcd Store Cloud Controller Self-managed master node(s) • Automated upgrades, patches • High reliability, availability • Easy, secure cluster scaling • Self-healing • API server monitoring • At no charge Customer VMs App/ workload definition User Docker Pods Docker Pods Docker Pods Docker Pods Docker Pods Schedule pods over private tunnel Kubernetes API endpoint Azure managed control plane

Slide 70

Slide 70 text

Task The old way With Azure Create a cluster Provision network and VMs Install dozens of system components including etcd Create and install certificates Register agent nodes with control plane az aks create Upgrade a cluster Upgrade your master nodes Cordon/drain and upgrade worker nodes individually az aks upgrade Scale a cluster Provision new VMs Install system components Register nodes with API server az aks scale

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

No content

Slide 73

Slide 73 text

Operationalizing Kubernetes

Slide 74

Slide 74 text

Helm Helm Charts helps you define, install, and upgrade even the most complex Kubernetes application pods services Chart.yml db deployments ci …

Slide 75

Slide 75 text

Helm The best way to find, share, and use software built for Kubernetes Manage complexity Charts can describe complex apps; provide repeatable app installs, and serve as a single point of authority Easy updates Take the pain out of updates with in-place upgrades and custom hooks Simple sharing Charts are easy to version, share, and host on public or private servers Rollbacks Use helm rollout to roll back to an older version of a release with ease

Slide 76

Slide 76 text

Many Choices

Slide 77

Slide 77 text

A fully managed service of Red Hat OpenShift on Azure, jointly, engineered, operated and supported by Microsoft and Red Hat

Slide 78

Slide 78 text

https://kubernetes.io/docs/home/ https://aka.ms/learnkubernetes https://aksworkshop.io/ https://helm.sh/blog/helm-3-preview-pt7/ https://docs.microsoft.com/en-us/azure/aks/best-practices

Slide 79

Slide 79 text

No content

Slide 80

Slide 80 text

No content