SlideShare una empresa de Scribd logo
1 de 21
Descargar para leer sin conexión
© 2014 VMware Inc. All rights
reserved.
Introduction to Kubernetes
Date: 17-01-2015
Vaibhav
Agenda
• Talk 1: Commentary on google ‘Omega’ paper
• Talk 2: Introduction to Kubernetes with example
• Talk 3: Kubernetes Architecture
• Talk 4: Kubernetes golang code structure
• Talk 5: Areas to contribute in Kubernetes
• Talk 6: VMware`s contribution to Kubernetes
10
What is Kubernetes?
• System for Container Cluster Management
• Open Sourced by Google, launched in June 2014, Google I/O
• Supports Rackspace,GCE, CoreOS, Azure, vSphere
• Manages Docker containers as a default implementation but it will be
supporting other linux containers soon.
• Kubernetes is:
• lean: lightweight, simple, accessible
• portable: public, private, hybrid, multi cloud
• extensible: modular, pluggable, hookable, composable
• self-healing: auto-placement, auto-restart, auto-replication
11
Kubernetes basic structure
12
Key Concepts
 Master
 Minion
 Pod : Grouping for Containers
 Service and Labels
 Container
 Kubernetes Node
 Kubelet
 Kubernetes Proxy
 API Server
 etcd
 cAdvisor
13
Master
• Master maintains the State of the Kubernetes Server runtime
• It is the point of entry for all the client calls to configure and manage
Kubernetes components like Minions, Pods, Containers
• kubelet provides commands to display pod, service and replication controller
status.
• All the persistent master state is stored in instance of etcd which is high
availability key-store.
• Master is also made up of following components
 API Server
 Scheduler
 Registries (Minon Registry, Pod Registry,Service Registry, Binding Registry)
14
Minion
• Represents the Host / VM where containers are created as per the supporterd
cloud providers.
• Minion is identified with a name and a HOST IP
• Key Components of a Minion;
 PODs
 Kubelet
 cAdvisor
 Proxy
• cAdvisor (Container Advisor) provides container users an understanding of
the resource usage and performance characteristics of their running containers.
It is a separate open-source project currently integrated with Kubernetes.
15
High Level Components
16
Important Terminologies
• Pod: It is the smallest scheduling unit in Kubernetes. It is a collection of
Docker containers that share volumes, and don’t have port conflicts.It can be
created easily by defining simple json file.
• kubectl: It is a command which provides master access to Kubernetes APIs.
Through it, the user can deploy, delete, list pods, among other things.
• kubelet: It is a service which runs on minions. It processes the container
manifests to ensure they are deployed as described by the user.
17
Pod Labels
• Labels are key/value pairs that are attached to objects, such as pods. Labels
can be used to organize and to select subsets of objects.
• Via a label selector, the client/user can identify a set of objects. The label
selector is the core grouping primitive in Kubernetes.
• Example of pod label;
 environment=dev, environment=qa, environment=production
 tier=frontend, tier=backend
 user=vkohli,user=shrutis
18
Simple pod example with two containers
Demo
Replication Controller
• Responsible for replicating a POD in case of failure.
• Replication Controllers should be defined during the creation of pods. Each
replicated pod will run on different minions in order to provide HA.
• Replication Manager is responsible for polling PODs and maintaining the pod
lifecycle.
• Replication controller can be defined in the similar way as pod using the json
file.
Replication Controller (contd.)
• Replication controller create new pods from templates, which is currently
inline to current replicationController object.
• Pods created by replication controller are subsequently updated.
• Lables play very important role in replication controller a loosely coupled
relation is created between pods and the controller.
• The replication controllers will generally carry same label as there pod to keep
the mapping.
22
Basic Functionality of Kubernetes
23
Services
• Abstraction of a Software Service (e.g a relational data base), consists of a
proxy’s port and selector to determine the pod the service request should go to.
• Elements of a Service
 Name
 Port of the proxy
 Labels of a Service
 Selector
 Uses LoadBalancer
 Container Port
24
• Kubernetes pods can come up and go down anytime, while each pod gets its
own IP address those IP addresses can not be relied upon to be stable over
time.
• Suppose if some set of pods (let's call them backends) provides functionality
to other pods (let's call it front end) it cannot be achieved if we heavily tight
them each other as pods can come up and go.
• So to encounter this problem we define services which provides abstraction
and it offers clients an IP and port pair which, when accessed, redirects to the
appropriate backends. The set of pods targeted for is determined by a label
selector.
25
Services (contd.)
Basic service functionality
26
Guest book example
• This is a simple mulit-tier web application using kubernetes and Docker.
• One redis-master for storage.
• 2 redis-slave replicated pods.
• And also 3 front-end replicated pods running a php web application .
• We will be also running some services in order to make the pods independent
of each other.
27
Demo
Current Kubernetes Implementation
• Fedora manual setup
• Fedora ansible setup
• GCE (Google Compute Engine)
• vSphere
• Windows Azure
• AWS(Amazon Web Services)
• Vagrant+Virtual box
• Coreos
• Many more…
https://github.com/GoogleCloudPlatform/kubernetes/tree/master/docs/getting-started-guides
29

Más contenido relacionado

La actualidad más candente

Introduction to Kubernetes
Introduction to KubernetesIntroduction to Kubernetes
Introduction to Kubernetesrajdeep
 
(Draft) Kubernetes - A Comprehensive Overview
(Draft) Kubernetes - A Comprehensive Overview(Draft) Kubernetes - A Comprehensive Overview
(Draft) Kubernetes - A Comprehensive OverviewBob Killen
 
Kubernetes: An Introduction to the Open Source Container Orchestration Platform
Kubernetes: An Introduction to the Open Source Container Orchestration PlatformKubernetes: An Introduction to the Open Source Container Orchestration Platform
Kubernetes: An Introduction to the Open Source Container Orchestration PlatformMichael O'Sullivan
 
Introduction to Kubernetes Workshop
Introduction to Kubernetes WorkshopIntroduction to Kubernetes Workshop
Introduction to Kubernetes WorkshopBob Killen
 
Marc Sluiter - 15 Kubernetes Features in 15 Minutes
Marc Sluiter - 15 Kubernetes Features in 15 MinutesMarc Sluiter - 15 Kubernetes Features in 15 Minutes
Marc Sluiter - 15 Kubernetes Features in 15 MinutesMarc Sluiter
 
Evolution of containers to kubernetes
Evolution of containers to kubernetesEvolution of containers to kubernetes
Evolution of containers to kubernetesKrishna-Kumar
 
Containers, Clusters and Kubernetes - Brendan Burns - Defrag 2014
Containers, Clusters and Kubernetes - Brendan Burns - Defrag 2014Containers, Clusters and Kubernetes - Brendan Burns - Defrag 2014
Containers, Clusters and Kubernetes - Brendan Burns - Defrag 2014brendandburns
 
Kubernetes
KubernetesKubernetes
Kuberneteserialc_w
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetesRishabh Indoria
 
Intro to cluster scheduler for Linux containers
Intro to cluster scheduler for Linux containersIntro to cluster scheduler for Linux containers
Intro to cluster scheduler for Linux containersKumar Gaurav
 
Docker Madison, Introduction to Kubernetes
Docker Madison, Introduction to KubernetesDocker Madison, Introduction to Kubernetes
Docker Madison, Introduction to KubernetesTimothy St. Clair
 
Scaling Microservices with Kubernetes
Scaling Microservices with KubernetesScaling Microservices with Kubernetes
Scaling Microservices with KubernetesDeivid Hahn Fração
 
Introduction to Kubernetes
Introduction to KubernetesIntroduction to Kubernetes
Introduction to KubernetesRoss Kukulinski
 
Introduction to Kubernetes
Introduction to KubernetesIntroduction to Kubernetes
Introduction to KubernetesVishal Biyani
 
Apache Stratos 4.1.0 Architecture
Apache Stratos 4.1.0 ArchitectureApache Stratos 4.1.0 Architecture
Apache Stratos 4.1.0 ArchitectureImesh Gunaratne
 
Deploying your first application with Kubernetes
Deploying your first application with KubernetesDeploying your first application with Kubernetes
Deploying your first application with KubernetesOVHcloud
 
Kubernetes - how to orchestrate containers
Kubernetes - how to orchestrate containersKubernetes - how to orchestrate containers
Kubernetes - how to orchestrate containersinovex GmbH
 

La actualidad más candente (20)

Introduction to Kubernetes
Introduction to KubernetesIntroduction to Kubernetes
Introduction to Kubernetes
 
(Draft) Kubernetes - A Comprehensive Overview
(Draft) Kubernetes - A Comprehensive Overview(Draft) Kubernetes - A Comprehensive Overview
(Draft) Kubernetes - A Comprehensive Overview
 
Kubernetes: An Introduction to the Open Source Container Orchestration Platform
Kubernetes: An Introduction to the Open Source Container Orchestration PlatformKubernetes: An Introduction to the Open Source Container Orchestration Platform
Kubernetes: An Introduction to the Open Source Container Orchestration Platform
 
Introduction to Kubernetes Workshop
Introduction to Kubernetes WorkshopIntroduction to Kubernetes Workshop
Introduction to Kubernetes Workshop
 
Marc Sluiter - 15 Kubernetes Features in 15 Minutes
Marc Sluiter - 15 Kubernetes Features in 15 MinutesMarc Sluiter - 15 Kubernetes Features in 15 Minutes
Marc Sluiter - 15 Kubernetes Features in 15 Minutes
 
Evolution of containers to kubernetes
Evolution of containers to kubernetesEvolution of containers to kubernetes
Evolution of containers to kubernetes
 
Containers, Clusters and Kubernetes - Brendan Burns - Defrag 2014
Containers, Clusters and Kubernetes - Brendan Burns - Defrag 2014Containers, Clusters and Kubernetes - Brendan Burns - Defrag 2014
Containers, Clusters and Kubernetes - Brendan Burns - Defrag 2014
 
Kubernetes
KubernetesKubernetes
Kubernetes
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetes
 
Intro to cluster scheduler for Linux containers
Intro to cluster scheduler for Linux containersIntro to cluster scheduler for Linux containers
Intro to cluster scheduler for Linux containers
 
Docker Madison, Introduction to Kubernetes
Docker Madison, Introduction to KubernetesDocker Madison, Introduction to Kubernetes
Docker Madison, Introduction to Kubernetes
 
Scaling Microservices with Kubernetes
Scaling Microservices with KubernetesScaling Microservices with Kubernetes
Scaling Microservices with Kubernetes
 
Introduction to Kubernetes
Introduction to KubernetesIntroduction to Kubernetes
Introduction to Kubernetes
 
Kubernetes Basics
Kubernetes BasicsKubernetes Basics
Kubernetes Basics
 
Introduction to Kubernetes
Introduction to KubernetesIntroduction to Kubernetes
Introduction to Kubernetes
 
Apache Stratos 4.1.0 Architecture
Apache Stratos 4.1.0 ArchitectureApache Stratos 4.1.0 Architecture
Apache Stratos 4.1.0 Architecture
 
Deploying your first application with Kubernetes
Deploying your first application with KubernetesDeploying your first application with Kubernetes
Deploying your first application with Kubernetes
 
Kubernetes - how to orchestrate containers
Kubernetes - how to orchestrate containersKubernetes - how to orchestrate containers
Kubernetes - how to orchestrate containers
 
Kubernetes
KubernetesKubernetes
Kubernetes
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetes
 

Destacado

PGBM01 - MBA Financial Management And Control (2015-16 Trm1 A)Pgbm01 workshop...
PGBM01 - MBA Financial Management And Control (2015-16 Trm1 A)Pgbm01 workshop...PGBM01 - MBA Financial Management And Control (2015-16 Trm1 A)Pgbm01 workshop...
PGBM01 - MBA Financial Management And Control (2015-16 Trm1 A)Pgbm01 workshop...Aquamarine Emerald
 
Presentacion 1226169794271228-9
Presentacion 1226169794271228-9Presentacion 1226169794271228-9
Presentacion 1226169794271228-9Cesar Pacheco Cid
 
Islaami Akhlaqo Aadaab
Islaami Akhlaqo AadaabIslaami Akhlaqo Aadaab
Islaami Akhlaqo AadaabWajid Malik
 
Experience 2015 Survey Results
Experience 2015 Survey ResultsExperience 2015 Survey Results
Experience 2015 Survey ResultsRachel E. Black
 
Understanding Big Data for policy professionals
Understanding Big Data for policy professionalsUnderstanding Big Data for policy professionals
Understanding Big Data for policy professionalsAlex Jouravlev
 
Dự Thảo hợp đồng mua bán căn hộ Panorama Nha Trang
Dự Thảo hợp đồng mua bán căn hộ Panorama Nha TrangDự Thảo hợp đồng mua bán căn hộ Panorama Nha Trang
Dự Thảo hợp đồng mua bán căn hộ Panorama Nha TrangThuat Bui
 
Hợp đồng mẫu the cbd
Hợp đồng mẫu the cbdHợp đồng mẫu the cbd
Hợp đồng mẫu the cbdLuyên Trần
 

Destacado (14)

Presentation_NEW.PPTX
Presentation_NEW.PPTXPresentation_NEW.PPTX
Presentation_NEW.PPTX
 
Jazmany Averos Zúñiga
Jazmany Averos ZúñigaJazmany Averos Zúñiga
Jazmany Averos Zúñiga
 
PGBM01 - MBA Financial Management And Control (2015-16 Trm1 A)Pgbm01 workshop...
PGBM01 - MBA Financial Management And Control (2015-16 Trm1 A)Pgbm01 workshop...PGBM01 - MBA Financial Management And Control (2015-16 Trm1 A)Pgbm01 workshop...
PGBM01 - MBA Financial Management And Control (2015-16 Trm1 A)Pgbm01 workshop...
 
Presentacion 1226169794271228-9
Presentacion 1226169794271228-9Presentacion 1226169794271228-9
Presentacion 1226169794271228-9
 
EDUARDO HAZ SEGOVIA
EDUARDO HAZ SEGOVIAEDUARDO HAZ SEGOVIA
EDUARDO HAZ SEGOVIA
 
Suman Resume
Suman ResumeSuman Resume
Suman Resume
 
Islaami Akhlaqo Aadaab
Islaami Akhlaqo AadaabIslaami Akhlaqo Aadaab
Islaami Akhlaqo Aadaab
 
Experience 2015 Survey Results
Experience 2015 Survey ResultsExperience 2015 Survey Results
Experience 2015 Survey Results
 
Internet senior
Internet seniorInternet senior
Internet senior
 
Understanding Big Data for policy professionals
Understanding Big Data for policy professionalsUnderstanding Big Data for policy professionals
Understanding Big Data for policy professionals
 
UP_Redovno-Bak-EEEO
UP_Redovno-Bak-EEEOUP_Redovno-Bak-EEEO
UP_Redovno-Bak-EEEO
 
Dự Thảo hợp đồng mua bán căn hộ Panorama Nha Trang
Dự Thảo hợp đồng mua bán căn hộ Panorama Nha TrangDự Thảo hợp đồng mua bán căn hộ Panorama Nha Trang
Dự Thảo hợp đồng mua bán căn hộ Panorama Nha Trang
 
Hợp đồng mẫu the cbd
Hợp đồng mẫu the cbdHợp đồng mẫu the cbd
Hợp đồng mẫu the cbd
 
ELECTRONICS LAB WORK
ELECTRONICS LAB WORKELECTRONICS LAB WORK
ELECTRONICS LAB WORK
 

Similar a Kubernetes-Meetup

Introducing Kubernetes
Introducing Kubernetes Introducing Kubernetes
Introducing Kubernetes VikRam S
 
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
 
Containers kuberenetes
Containers kuberenetesContainers kuberenetes
Containers kuberenetescsegayan
 
DevJam 2019 - Introduction to Kubernetes
DevJam 2019 - Introduction to KubernetesDevJam 2019 - Introduction to Kubernetes
DevJam 2019 - Introduction to KubernetesRonny Trommer
 
Building Cloud-Native Applications with Kubernetes, Helm and Kubeless
Building Cloud-Native Applications with Kubernetes, Helm and KubelessBuilding Cloud-Native Applications with Kubernetes, Helm and Kubeless
Building Cloud-Native Applications with Kubernetes, Helm and KubelessBitnami
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetesGabriel Carro
 
Kubernetes fundamentals
Kubernetes fundamentalsKubernetes fundamentals
Kubernetes fundamentalsVictor Morales
 
Kubernetes 101
Kubernetes 101Kubernetes 101
Kubernetes 101Huy Vo
 
Containers and Kubernetes -Notes Leo
Containers and Kubernetes -Notes LeoContainers and Kubernetes -Notes Leo
Containers and Kubernetes -Notes LeoLéopold Gault
 
kubernetesssssssssssssssssssssssssss.pdf
kubernetesssssssssssssssssssssssssss.pdfkubernetesssssssssssssssssssssssssss.pdf
kubernetesssssssssssssssssssssssssss.pdfbchiriamina2
 
Getting started with kubernetes
Getting started with kubernetesGetting started with kubernetes
Getting started with kubernetesBob Killen
 
Develop and deploy Kubernetes applications with Docker - IBM Index 2018
Develop and deploy Kubernetes  applications with Docker - IBM Index 2018Develop and deploy Kubernetes  applications with Docker - IBM Index 2018
Develop and deploy Kubernetes applications with Docker - IBM Index 2018Patrick Chanezon
 

Similar a Kubernetes-Meetup (20)

Introducing Kubernetes
Introducing Kubernetes Introducing Kubernetes
Introducing 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
 
Container Orchestration using kubernetes
Container Orchestration using kubernetesContainer Orchestration using kubernetes
Container Orchestration using kubernetes
 
Containers kuberenetes
Containers kuberenetesContainers kuberenetes
Containers kuberenetes
 
01. Kubernetes-PPT.pptx
01. Kubernetes-PPT.pptx01. Kubernetes-PPT.pptx
01. Kubernetes-PPT.pptx
 
Containers kuberenetes
Containers kuberenetesContainers kuberenetes
Containers kuberenetes
 
Containers kuberenetes
Containers kuberenetesContainers kuberenetes
Containers kuberenetes
 
DevJam 2019 - Introduction to Kubernetes
DevJam 2019 - Introduction to KubernetesDevJam 2019 - Introduction to Kubernetes
DevJam 2019 - Introduction to Kubernetes
 
Building Cloud-Native Applications with Kubernetes, Helm and Kubeless
Building Cloud-Native Applications with Kubernetes, Helm and KubelessBuilding Cloud-Native Applications with Kubernetes, Helm and Kubeless
Building Cloud-Native Applications with Kubernetes, Helm and Kubeless
 
Intro to kubernetes
Intro to kubernetesIntro to kubernetes
Intro to kubernetes
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetes
 
Introduction to Virtual Kubelet
Introduction to Virtual KubeletIntroduction to Virtual Kubelet
Introduction to Virtual Kubelet
 
Kubernetes fundamentals
Kubernetes fundamentalsKubernetes fundamentals
Kubernetes fundamentals
 
Kubernetes intro
Kubernetes introKubernetes intro
Kubernetes intro
 
Quick introduction to Kubernetes
Quick introduction to KubernetesQuick introduction to Kubernetes
Quick introduction to Kubernetes
 
Kubernetes 101
Kubernetes 101Kubernetes 101
Kubernetes 101
 
Containers and Kubernetes -Notes Leo
Containers and Kubernetes -Notes LeoContainers and Kubernetes -Notes Leo
Containers and Kubernetes -Notes Leo
 
kubernetesssssssssssssssssssssssssss.pdf
kubernetesssssssssssssssssssssssssss.pdfkubernetesssssssssssssssssssssssssss.pdf
kubernetesssssssssssssssssssssssssss.pdf
 
Getting started with kubernetes
Getting started with kubernetesGetting started with kubernetes
Getting started with kubernetes
 
Develop and deploy Kubernetes applications with Docker - IBM Index 2018
Develop and deploy Kubernetes  applications with Docker - IBM Index 2018Develop and deploy Kubernetes  applications with Docker - IBM Index 2018
Develop and deploy Kubernetes applications with Docker - IBM Index 2018
 

Kubernetes-Meetup

  • 1. © 2014 VMware Inc. All rights reserved. Introduction to Kubernetes Date: 17-01-2015 Vaibhav
  • 2. Agenda • Talk 1: Commentary on google ‘Omega’ paper • Talk 2: Introduction to Kubernetes with example • Talk 3: Kubernetes Architecture • Talk 4: Kubernetes golang code structure • Talk 5: Areas to contribute in Kubernetes • Talk 6: VMware`s contribution to Kubernetes 10
  • 3. What is Kubernetes? • System for Container Cluster Management • Open Sourced by Google, launched in June 2014, Google I/O • Supports Rackspace,GCE, CoreOS, Azure, vSphere • Manages Docker containers as a default implementation but it will be supporting other linux containers soon. • Kubernetes is: • lean: lightweight, simple, accessible • portable: public, private, hybrid, multi cloud • extensible: modular, pluggable, hookable, composable • self-healing: auto-placement, auto-restart, auto-replication 11
  • 5. Key Concepts  Master  Minion  Pod : Grouping for Containers  Service and Labels  Container  Kubernetes Node  Kubelet  Kubernetes Proxy  API Server  etcd  cAdvisor 13
  • 6. Master • Master maintains the State of the Kubernetes Server runtime • It is the point of entry for all the client calls to configure and manage Kubernetes components like Minions, Pods, Containers • kubelet provides commands to display pod, service and replication controller status. • All the persistent master state is stored in instance of etcd which is high availability key-store. • Master is also made up of following components  API Server  Scheduler  Registries (Minon Registry, Pod Registry,Service Registry, Binding Registry) 14
  • 7. Minion • Represents the Host / VM where containers are created as per the supporterd cloud providers. • Minion is identified with a name and a HOST IP • Key Components of a Minion;  PODs  Kubelet  cAdvisor  Proxy • cAdvisor (Container Advisor) provides container users an understanding of the resource usage and performance characteristics of their running containers. It is a separate open-source project currently integrated with Kubernetes. 15
  • 9. Important Terminologies • Pod: It is the smallest scheduling unit in Kubernetes. It is a collection of Docker containers that share volumes, and don’t have port conflicts.It can be created easily by defining simple json file. • kubectl: It is a command which provides master access to Kubernetes APIs. Through it, the user can deploy, delete, list pods, among other things. • kubelet: It is a service which runs on minions. It processes the container manifests to ensure they are deployed as described by the user. 17
  • 10. Pod Labels • Labels are key/value pairs that are attached to objects, such as pods. Labels can be used to organize and to select subsets of objects. • Via a label selector, the client/user can identify a set of objects. The label selector is the core grouping primitive in Kubernetes. • Example of pod label;  environment=dev, environment=qa, environment=production  tier=frontend, tier=backend  user=vkohli,user=shrutis 18
  • 11. Simple pod example with two containers
  • 12. Demo
  • 13. Replication Controller • Responsible for replicating a POD in case of failure. • Replication Controllers should be defined during the creation of pods. Each replicated pod will run on different minions in order to provide HA. • Replication Manager is responsible for polling PODs and maintaining the pod lifecycle. • Replication controller can be defined in the similar way as pod using the json file.
  • 14. Replication Controller (contd.) • Replication controller create new pods from templates, which is currently inline to current replicationController object. • Pods created by replication controller are subsequently updated. • Lables play very important role in replication controller a loosely coupled relation is created between pods and the controller. • The replication controllers will generally carry same label as there pod to keep the mapping. 22
  • 15. Basic Functionality of Kubernetes 23
  • 16. Services • Abstraction of a Software Service (e.g a relational data base), consists of a proxy’s port and selector to determine the pod the service request should go to. • Elements of a Service  Name  Port of the proxy  Labels of a Service  Selector  Uses LoadBalancer  Container Port 24
  • 17. • Kubernetes pods can come up and go down anytime, while each pod gets its own IP address those IP addresses can not be relied upon to be stable over time. • Suppose if some set of pods (let's call them backends) provides functionality to other pods (let's call it front end) it cannot be achieved if we heavily tight them each other as pods can come up and go. • So to encounter this problem we define services which provides abstraction and it offers clients an IP and port pair which, when accessed, redirects to the appropriate backends. The set of pods targeted for is determined by a label selector. 25 Services (contd.)
  • 19. Guest book example • This is a simple mulit-tier web application using kubernetes and Docker. • One redis-master for storage. • 2 redis-slave replicated pods. • And also 3 front-end replicated pods running a php web application . • We will be also running some services in order to make the pods independent of each other. 27
  • 20. Demo
  • 21. Current Kubernetes Implementation • Fedora manual setup • Fedora ansible setup • GCE (Google Compute Engine) • vSphere • Windows Azure • AWS(Amazon Web Services) • Vagrant+Virtual box • Coreos • Many more… https://github.com/GoogleCloudPlatform/kubernetes/tree/master/docs/getting-started-guides 29