Slide 1

Slide 1 text

Kubernetes Overview Presenter: Samina (Shan-Jung Fu) Date: 2018/12/12

Slide 2

Slide 2 text

Agenda About Me Chapter 1 - Overview Chapter 2 - Hands-on Additional

Slide 3

Slide 3 text

Chapter 1 - Overview

Slide 4

Slide 4 text

Chapter 1 Overview Introduction Setup Solutions Architecture Components Resources

Slide 5

Slide 5 text

Introduction Setup Solutions Architecture Components Resources Chapter 1 Overview

Slide 6

Slide 6 text

Kubernetes Introduction ● Kubernetes is Greek for captain or pilot ● Aka K8s, replace “ubernete” with 8 ● Experiences from Google and design by Google ● An open-source system ● A container management system

Slide 7

Slide 7 text

Introduction Setup Solutions Architecture Components Resources Chapter 1 Overview

Slide 8

Slide 8 text

Kubernetes Setup Solutions ● Local-machine solutions ● Hosted solutions ● Turnkey cloud solutions ● On-premises turnkey cloud solutions ● Custom solutions ● etc.

Slide 9

Slide 9 text

Kubernetes Setup Solutions (Cont.) ● Local-machine solutions A local, single-node Kubernetes cluster for development and testing ○ Minikube ○ microk8s ○ etc. ● Hosted solutions ● Turnkey cloud solutions ● On-premises turnkey cloud solutions ● Custom solutions

Slide 10

Slide 10 text

Kubernetes Setup Solutions (Cont.) ● Local-machine solutions ● Hosted solutions Maintain more machines and higher availability ○ OpenShift ○ VMware Cloud PKS ○ etc. ● Turnkey cloud solutions ● On-premises turnkey cloud solutions ● Custom solutions ● ...

Slide 11

Slide 11 text

Kubernetes Setup Solutions (Cont.) ● Local-machine solutions ● Hosted solutions ● Turnkey cloud solutions Create K8s clusters on a range of Cloud IaaS providers with only a few commands ○ AWS ○ Google Compute Engine (GCE) ○ etc. ● On-psremises turnkey cloud solutions ● Custom solutions

Slide 12

Slide 12 text

Kubernetes Setup Solutions (Cont.) ● Local-machine solutions ● Hosted solutions ● Turnkey cloud solutions ● On-premises turnkey cloud solutions Create K8s clusters on your internal, secure, cloud network with only a few commands ○ GKE On-Prem | Google Cloud ○ SUSE CaaS Platform ○ etc. ● Custom solutions

Slide 13

Slide 13 text

Kubernetes Setup Solutions (Cont.) ● Local-machine solutions ● Hosted solutions ● Turnkey cloud solutions ● On-premises turnkey cloud solutions ● Custom solutions ○ kubeadm ○ Kubespray ○ Kubernetes The Hard Way ○ etc.

Slide 14

Slide 14 text

Introduction Setup Solutions Architecture Components Resources Chapter 1 Overview

Slide 15

Slide 15 text

Kubernetes Architecture apiserver etcd scheduler controller kubelet kubelet kubelet API CLI UI Users Control plane Nodes

Slide 16

Slide 16 text

Kubernetes Architecture (Cont.) Node ● A worker machine in K8s ● Can be a VM or physical machine ● also called "minions" ● Node components do: ○ Run on each node ○ Maintain running pods ○ Provid K8s runtime ENV ● Components: ○ Kubelet ○ Kube-proxy ○ Container Runtime Node Kubelet Container Runtime Kube-proxy Pod Pod Pod

Slide 17

Slide 17 text

Kubernetes Architecture (Cont.) ● The components of Control plane (its "brains"): ○ API server (our point of entry to everything!) ○ core services like scheduler & controller manager ○ etcd ■ a highly available key/value store ■ "database" of K8s ● Also called the "master"

Slide 18

Slide 18 text

Introduction Setup Solutions Architecture Components Resources Chapter 1 Overview

Slide 19

Slide 19 text

Kubernetes Components (Cont.)

Slide 20

Slide 20 text

Kubernetes Components

Slide 21

Slide 21 text

Introduction Setup Solutions Architecture Components Resources Chapter 1 Overview

Slide 22

Slide 22 text

● Do many actions: create, update, delete ... ● Contain a lot of objects called resources ○ These resources are organized by type or Kind (in the API) Kubernetes API

Slide 23

Slide 23 text

Kubernetes Resources (Cont.) ● A few common resource types are: ○ node (a machine - physical or virtual) ○ pod (group of containers running together on a node) ○ service (stable network endpoint to connect to one or multiple containers) ○ namespace (more-or-less isolated group of things) And much more!

Slide 24

Slide 24 text

Kubernetes Resources (Cont.) ● We can see the full list by running kubectl api-resources (In Kubernetes 1.10 and prior, the command to list API resources was kubectl get)

Slide 25

Slide 25 text

Copyright 2015 ITRI 工業技術研究院 Additional • Try https://labs.play-with-k8s.com/ , if you want. • GitHub Repository: https://github.com/play-with-docker/play-with-docker