SlideShare a Scribd company logo
1 of 34
Introduction to Kubernetes
Speaker : Thor Chin
Agenda
Container VS Virtual MachineA
DockerB
KubernetesC
Kubernetes integrate with OpenStackD
What’s Next?E
Agenda
Container VS Virtual MachineA
DockerB
KubernetesC
Kubernetes integrate with OpenStackD
What’s Next?E
Container VS Virtual Machine
Container VS Virtual Machine
Container Virtual Machine
Represents operating system virtualization Represents hardware-level virtualization
Lightweight Heavyweight
Real-time provisioning and scalability Slow provisioning
Native performance Limited performance
Process-level isolation and hence less secure Fully isolated and hence more secure
Agenda
Container VS Virtual MachineA
DockerB
KubernetesC
Kubernetes integrate with OpenStackD
What’s Next?E
What’s Docker
 Docker is an open-source project
that automates the deployment
of applications inside software
containers
 Docker uses the resource isolation
features of the Linux kernel such
as cgroups and kernel namespaces,
and a union-capable file system such
as OverlayFS to allow independent
"containers" to run within a single
Linux instance.
Docker Architecture
• Docker Container
• Docker Image
• Docker Registry
• Dockerfile
Why Docker needs Kubernetes?
Agenda
Container VS Virtual MachineA
DockerB
KubernetesC
Kubernetes integrate with OpenStackD
What’s Next?E
Why Kubernetes?
 Powerful Community
 Open Source – no vendor lock-in
 Large Scale
 Rolling Upgrade
 Self-healing
 Federation and Hybrid
 Easy to Management
 Easy to integrate with monitoring system
– Heapster, InfluxDB, Grafana
Three Important Concept of Kubernetes
 Pod
 Service
 Deployments (Replication Controller)
Pod
 Pod is a group of one or more
containers
 Containers in a Pod will share
network namespaces, IP and port
 When a Pod terminated, all the
container in the Pod will also be
terminated
Service
 A Kubernetes Service is an abstraction which defines a logical set
of Pods and a policy by which to access them - sometimes called a micro-
service
 The set of Pods targeted by a Service is (usually) determined by a Label
Selector
Deployment
 A Deployment provides
declarative updates
for Pods and Replica Sets
 A Deployment will guarantee the
Replica Set of the K8S System
 A Deployment can support
Rolling Back / Update and
Scaling functions
Kubernetes Components
 Master Components
 kube-apiserver : exposes the Kubernetes API
 etcd : used as Kubernetes’ backing store. All cluster data is
stored here
 kube-controller-manager : the background threads that
handle routine tasks in the cluster
 kube-scheduler : watches newly created pods that have no
node assigned, and selects a node for them to run on
Kubernetes Components
 Node Components
 kubelet : the primary node agent runs the pod’s containers via
docker
 kube-proxy : enables the Kubernetes service abstraction by
maintaining network rules on the host and performing connection
forwarding
 docker : used for actually running containers
 fluentd : a daemon which helps provide cluster-level logging
