SlideShare ist ein Scribd-Unternehmen logo
1 von 35
Downloaden Sie, um offline zu lesen
Kubernetes and DevOps
資訊與通訊研究所 蔣是⽂文 Mac Chiang
Copyright 2017 ITRI ⼯工業技術研究院
Agenda
• Kubernetes Introduction
• Scaling and Upgrading with K8S
• Hands ON (Demo)
• Q & A
2
Copyright 2017 ITRI ⼯工業技術研究院
OpenStack Summit 2017

Will Kubernetes Steal the Show?
• Before the summit:
▪ OpenStack on Kubernetes?
▪ Kubernetes on OpenStack?
▪ How about Kubernetes on OpenStack on Kubernetes?
• The list of breakaway sessions
▪ Kubernetes and OpenStack at Scale.
▪ OpenDaylight Kubernetes & OpenStack Magnum integration.
▪ ESCaaS 4.0, Unified Management Platform of OpenStack and Kubernetes.
▪ Hybrid Cloud Kubernetes.
▪ Hybrid Orchestration: Kubernetes on Bare Metal and OpenStack Demo.
▪ Panel: Enterprise Adoption of Kubernetes and Containers.
https://thenewstack.io/openstack-summit-2017-will-kubernetes-stealing-show/
3
Copyright 2017 ITRI ⼯工業技術研究院
What’s Kubernetes
• “Kubernetes” is Greek for captain or pilot
• Experiences from Google and design by Goolge
• Kubernetes is a production-grade, open-source platform that
orchestrates the placement (scheduling) and execution of
application containers within and across computer clusters.
• Masters manage the cluster and the nodes are used to host the
running applications.
4
Copyright 2017 ITRI ⼯工業技術研究院
Why Kubernetes
5
• Automatic binpacking
• Horizontal scaling
• Automated rollouts and rollback
• Service monitoring
• Self-healing
• Service discovery and load balancing
• 100% Open source, written in Go
Copyright 2017 ITRI ⼯工業技術研究院
Who use Kubernetes
6
Copyright 2017 ITRI ⼯工業技術研究院
Kubernetes 1.6 Scalability Update
5,000 node and 150,000 pod clusters
7
Copyright 2017 ITRI ⼯工業技術研究院
Kubernetes 1.6 Scalability Update (cont.)
API response latency for a
5000-node Kubernetes 1.6
cluster are less than 500ms,
and even 90th percentile is
less than about 100ms
8
Copyright 2017 ITRI ⼯工業技術研究院
Kubernetes Architecture
9
Copyright 2017 ITRI ⼯工業技術研究院
Kubernetes Architecture (cont.)
10
Copyright 2017 ITRI ⼯工業技術研究院
Kubernetes Architecture (cont.)
11
Copyright 2017 ITRI ⼯工業技術研究院
etcd
• Distributed key, value store
• Used for configuration and monitoring store
• Used for Service discovery
• JSON/REST API
12
Copyright 2017 ITRI ⼯工業技術研究院
flannel
• A virtual network that
gives a subnet to
each host for use with
container runtimes
13
Copyright 2017 ITRI ⼯工業技術研究院
The Key Concept
• Pod
• Smallest deployable unit
• Shared context
• Service
• Targets pods
• Long-lived
• Deployment (Replication
controller)
• Ensure N pods are running
• Pod template
• Label
• Key/value pair
• Organize, select objects
• Kubernetes
14
Copyright 2017 ITRI ⼯工業技術研究院
Nodes
• A node is a worker machine in
Kubernetes and may be a VM
or physical machine
• Multiple Pods can run on one
Node
15
Copyright 2017 ITRI ⼯工業技術研究院
Pods
• A group of one or more containers
• Containers within a pod share IP, port, namespaces and
 volumes.
