SlideShare ist ein Scribd-Unternehmen logo
1 von 43
Downloaden Sie, um offline zu lesen
Kubernetes
Build High Quality Container
Service Rapidly via Kubernetes1
Who am I ?
2
3
Why we need kubernetes?
4
And you need to manage them at all time…..
5
What is kubernetes?
6
Outline
 Introduction
 Architecture
 Pod
 Replication controller
 Deployment
 Service
7
What is Kubernetes
 100% Open-source , written by Go
 Platform for automating deployment, scaling, and operations
 Inspired and informed by Google’s experiences and internal systems
 The name meaning “helmsman” or “pilot”
 Aka K8s, which is an abbreviation derived by replacing the 8 letters
“ubernete” with 8
8
9
10
11
How to install?
 Portable Multi-Node Cluster
 Master
 Node1
12
Use kubeadm to install
 Like docker swarm
 kubeadm init, and then
 And run the command to connect the master and install
kubernetes
13
14
15
Pod
 A Group of co-located containers(one or more)
 Shared the same value and network namespace/ip
port
 Restart pofile
 Healthy
 Templates(yaml)
16
17
18
19
Pod healthy
 Liveness probes
 When to restart a Container
 ExecAction
 Catch a deadlock
 Restart state help to record log
 InitialDelaySeconds
 PeriodSeconds
 Readiness Probe
 Remove all request
 Not sending message to this pod 20
The healthy of pod
21
label
 Arbitrary metadata
 The connect with Replication controller and pods
 key/value pairs
 identify a set of objects via a label selector
22
23
Replication Controller
 Ensures that a specified number of pod “replicas” running
at any time
 Flexible scale
 Auto change the replica
 Rolling Update
24
25
26
27
28
The test of replicationcontroller
 The yaml file
29
 We create the replicationController, which pod of label is test:rc
 And then we change the pod’s labels from rc to rc2
 Because the replicationController get the information that no pod
label is “rc”, so it create the new one
30
 And we delete the pod
 Yes, the pod is different, that because the
ReplicationController keep number is 1 of the pod
which label is “rc”
31
 And we can also change the number of replica
 Ofcourse, you can shrink the number of replica
32
Rolling update
 Use by deployment and ReplicationController
 Update period
 Reverse the version(if you need)
33
 Now we have 4 v1(nginx1.10.5) pod
 And we set rolling update our replica
 Finally we update all pod to v2(nginx 1.11.5)
34
Deployment
 K8s of latest version will recommend us
use deployment replace ReplicationController
 All features of ReplicationController
 Check the status of a Deployment to see if it succeeds or
not
 Provides declarative updates for Pods and Replica Sets
 Pause and resume
 More powerful
35
Test: rolling update
 set image
kubectl set image deployment <deployment>
<container>=<image>
 Replace
change the yaml file and use replace to polling update
kubectl replace -f <yaml>
 Edit
kubectl edit deployment <deployment>
36
set image
37
Edit
38
Service
 Defines a logical set of Pods and a policy by which to
access them.
 A service rule defines a TCP or UDP port reservation
 Provides a way for applications running in containers to
connect
 Use labels
39
The load balance service
40
41
Openstack Magnum
 Container as a service
 Conductor
 Uses OpenStack Heat to deploy VM’s with kubernetes
 Uses Docker API
 Uses Kubernetes API (or other container orchestrator)
 If you are interesting , just try it !
42
THANK YOU!!
Q&A
43

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Lifecycle of a pod
Lifecycle of a podLifecycle of a pod
Lifecycle of a pod
 
Kubernetes 101
Kubernetes 101Kubernetes 101
Kubernetes 101
 
Kubernetes 101 and Fun
Kubernetes 101 and FunKubernetes 101 and Fun
Kubernetes 101 and Fun
 
Introduction to Kubernetes
Introduction to KubernetesIntroduction to Kubernetes
Introduction to Kubernetes
 
Rex gke-clustree
Rex gke-clustreeRex gke-clustree
Rex gke-clustree
 
KubeCon EU 2016: Leveraging ephemeral namespaces in a CI/CD pipeline
KubeCon EU 2016: Leveraging ephemeral namespaces in a CI/CD pipelineKubeCon EU 2016: Leveraging ephemeral namespaces in a CI/CD pipeline
KubeCon EU 2016: Leveraging ephemeral namespaces in a CI/CD pipeline
 
Kubernetes - State of the Union (Q1-2016)
Kubernetes - State of the Union (Q1-2016)Kubernetes - State of the Union (Q1-2016)
Kubernetes - State of the Union (Q1-2016)
 
A Primer on Kubernetes and Google Container Engine
A Primer on Kubernetes and Google Container EngineA Primer on Kubernetes and Google Container Engine
A Primer on Kubernetes and Google Container Engine
 