Kubernetes Architecture
Kubernetes Users
Run Kubernetes on OpenStack at Scale at Yahoo! JAPAN
Ref : http://blog.kubernetes.io/2016/10/kubernetes-and-openstack-at-yahoo-japan.html
Kubernetes 1.6 Scalability Update
Kubernetes 1.6 can handle 5,000-node clusters with up to 150,000 pods
Kubernetes 1.6 Scalability Update
API response latency for a 5000-node
Kubernetes 1.6 cluster are less than
500ms, and even 90th percentile is
less than about 100ms
Agenda
Container VS Virtual MachineA
DockerB
KubernetesC
Kubernetes integrate with OpenStackD
What’s Next?E
Solutions for integrate OpenStack and Kubernetes
Magnum
Nova + Ironic
Kolla-kubernetes / Helm
Magnum
Controller
node
Magnum
HAProxy
Neutron
Controller
node
Magnum
HAProxy
Neutron
Controller
node
Magnum
HAProxy
Neutron
Computing Resource
Scaling
Compute
Node
Nova
K8S
Master
K8S
Node
Compute
Node
Nova
K8S
Master
Compute
Node
Nova
K8S
Master
10g
K8S
Node
K8S
Node
Magnum
Nova + Ironic
Controller
node
ceph-mon
HAProxy
Neutron
Controller
node
ceph-mon
HAProxy
Neutron
Controller
node
ceph-mon
HAProxy
Neutron
Computing Resource
Scaling
Storage Resource
Scaling
Storage
node
ceph-osd
ceph-osd
ceph-osd
Storage
node
ceph-osd
ceph-osd
ceph-osd
Storage
node
ceph-osd
ceph-osd
ceph-osd
Storage
node
ceph-osd
ceph-osd
ceph-osd
K8S
node
Pod1
Pod2
Pod3
K8S
node
Pod1
Pod2
Pod3
K8S
node
Pod1
Pod2
Pod3
Compute
Node
Ironic
Nova
K8S
Master
Compute
Node
Ironic
Nova
K8S
Master
Compute
Node
Ironic
Nova
K8S
Master
10g
10g
Kolla-kubernetes / Helm
Kolla-kubernetes / Helm
K8S
master
etcd
kub-ctl
scheduler
K8S
master
etcd
kub-ctl
scheduler
K8S
master
etcd
kub-ctl
scheduler
K8S
node
cinder
glance
neutron
K8S
node
horizon
keystone
heat
K8S
node
nova
nova
nova
K8S
node
nova
nova
nova
K8S
node
Pod1
Pod2
Pod3
K8S
node
Pod1
Pod2
Pod3
K8S
node
Pod1
Pod2
Pod3
K8S
node
ceph-mon
ceph-rgw
ceph-rgw
K8S
node
ceph-mon
ceph-rgw
ceph-rgw
Storage
node
ceph-osd
ceph-osd
ceph-osd
Storage
node
ceph-osd
ceph-osd
ceph-osd
Storage
node
ceph-osd
ceph-osd
ceph-osd
10g
10g
Agenda
Container VS Virtual MachineA
DockerB
KubernetesC
Kubernetes integrate with OpenStackD
What’s Next?E
What’s Next?
IoT Cloud Platform
Introduction to kubernetes
www.inwinstack.com
Thank You!
迎 棧 科 技 股 份 有 限 公 司

More Related Content

More from inwin stack

More from inwin stack (20)

Serverless framework on kubernetes
Serverless framework on kubernetesServerless framework on kubernetes
Serverless framework on kubernetes
 
Train.IO 【第六期-OpenStack 二三事】
Train.IO 【第六期-OpenStack 二三事】Train.IO 【第六期-OpenStack 二三事】
Train.IO 【第六期-OpenStack 二三事】
 
Web後端技術的演變
Web後端技術的演變Web後端技術的演變
Web後端技術的演變
 
以 Kubernetes 部屬 Spark 大數據計算環境
以 Kubernetes 部屬 Spark 大數據計算環境以 Kubernetes 部屬 Spark 大數據計算環境
以 Kubernetes 部屬 Spark 大數據計算環境
 
Setup Hybrid Clusters Using Kubernetes Federation
Setup Hybrid Clusters Using Kubernetes FederationSetup Hybrid Clusters Using Kubernetes Federation
Setup Hybrid Clusters Using Kubernetes Federation
 
基於 K8S 開發的 FaaS 專案 - riff
基於 K8S 開發的 FaaS 專案 - riff基於 K8S 開發的 FaaS 專案 - riff
基於 K8S 開發的 FaaS 專案 - riff
 
使用 Prometheus 監控 Kubernetes Cluster
使用 Prometheus 監控 Kubernetes Cluster 使用 Prometheus 監控 Kubernetes Cluster
使用 Prometheus 監控 Kubernetes Cluster
 