16
Copyright 2017 ITRI ⼯工業技術研究院
Service
• Persistent
• Routes traffic across a set of
Pods
• Provide load balancer
• Provide discovery
• Provide stable service address
• Find pods by label selector
A Service is an abstraction
which defines a logical set of
Pods and a policy by which to
access them
17
Copyright 2017 ITRI ⼯工業技術研究院
Label
• Metadata with semantic
meaning
• Label selector
• Set of objects
18
Copyright 2017 ITRI ⼯工業技術研究院
Namespace
• Group + segment pods, rcs, volumes and secrets from each other
https://www.slideshare.net/imesh/multitenancy-in-c5
19
Copyright 2017 ITRI ⼯工業技術研究院
Deployment (Replication Controller)
• Provides declarative updates for Pods and ReplicaSets
• Rollout/ Roll back a ReplicaSet
• Scale up the deployment
20
Copyright 2017 ITRI ⼯工業技術研究院
Deployment
Deployment
Replica Set
Replica Set
Replica Set Replica Set
Pod Pod
Pod Pod Recommend using
Deployments instead of
directly using
ReplicaSets
21
Copyright 2017 ITRI ⼯工業技術研究院
Deployment (cont.)
• A Deployment provides declarative updates
for Pods and ReplicaSets
• Typical use case
▪ Create a Deployment to rollout a ReplicaSet
▪ Rollback to an earlier Deployment revision
▪ Scale up the Deployment to facilitate more load
▪ Use the status of the Deployment as an indicator that a rollout has stuck
▪ Clean up older ReplicaSets that you don’t need anymore
22
Copyright 2017 ITRI ⼯工業技術研究院
Scaling
Scaling is accomplished
by changing the number
of replicas in a
Deployment
23
Copyright 2017 ITRI ⼯工業技術研究院
Scaling (cont.)
24
Copyright 2017 ITRI ⼯工業技術研究院
Horizontal Pod Autoscaling
• Automatically scales the number
of pods in a replication controller,
deployment or replica set based
on observed CPU utilization
• Operates within user-defined min/
max bounds
• Set it and forget it
https://www.slideshare.net/DanielSmith272/whats-new-in-kubernetes
25
Copyright 2017 ITRI ⼯工業技術研究院
Canary Deployment
https://martinfowler.com/bliki/CanaryRelease.html
26
Copyright 2017 ITRI ⼯工業技術研究院
Canary Deployment (cont.)
https://martinfowler.com/bliki/CanaryRelease.html
27
Copyright 2017 ITRI ⼯工業技術研究院
Canary Deployment(cont.)
https://martinfowler.com/bliki/CanaryRelease.html
28
Copyright 2017 ITRI ⼯工業技術研究院
Rolling updates
Rolling updates allow Deployments'
update to take place with zero
downtime by incrementally updating
Pods instances with new ones.
29
Copyright 2017 ITRI ⼯工業技術研究院
Rolling updates (cont.)
If a Deployment is exposed
publicly, the Service will load-
balance the traffic only to
available Pods during the update.
30
Copyright 2017 ITRI ⼯工業技術研究院
Rolling updates (cont.)
31
Copyright 2017 ITRI ⼯工業技術研究院
Rolling updates (cont.)
32
Copyright 2017 ITRI ⼯工業技術研究院
Rolling updates (cont.)
• Allow the following actions:
▪ Promote an application from one environment to another (via container
image updates)
▪ Rollback to previous versions
▪ Continuous Integration and Continuous Delivery of applications with zero
downtime
33
Copyright 2017 ITRI ⼯工業技術研究院
Hands ON…..
34https://pixabay.com/zh/%E9%94%AE%E7%9B%98%E6%89%8B-%E9%94%AE%E7%9B%98-%E8%AE%A1%E7%AE%97-%E9%94%AE%E5%85%A5-2148723/
http://labs.play-with-k8s.com/
Thank you!
macchiang@gmail.com
Kubernetes Taiwan User Group

Weitere ähnliche Inhalte

Was ist angesagt?

Red Hat OpenShift on Bare Metal and Containerized Storage
Red Hat OpenShift on Bare Metal and Containerized StorageRed Hat OpenShift on Bare Metal and Containerized Storage
Red Hat OpenShift on Bare Metal and Containerized StorageGreg Hoelzer
 
Running I/O intensive workloads on Kubernetes, by Nati Shalom
Running I/O intensive workloads on Kubernetes, by Nati ShalomRunning I/O intensive workloads on Kubernetes, by Nati Shalom
Running I/O intensive workloads on Kubernetes, by Nati ShalomCloud Native Day Tel Aviv
 