DevOps Fest 2020. Сергій Калінець. Building Data Streaming Platform with Apac...
DevOps Fest 2020. Сергій Калінець. Building Data Streaming Platform with Apac...DevOps Fest 2020. Сергій Калінець. Building Data Streaming Platform with Apac...
DevOps Fest 2020. Сергій Калінець. Building Data Streaming Platform with Apac...
 
Network plugins for kubernetes
Network plugins for kubernetesNetwork plugins for kubernetes
Network plugins for kubernetes
 
Whose Job Is It Anyway? Kubernetes, CRI, & Container Runtimes
Whose Job Is It Anyway? Kubernetes, CRI, & Container RuntimesWhose Job Is It Anyway? Kubernetes, CRI, & Container Runtimes
Whose Job Is It Anyway? Kubernetes, CRI, & Container Runtimes
 
Kubernetes Webinar Series - Exploring Daemon Sets and Jobs
Kubernetes Webinar Series - Exploring Daemon Sets and JobsKubernetes Webinar Series - Exploring Daemon Sets and Jobs
Kubernetes Webinar Series - Exploring Daemon Sets and Jobs
 
kubernetes for beginners
kubernetes for beginnerskubernetes for beginners
kubernetes for beginners
 
KubeCon EU 2016: Transforming the Government
KubeCon EU 2016: Transforming the Government KubeCon EU 2016: Transforming the Government
KubeCon EU 2016: Transforming the Government
 
Kubernetes
KubernetesKubernetes
Kubernetes
 
Kubernetes Networking 101
Kubernetes Networking 101Kubernetes Networking 101
Kubernetes Networking 101
 
Docker orchestration with Kubernetes
Docker orchestration with KubernetesDocker orchestration with Kubernetes
Docker orchestration with Kubernetes
 
OpenStack Magnum
OpenStack MagnumOpenStack Magnum
OpenStack Magnum
 
KubeCon EU 2016 Keynote: Pushing Kubernetes Forward
KubeCon EU 2016 Keynote: Pushing Kubernetes ForwardKubeCon EU 2016 Keynote: Pushing Kubernetes Forward
KubeCon EU 2016 Keynote: Pushing Kubernetes Forward
 
Kubernetes Networking
Kubernetes NetworkingKubernetes Networking
Kubernetes Networking
 

Ähnlich wie K8s

Ähnlich wie K8s (20)

DevOps Summit 2016 - The immutable Journey
DevOps Summit 2016 - The immutable JourneyDevOps Summit 2016 - The immutable Journey
DevOps Summit 2016 - The immutable Journey
 
Kubernetes cheetsheet.pdf
Kubernetes cheetsheet.pdfKubernetes cheetsheet.pdf
Kubernetes cheetsheet.pdf
 
Kubernetes - Sailing a Sea of Containers
Kubernetes - Sailing a Sea of ContainersKubernetes - Sailing a Sea of Containers
Kubernetes - Sailing a Sea of Containers
 
Hands-On Introduction to Kubernetes at LISA17
Hands-On Introduction to Kubernetes at LISA17Hands-On Introduction to Kubernetes at LISA17
Hands-On Introduction to Kubernetes at LISA17
 
Kubernetes in Google Cloud
Kubernetes in Google CloudKubernetes in Google Cloud
Kubernetes in Google Cloud
 
Kubernetes
KubernetesKubernetes
Kubernetes
 
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
 
Flowable on Kubenetes
Flowable on KubenetesFlowable on Kubenetes
Flowable on Kubenetes
 
DevOps Days Boston 2017: Real-world Kubernetes for DevOps
DevOps Days Boston 2017: Real-world Kubernetes for DevOpsDevOps Days Boston 2017: Real-world Kubernetes for DevOps
DevOps Days Boston 2017: Real-world Kubernetes for DevOps
 
Production Grade Kubernetes Applications
Production Grade Kubernetes ApplicationsProduction Grade Kubernetes Applications
Production Grade Kubernetes Applications
 
Kubernetes Architecture with Components
 Kubernetes Architecture with Components Kubernetes Architecture with Components
Kubernetes Architecture with Components
 
Salvatore Incandela, Fabio Marinelli - Using Spinnaker to Create a Developmen...
Salvatore Incandela, Fabio Marinelli - Using Spinnaker to Create a Developmen...Salvatore Incandela, Fabio Marinelli - Using Spinnaker to Create a Developmen...
Salvatore Incandela, Fabio Marinelli - Using Spinnaker to Create a Developmen...
 
Kubernetes meetup 102
Kubernetes meetup 102Kubernetes meetup 102
Kubernetes meetup 102
 