Extend the Kubernetes API with CRD and Custom API Server
Extend the Kubernetes API with CRD and Custom API ServerExtend the Kubernetes API with CRD and Custom API Server
Extend the Kubernetes API with CRD and Custom API Server
 
利用K8S實現高可靠應用
利用K8S實現高可靠應用利用K8S實現高可靠應用
利用K8S實現高可靠應用
 
Integrate Kubernetes into CORD(Central Office Re-architected as a Datacenter)
Integrate Kubernetes into CORD(Central Office Re-architected as a Datacenter)Integrate Kubernetes into CORD(Central Office Re-architected as a Datacenter)
Integrate Kubernetes into CORD(Central Office Re-architected as a Datacenter)
 
Distributed tensorflow on kubernetes
Distributed tensorflow on kubernetesDistributed tensorflow on kubernetes
Distributed tensorflow on kubernetes
 
Build your own kubernetes apiserver and resource type
Build your own kubernetes apiserver and resource typeBuild your own kubernetes apiserver and resource type
Build your own kubernetes apiserver and resource type
 
Virtualization inside kubernetes
Virtualization inside kubernetesVirtualization inside kubernetes
Virtualization inside kubernetes
 
利用K8S實現高可靠應用
利用K8S實現高可靠應用利用K8S實現高可靠應用
利用K8S實現高可靠應用
 
Build the Blockchain as service (BaaS) Using Ethereum on Kubernetes
Build the Blockchain as service (BaaS) Using Ethereum on KubernetesBuild the Blockchain as service (BaaS) Using Ethereum on Kubernetes
Build the Blockchain as service (BaaS) Using Ethereum on Kubernetes
 
How to integrate Kubernetes in OpenStack: You need to know these project
How to integrate Kubernetes in OpenStack: You need to know these projectHow to integrate Kubernetes in OpenStack: You need to know these project
How to integrate Kubernetes in OpenStack: You need to know these project
 
Kubernetes 架構與虛擬化之差異
Kubernetes 架構與虛擬化之差異Kubernetes 架構與虛擬化之差異
Kubernetes 架構與虛擬化之差異
 
Cantainer CI/ CD with Kubernetes
Cantainer CI/ CD with KubernetesCantainer CI/ CD with Kubernetes
Cantainer CI/ CD with Kubernetes
 
容器革命的「利」與「必」
容器革命的「利」與「必」 容器革命的「利」與「必」
容器革命的「利」與「必」
 
Distributed tensorflow on kubernetes
Distributed tensorflow on kubernetesDistributed tensorflow on kubernetes
Distributed tensorflow on kubernetes
 

Recently uploaded

Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
FIDO Alliance
 
CORS (Kitworks Team Study 양다윗 발표자료 240510)
CORS (Kitworks Team Study 양다윗 발표자료 240510)CORS (Kitworks Team Study 양다윗 발표자료 240510)
CORS (Kitworks Team Study 양다윗 발표자료 240510)
Wonjun Hwang
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
panagenda
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
FIDO Alliance
 

Recently uploaded (20)

Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptx
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
2024 May Patch Tuesday
2024 May Patch Tuesday2024 May Patch Tuesday
2024 May Patch Tuesday
 
ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptx
 
CORS (Kitworks Team Study 양다윗 발표자료 240510)
CORS (Kitworks Team Study 양다윗 발표자료 240510)CORS (Kitworks Team Study 양다윗 발표자료 240510)
CORS (Kitworks Team Study 양다윗 발표자료 240510)
 
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdfFrisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
 
الأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهلهالأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهله
 
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
Navigating the Large Language Model choices_Ravi Daparthi
Navigating the Large Language Model choices_Ravi DaparthiNavigating the Large Language Model choices_Ravi Daparthi
Navigating the Large Language Model choices_Ravi Daparthi
 
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
 
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxDesign Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptx
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 

Introduction to kubernetes