Kangaroot open shift best practices - straight from the battlefield
Kangaroot open shift best practices - straight from the battlefieldKangaroot open shift best practices - straight from the battlefield
Kangaroot open shift best practices - straight from the battlefieldKangaroot
 
Canary Releases on Kubernetes with Spinnaker, Istio, & Prometheus (2020)
Canary Releases on Kubernetes with Spinnaker, Istio, & Prometheus (2020)Canary Releases on Kubernetes with Spinnaker, Istio, & Prometheus (2020)
Canary Releases on Kubernetes with Spinnaker, Istio, & Prometheus (2020)Kublr
 
Open shift 4 infra deep dive
Open shift 4    infra deep diveOpen shift 4    infra deep dive
Open shift 4 infra deep diveWinton Winton
 
Tectonic Summit 2016: Brandon Philips, CTO of CoreOS, Keynote
Tectonic Summit 2016: Brandon Philips, CTO of CoreOS, KeynoteTectonic Summit 2016: Brandon Philips, CTO of CoreOS, Keynote
Tectonic Summit 2016: Brandon Philips, CTO of CoreOS, KeynoteCoreOS
 
Running a Cost-Effective DynamoDB-Compatible Database on Managed Kubernetes S...
Running a Cost-Effective DynamoDB-Compatible Database on Managed Kubernetes S...Running a Cost-Effective DynamoDB-Compatible Database on Managed Kubernetes S...
Running a Cost-Effective DynamoDB-Compatible Database on Managed Kubernetes S...DevOps.com
 
GitOps - Operation By Pull Request
GitOps - Operation By Pull RequestGitOps - Operation By Pull Request
GitOps - Operation By Pull RequestKasper Nissen
 
5 Kubernetes Security Tools You Should Use
5 Kubernetes Security Tools You Should Use5 Kubernetes Security Tools You Should Use
5 Kubernetes Security Tools You Should UseDevOps.com
 
Image Scanning Best Practices for Containers and Kubernetes
Image Scanning Best Practices for Containers and KubernetesImage Scanning Best Practices for Containers and Kubernetes
Image Scanning Best Practices for Containers and KubernetesDevOps.com
 
Red Hat OpenShift & CoreOS by Ludovic Aelbrecht, Senior Solution Architect at...
Red Hat OpenShift & CoreOS by Ludovic Aelbrecht, Senior Solution Architect at...Red Hat OpenShift & CoreOS by Ludovic Aelbrecht, Senior Solution Architect at...
Red Hat OpenShift & CoreOS by Ludovic Aelbrecht, Senior Solution Architect at...Kangaroot
 
Kubernetes in Highly Restrictive Environments
Kubernetes in Highly Restrictive EnvironmentsKubernetes in Highly Restrictive Environments
Kubernetes in Highly Restrictive EnvironmentsKublr
 
Giving Back to Upstream | DockerCon 2019
Giving Back to Upstream | DockerCon 2019Giving Back to Upstream | DockerCon 2019
Giving Back to Upstream | DockerCon 2019Phil Estes
 
Five Lessons Learned from Large-scale Implementation of Kubernetes in the Ent...
Five Lessons Learned from Large-scale Implementation of Kubernetes in the Ent...Five Lessons Learned from Large-scale Implementation of Kubernetes in the Ent...
Five Lessons Learned from Large-scale Implementation of Kubernetes in the Ent...DevOps.com
 
OpenShift Application Development | DO288 | Red Hat OpenShift
OpenShift Application Development | DO288 | Red Hat OpenShiftOpenShift Application Development | DO288 | Red Hat OpenShift
OpenShift Application Development | DO288 | Red Hat OpenShiftGlobal Knowledge Technologies
 
Using source code management patterns to configure and secure your Kubernetes...
Using source code management patterns to configure and secure your Kubernetes...Using source code management patterns to configure and secure your Kubernetes...
Using source code management patterns to configure and secure your Kubernetes...Giovanni Galloro
 
Introduction to openshift
Introduction to openshiftIntroduction to openshift
Introduction to openshiftMamathaBusi
 
Ceph, Open Source, and the Path to Ubiquity in Storage - AACS Meetup 2014
Ceph, Open Source, and the Path to Ubiquity in Storage - AACS Meetup 2014Ceph, Open Source, and the Path to Ubiquity in Storage - AACS Meetup 2014
Ceph, Open Source, and the Path to Ubiquity in Storage - AACS Meetup 2014Patrick McGarry
 