Containerize! Between Docker and Jube.
Containerize! Between Docker and Jube.Containerize! Between Docker and Jube.
Containerize! Between Docker and Jube.
 
AKS: k8s e azure
AKS: k8s e azureAKS: k8s e azure
AKS: k8s e azure
 
Kubernetes for Java developers
Kubernetes for Java developersKubernetes for Java developers
Kubernetes for Java developers
 
Mete Atamel "Resilient microservices with kubernetes"
Mete Atamel "Resilient microservices with kubernetes"Mete Atamel "Resilient microservices with kubernetes"
Mete Atamel "Resilient microservices with kubernetes"
 
A brief study on Kubernetes and its components
A brief study on Kubernetes and its componentsA brief study on Kubernetes and its components
A brief study on Kubernetes and its components
 
Kubernetes 101
Kubernetes 101Kubernetes 101
Kubernetes 101
 
Jenkins_K8s (2).pptx
Jenkins_K8s (2).pptxJenkins_K8s (2).pptx
Jenkins_K8s (2).pptx
 

Kürzlich hochgeladen

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Kürzlich hochgeladen (20)

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 

K8s

  • 1. Kubernetes Build High Quality Container Service Rapidly via Kubernetes1
  • 2. Who am I ? 2
  • 3. 3
  • 4. Why we need kubernetes? 4
  • 5. And you need to manage them at all time….. 5
  • 7. Outline  Introduction  Architecture  Pod  Replication controller  Deployment  Service 7
  • 8. What is Kubernetes  100% Open-source , written by Go  Platform for automating deployment, scaling, and operations  Inspired and informed by Google’s experiences and internal systems  The name meaning “helmsman” or “pilot”  Aka K8s, which is an abbreviation derived by replacing the 8 letters “ubernete” with 8 8
  • 9. 9
  • 10. 10
  • 11. 11
  • 12. How to install?  Portable Multi-Node Cluster  Master  Node1 12
  • 13. Use kubeadm to install  Like docker swarm  kubeadm init, and then  And run the command to connect the master and install kubernetes 13
  • 14. 14
  • 15. 15
  • 16. Pod  A Group of co-located containers(one or more)  Shared the same value and network namespace/ip port  Restart pofile  Healthy  Templates(yaml) 16
  • 17. 17
  • 18. 18
  • 19. 19
  • 20. Pod healthy  Liveness probes  When to restart a Container  ExecAction  Catch a deadlock  Restart state help to record log  InitialDelaySeconds  PeriodSeconds  Readiness Probe  Remove all request  Not sending message to this pod 20
  • 21. The healthy of pod 21
  • 22. label  Arbitrary metadata  The connect with Replication controller and pods  key/value pairs  identify a set of objects via a label selector 22
  • 23. 23
  • 24. Replication Controller  Ensures that a specified number of pod “replicas” running at any time  Flexible scale  Auto change the replica  Rolling Update 24
  • 25. 25
  • 26. 26
  • 27. 27
  • 28. 28
  • 29. The test of replicationcontroller  The yaml file 29
  • 30.  We create the replicationController, which pod of label is test:rc  And then we change the pod’s labels from rc to rc2  Because the replicationController get the information that no pod label is “rc”, so it create the new one 30
  • 31.  And we delete the pod  Yes, the pod is different, that because the ReplicationController keep number is 1 of the pod which label is “rc” 31
  • 32.  And we can also change the number of replica  Ofcourse, you can shrink the number of replica 32
  • 33. Rolling update  Use by deployment and ReplicationController  Update period  Reverse the version(if you need) 33
  • 34.  Now we have 4 v1(nginx1.10.5) pod  And we set rolling update our replica  Finally we update all pod to v2(nginx 1.11.5) 34
  • 35. Deployment  K8s of latest version will recommend us use deployment replace ReplicationController  All features of ReplicationController  Check the status of a Deployment to see if it succeeds or not  Provides declarative updates for Pods and Replica Sets  Pause and resume  More powerful 35
  • 36. Test: rolling update  set image kubectl set image deployment <deployment> <container>=<image>  Replace change the yaml file and use replace to polling update kubectl replace -f <yaml>  Edit kubectl edit deployment <deployment> 36
  • 39. Service  Defines a logical set of Pods and a policy by which to access them.  A service rule defines a TCP or UDP port reservation  Provides a way for applications running in containers to connect  Use labels 39
  • 40. The load balance service 40
  • 41. 41
  • 42. Openstack Magnum  Container as a service  Conductor  Uses OpenStack Heat to deploy VM’s with kubernetes  Uses Docker API  Uses Kubernetes API (or other container orchestrator)  If you are interesting , just try it ! 42