Was ist angesagt? (20)

Red Hat OpenShift on Bare Metal and Containerized Storage
Red Hat OpenShift on Bare Metal and Containerized StorageRed Hat OpenShift on Bare Metal and Containerized Storage
Red Hat OpenShift on Bare Metal and Containerized Storage
 
Running I/O intensive workloads on Kubernetes, by Nati Shalom
Running I/O intensive workloads on Kubernetes, by Nati ShalomRunning I/O intensive workloads on Kubernetes, by Nati Shalom
Running I/O intensive workloads on Kubernetes, by Nati Shalom
 
Openshift argo cd_v1_2
Openshift argo cd_v1_2Openshift argo cd_v1_2
Openshift argo cd_v1_2
 
Kangaroot open shift best practices - straight from the battlefield
Kangaroot open shift best practices - straight from the battlefieldKangaroot open shift best practices - straight from the battlefield
Kangaroot open shift best practices - straight from the battlefield
 
Canary Releases on Kubernetes with Spinnaker, Istio, & Prometheus (2020)
Canary Releases on Kubernetes with Spinnaker, Istio, & Prometheus (2020)Canary Releases on Kubernetes with Spinnaker, Istio, & Prometheus (2020)
Canary Releases on Kubernetes with Spinnaker, Istio, & Prometheus (2020)
 
Open shift 4 infra deep dive
Open shift 4    infra deep diveOpen shift 4    infra deep dive
Open shift 4 infra deep dive
 
Tectonic Summit 2016: Brandon Philips, CTO of CoreOS, Keynote
Tectonic Summit 2016: Brandon Philips, CTO of CoreOS, KeynoteTectonic Summit 2016: Brandon Philips, CTO of CoreOS, Keynote
Tectonic Summit 2016: Brandon Philips, CTO of CoreOS, Keynote
 
Running a Cost-Effective DynamoDB-Compatible Database on Managed Kubernetes S...
Running a Cost-Effective DynamoDB-Compatible Database on Managed Kubernetes S...Running a Cost-Effective DynamoDB-Compatible Database on Managed Kubernetes S...
Running a Cost-Effective DynamoDB-Compatible Database on Managed Kubernetes S...
 
GitOps - Operation By Pull Request
GitOps - Operation By Pull RequestGitOps - Operation By Pull Request
GitOps - Operation By Pull Request
 
5 Kubernetes Security Tools You Should Use
5 Kubernetes Security Tools You Should Use5 Kubernetes Security Tools You Should Use
5 Kubernetes Security Tools You Should Use
 
Image Scanning Best Practices for Containers and Kubernetes
Image Scanning Best Practices for Containers and KubernetesImage Scanning Best Practices for Containers and Kubernetes
Image Scanning Best Practices for Containers and Kubernetes
 
Red Hat OpenShift & CoreOS by Ludovic Aelbrecht, Senior Solution Architect at...
Red Hat OpenShift & CoreOS by Ludovic Aelbrecht, Senior Solution Architect at...Red Hat OpenShift & CoreOS by Ludovic Aelbrecht, Senior Solution Architect at...
Red Hat OpenShift & CoreOS by Ludovic Aelbrecht, Senior Solution Architect at...
 
Kubernetes in Highly Restrictive Environments
Kubernetes in Highly Restrictive EnvironmentsKubernetes in Highly Restrictive Environments
Kubernetes in Highly Restrictive Environments
 
Giving Back to Upstream | DockerCon 2019
Giving Back to Upstream | DockerCon 2019Giving Back to Upstream | DockerCon 2019
Giving Back to Upstream | DockerCon 2019
 
Five Lessons Learned from Large-scale Implementation of Kubernetes in the Ent...
Five Lessons Learned from Large-scale Implementation of Kubernetes in the Ent...Five Lessons Learned from Large-scale Implementation of Kubernetes in the Ent...
Five Lessons Learned from Large-scale Implementation of Kubernetes in the Ent...
 
OpenShift Application Development | DO288 | Red Hat OpenShift
OpenShift Application Development | DO288 | Red Hat OpenShiftOpenShift Application Development | DO288 | Red Hat OpenShift
OpenShift Application Development | DO288 | Red Hat OpenShift
 
Using source code management patterns to configure and secure your Kubernetes...
Using source code management patterns to configure and secure your Kubernetes...Using source code management patterns to configure and secure your Kubernetes...
Using source code management patterns to configure and secure your Kubernetes...
 
Introduction to openshift
Introduction to openshiftIntroduction to openshift
Introduction to openshift
 
Ceph, Open Source, and the Path to Ubiquity in Storage - AACS Meetup 2014
Ceph, Open Source, and the Path to Ubiquity in Storage - AACS Meetup 2014Ceph, Open Source, and the Path to Ubiquity in Storage - AACS Meetup 2014
Ceph, Open Source, and the Path to Ubiquity in Storage - AACS Meetup 2014
 
Kubernetes on DC/OS
Kubernetes on DC/OSKubernetes on DC/OS
Kubernetes on DC/OS
 

Ähnlich wie Kubernetes and devops

01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware
01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware
01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMwareVMUG IT
 
Kubernetes deployment on bare metal with container linux
Kubernetes deployment on bare metal with container linuxKubernetes deployment on bare metal with container linux
Kubernetes deployment on bare metal with container linuxmacchiang
 
Free GitOps Workshop
Free GitOps WorkshopFree GitOps Workshop
Free GitOps WorkshopWeaveworks
 
Persistent Storage for stateful applications on Kubernetes made easy with Ope...
Persistent Storage for stateful applications on Kubernetes made easy with Ope...Persistent Storage for stateful applications on Kubernetes made easy with Ope...
Persistent Storage for stateful applications on Kubernetes made easy with Ope...MayaData Inc
 
The path to a serverless-native era with Kubernetes
The path to a serverless-native era with KubernetesThe path to a serverless-native era with Kubernetes
The path to a serverless-native era with Kubernetessparkfabrik
 
給 RD 的 Kubernetes 初體驗 (gcpug 2019-06 version)
給 RD 的 Kubernetes 初體驗 (gcpug 2019-06 version)給 RD 的 Kubernetes 初體驗 (gcpug 2019-06 version)
給 RD 的 Kubernetes 初體驗 (gcpug 2019-06 version)William Yeh
 
Free GitOps Workshop (with Intro to Kubernetes & GitOps)
Free GitOps Workshop (with Intro to Kubernetes & GitOps)Free GitOps Workshop (with Intro to Kubernetes & GitOps)
Free GitOps Workshop (with Intro to Kubernetes & GitOps)Weaveworks
 
SCaLE 20X: Kubernetes Cloud Cost Monitoring with OpenCost & Optimization Stra...
SCaLE 20X: Kubernetes Cloud Cost Monitoring with OpenCost & Optimization Stra...SCaLE 20X: Kubernetes Cloud Cost Monitoring with OpenCost & Optimization Stra...
SCaLE 20X: Kubernetes Cloud Cost Monitoring with OpenCost & Optimization Stra...Matt Ray
 
Weave GitOps - continuous delivery for any Kubernetes
Weave GitOps - continuous delivery for any KubernetesWeave GitOps - continuous delivery for any Kubernetes
Weave GitOps - continuous delivery for any KubernetesWeaveworks
 
Containers and Kubernetes
Containers and KubernetesContainers and Kubernetes
Containers and KubernetesAltoros
 
Oracle - Continuous Delivery NYC meetup, June 07, 2018
Oracle - Continuous Delivery NYC meetup, June 07, 2018Oracle - Continuous Delivery NYC meetup, June 07, 2018
Oracle - Continuous Delivery NYC meetup, June 07, 2018Oracle Developers
 
Kubernetes Storage Webinar.pptx
Kubernetes Storage Webinar.pptxKubernetes Storage Webinar.pptx
Kubernetes Storage Webinar.pptxEnrico Rampazzo
 
DevConf 2017 - Realistic Container Platform Simulations
DevConf 2017 - Realistic Container Platform SimulationsDevConf 2017 - Realistic Container Platform Simulations
DevConf 2017 - Realistic Container Platform SimulationsJeremy Eder
 
The ultimate Kubernetes Deployment Checklist - Infra to Microservices
The ultimate Kubernetes Deployment Checklist - Infra to MicroservicesThe ultimate Kubernetes Deployment Checklist - Infra to Microservices
The ultimate Kubernetes Deployment Checklist - Infra to MicroservicesPrakarsh -
 
Chef and OpenStack Workshop from ChefConf 2013
Chef and OpenStack Workshop from ChefConf 2013Chef and OpenStack Workshop from ChefConf 2013
Chef and OpenStack Workshop from ChefConf 2013Matt Ray
 
Fabio rapposelli pks-vmug
Fabio rapposelli   pks-vmugFabio rapposelli   pks-vmug
Fabio rapposelli pks-vmugVMUG IT
 
Kubernetes for Enterprise DevOps
Kubernetes for Enterprise DevOpsKubernetes for Enterprise DevOps
Kubernetes for Enterprise DevOpsJim Bugwadia
 

Ähnlich wie Kubernetes and devops (20)

01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware
01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware
01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware
 
Moby KubeCon 2017
Moby KubeCon 2017Moby KubeCon 2017
Moby KubeCon 2017
 
Kubernetes deployment on bare metal with container linux
Kubernetes deployment on bare metal with container linuxKubernetes deployment on bare metal with container linux
Kubernetes deployment on bare metal with container linux
 
Free GitOps Workshop
Free GitOps WorkshopFree GitOps Workshop
Free GitOps Workshop
 
Persistent Storage for stateful applications on Kubernetes made easy with Ope...
Persistent Storage for stateful applications on Kubernetes made easy with Ope...Persistent Storage for stateful applications on Kubernetes made easy with Ope...
Persistent Storage for stateful applications on Kubernetes made easy with Ope...
 
Intro to kubernetes
Intro to kubernetesIntro to kubernetes
Intro to kubernetes
 
The path to a serverless-native era with Kubernetes
The path to a serverless-native era with KubernetesThe path to a serverless-native era with Kubernetes
The path to a serverless-native era with Kubernetes
 
Plataforma DevOps en OpenShift
Plataforma DevOps en OpenShiftPlataforma DevOps en OpenShift
Plataforma DevOps en OpenShift
 
給 RD 的 Kubernetes 初體驗 (gcpug 2019-06 version)
給 RD 的 Kubernetes 初體驗 (gcpug 2019-06 version)給 RD 的 Kubernetes 初體驗 (gcpug 2019-06 version)
給 RD 的 Kubernetes 初體驗 (gcpug 2019-06 version)
 
Free GitOps Workshop (with Intro to Kubernetes & GitOps)
Free GitOps Workshop (with Intro to Kubernetes & GitOps)Free GitOps Workshop (with Intro to Kubernetes & GitOps)
Free GitOps Workshop (with Intro to Kubernetes & GitOps)
 
SCaLE 20X: Kubernetes Cloud Cost Monitoring with OpenCost & Optimization Stra...
SCaLE 20X: Kubernetes Cloud Cost Monitoring with OpenCost & Optimization Stra...SCaLE 20X: Kubernetes Cloud Cost Monitoring with OpenCost & Optimization Stra...
SCaLE 20X: Kubernetes Cloud Cost Monitoring with OpenCost & Optimization Stra...
 
Weave GitOps - continuous delivery for any Kubernetes
Weave GitOps - continuous delivery for any KubernetesWeave GitOps - continuous delivery for any Kubernetes
Weave GitOps - continuous delivery for any Kubernetes
 
Containers and Kubernetes
Containers and KubernetesContainers and Kubernetes
Containers and Kubernetes
 
Oracle - Continuous Delivery NYC meetup, June 07, 2018
Oracle - Continuous Delivery NYC meetup, June 07, 2018Oracle - Continuous Delivery NYC meetup, June 07, 2018
Oracle - Continuous Delivery NYC meetup, June 07, 2018
 
Kubernetes Storage Webinar.pptx
Kubernetes Storage Webinar.pptxKubernetes Storage Webinar.pptx
Kubernetes Storage Webinar.pptx
 
DevConf 2017 - Realistic Container Platform Simulations
DevConf 2017 - Realistic Container Platform SimulationsDevConf 2017 - Realistic Container Platform Simulations
DevConf 2017 - Realistic Container Platform Simulations
 
The ultimate Kubernetes Deployment Checklist - Infra to Microservices
The ultimate Kubernetes Deployment Checklist - Infra to MicroservicesThe ultimate Kubernetes Deployment Checklist - Infra to Microservices
The ultimate Kubernetes Deployment Checklist - Infra to Microservices
 
Chef and OpenStack Workshop from ChefConf 2013
Chef and OpenStack Workshop from ChefConf 2013Chef and OpenStack Workshop from ChefConf 2013
Chef and OpenStack Workshop from ChefConf 2013
 
Fabio rapposelli pks-vmug
Fabio rapposelli   pks-vmugFabio rapposelli   pks-vmug
Fabio rapposelli pks-vmug
 
Kubernetes for Enterprise DevOps
Kubernetes for Enterprise DevOpsKubernetes for Enterprise DevOps
Kubernetes for Enterprise DevOps
 

Kürzlich hochgeladen

Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 

Kürzlich hochgeladen (20)

YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 

Kubernetes and devops

  • 2. Copyright 2017 ITRI ⼯工業技術研究院 Agenda • Kubernetes Introduction • Scaling and Upgrading with K8S • Hands ON (Demo) • Q & A 2
  • 3. Copyright 2017 ITRI ⼯工業技術研究院 OpenStack Summit 2017
 Will Kubernetes Steal the Show? • Before the summit: ▪ OpenStack on Kubernetes? ▪ Kubernetes on OpenStack? ▪ How about Kubernetes on OpenStack on Kubernetes? • The list of breakaway sessions ▪ Kubernetes and OpenStack at Scale. ▪ OpenDaylight Kubernetes & OpenStack Magnum integration. ▪ ESCaaS 4.0, Unified Management Platform of OpenStack and Kubernetes. ▪ Hybrid Cloud Kubernetes. ▪ Hybrid Orchestration: Kubernetes on Bare Metal and OpenStack Demo. ▪ Panel: Enterprise Adoption of Kubernetes and Containers. https://thenewstack.io/openstack-summit-2017-will-kubernetes-stealing-show/ 3
  • 4. Copyright 2017 ITRI ⼯工業技術研究院 What’s Kubernetes • “Kubernetes” is Greek for captain or pilot • Experiences from Google and design by Goolge • Kubernetes is a production-grade, open-source platform that orchestrates the placement (scheduling) and execution of application containers within and across computer clusters. • Masters manage the cluster and the nodes are used to host the running applications. 4
  • 5. Copyright 2017 ITRI ⼯工業技術研究院 Why Kubernetes 5 • Automatic binpacking • Horizontal scaling • Automated rollouts and rollback • Service monitoring • Self-healing • Service discovery and load balancing • 100% Open source, written in Go
  • 6. Copyright 2017 ITRI ⼯工業技術研究院 Who use Kubernetes 6
  • 7. Copyright 2017 ITRI ⼯工業技術研究院 Kubernetes 1.6 Scalability Update 5,000 node and 150,000 pod clusters 7
  • 8. Copyright 2017 ITRI ⼯工業技術研究院 Kubernetes 1.6 Scalability Update (cont.) API response latency for a 5000-node Kubernetes 1.6 cluster are less than 500ms, and even 90th percentile is less than about 100ms 8
  • 9. Copyright 2017 ITRI ⼯工業技術研究院 Kubernetes Architecture 9
  • 10. Copyright 2017 ITRI ⼯工業技術研究院 Kubernetes Architecture (cont.) 10
  • 11. Copyright 2017 ITRI ⼯工業技術研究院 Kubernetes Architecture (cont.) 11
  • 12. Copyright 2017 ITRI ⼯工業技術研究院 etcd • Distributed key, value store • Used for configuration and monitoring store • Used for Service discovery • JSON/REST API 12
  • 13. Copyright 2017 ITRI ⼯工業技術研究院 flannel • A virtual network that gives a subnet to each host for use with container runtimes 13
  • 14. Copyright 2017 ITRI ⼯工業技術研究院 The Key Concept • Pod • Smallest deployable unit • Shared context • Service • Targets pods • Long-lived • Deployment (Replication controller) • Ensure N pods are running • Pod template • Label • Key/value pair • Organize, select objects • Kubernetes 14
  • 15. Copyright 2017 ITRI ⼯工業技術研究院 Nodes • A node is a worker machine in Kubernetes and may be a VM or physical machine • Multiple Pods can run on one Node 15
  • 16. Copyright 2017 ITRI ⼯工業技術研究院 Pods • A group of one or more containers • Containers within a pod share IP, port, namespaces and  volumes. 16
  • 17. Copyright 2017 ITRI ⼯工業技術研究院 Service • Persistent • Routes traffic across a set of Pods • Provide load balancer • Provide discovery • Provide stable service address • Find pods by label selector A Service is an abstraction which defines a logical set of Pods and a policy by which to access them 17
  • 18. Copyright 2017 ITRI ⼯工業技術研究院 Label • Metadata with semantic meaning • Label selector • Set of objects 18
  • 19. Copyright 2017 ITRI ⼯工業技術研究院 Namespace • Group + segment pods, rcs, volumes and secrets from each other https://www.slideshare.net/imesh/multitenancy-in-c5 19
  • 20. Copyright 2017 ITRI ⼯工業技術研究院 Deployment (Replication Controller) • Provides declarative updates for Pods and ReplicaSets • Rollout/ Roll back a ReplicaSet • Scale up the deployment 20
  • 21. Copyright 2017 ITRI ⼯工業技術研究院 Deployment Deployment Replica Set Replica Set Replica Set Replica Set Pod Pod Pod Pod Recommend using Deployments instead of directly using ReplicaSets 21
  • 22. Copyright 2017 ITRI ⼯工業技術研究院 Deployment (cont.) • A Deployment provides declarative updates for Pods and ReplicaSets • Typical use case ▪ Create a Deployment to rollout a ReplicaSet ▪ Rollback to an earlier Deployment revision ▪ Scale up the Deployment to facilitate more load ▪ Use the status of the Deployment as an indicator that a rollout has stuck ▪ Clean up older ReplicaSets that you don’t need anymore 22
  • 23. Copyright 2017 ITRI ⼯工業技術研究院 Scaling Scaling is accomplished by changing the number of replicas in a Deployment 23
  • 24. Copyright 2017 ITRI ⼯工業技術研究院 Scaling (cont.) 24
  • 25. Copyright 2017 ITRI ⼯工業技術研究院 Horizontal Pod Autoscaling • Automatically scales the number of pods in a replication controller, deployment or replica set based on observed CPU utilization • Operates within user-defined min/ max bounds • Set it and forget it https://www.slideshare.net/DanielSmith272/whats-new-in-kubernetes 25
  • 26. Copyright 2017 ITRI ⼯工業技術研究院 Canary Deployment https://martinfowler.com/bliki/CanaryRelease.html 26
  • 27. Copyright 2017 ITRI ⼯工業技術研究院 Canary Deployment (cont.) https://martinfowler.com/bliki/CanaryRelease.html 27
  • 28. Copyright 2017 ITRI ⼯工業技術研究院 Canary Deployment(cont.) https://martinfowler.com/bliki/CanaryRelease.html 28
  • 29. Copyright 2017 ITRI ⼯工業技術研究院 Rolling updates Rolling updates allow Deployments' update to take place with zero downtime by incrementally updating Pods instances with new ones. 29
  • 30. Copyright 2017 ITRI ⼯工業技術研究院 Rolling updates (cont.) If a Deployment is exposed publicly, the Service will load- balance the traffic only to available Pods during the update. 30
  • 31. Copyright 2017 ITRI ⼯工業技術研究院 Rolling updates (cont.) 31
  • 32. Copyright 2017 ITRI ⼯工業技術研究院 Rolling updates (cont.) 32
  • 33. Copyright 2017 ITRI ⼯工業技術研究院 Rolling updates (cont.) • Allow the following actions: ▪ Promote an application from one environment to another (via container image updates) ▪ Rollback to previous versions ▪ Continuous Integration and Continuous Delivery of applications with zero downtime 33
  • 34. Copyright 2017 ITRI ⼯工業技術研究院 Hands ON….. 34https://pixabay.com/zh/%E9%94%AE%E7%9B%98%E6%89%8B-%E9%94%AE%E7%9B%98-%E8%AE%A1%E7%AE%97-%E9%94%AE%E5%85%A5-2148723/ http://labs.play-with-k8s.com/