SlideShare une entreprise Scribd logo
1  sur  17
Containers and Kubernetes
Gayan Gunarathne
Technical Lead - WSO2
Committer & PMC Member, Apache Stratos
Agenda
● Hypervisors and Virtual Machines
● Containers
● Why containers
● Docker
● Virtual machine vs docker
● Why Kubernetes
● Components of Kubernetes
● Kubernetes Architecture
● How to deploy the service with Kubernetes
Hypervisors and Virtual Machines
Hypervisor-Type 1 Hypervisor -Type 2
This is also known as Bare Metal or Embedded or Native
Hypervisor.
It works directly on the hardware of the host and can monitor
operating systems that run above the hypervisor.
Eg:
VMware ESXi Server
Microsoft Hyper-V
Citrix/Xen Server
This is also known as Hosted Hypervisor.
In this case, the hypervisor is installed on an operating system and
then supports other operating systems above it.
It is completely dependent on host Operating System for its operations
Eg:
VMware Workstation
Microsoft Virtual PC
Oracle Virtual Box
Why Containers?
Containers resolve some of the problems typically associated with hypervisors and virtual
machines
● Better performance
● Faster provisioning of resources
● Quicker availability of new application instances
● Simple deployment
● Rapid availability
● Leverage microservices
● Recently popularized by Docker
Docker
● A platform for managing Linux Containers
● Began as an open-source implementation of the deployment engine which powers dotCloud
● Started in March, 2013
● Provided an easy to use API and powerful container image management features
● Attracted the community very fast
● cgroup and namespacing capabilities of the Linux kernel
● Go programming language (written in Go)
● Docker Image Specification(for container image management)
● Libcontainer Specification (namespaces, filesystem, resources, security, etc)
Virtual machine vs Docker
Docker Architecture
Why Kubernetes?
Running a server cluster on a set of Docker containers, on a single Docker host is vulnerable to single point
of failure!
Kubernetes
Open source solution for managing a cluster of containers
Provides container grouping, load balancing, scaling features and self healing
Inspired by the technology that drives Google
Runs anywhere:
○ Public Cloud
○ Private Cloud
○ Bare Metal
Master Server Components
The controlling unit in a Kubernetes cluster is called the master server.
Etcd
Developed by the CoreOS team.
It is a lightweight, distributed key-value store that can be distributed across multiple nodes.
API Server
This is the main management point of the entire cluster
Iit allows a user to configure many of Kubernetes' workloads and organizational units.
It also is responsible for making sure that the etcd store and the service details of deployed containers are in agreement.
Controller Manager Server
Handle the replication processes defined by replication tasks
Scheduler Server
Tracking resource utilization on each host to make sure that workloads are not scheduled in excess of the available
Minion Server Components
Kubelet Service
Main contact point for each minion with the cluster group
Relaying information to and from the master server, as well as interacting with the etcd store to read
configuration details or write new values.
Proxy Service
Deal with individual host subnetting and in order to make services available to external parties
A small proxy service is run on each minion server
Kubernetes Work Units
Pods
A pod generally represents one or more containers that should be controlled as a single "application".
Closely related containers are grouped together in a pod.
Services
Unit that acts as a basic load balancer and ambassador for other containers.
Replication Controllers
Is a framework for defining pods that are meant to be horizontally scaled.
Labels
Arbitrary tag that can be placed on the above work units to mark them as a part of a group.
These can then be selected for management purposes and action targeting.
Kubernetes Architecture
How to deploy the service with Kubernetes
1. First to set up the Kubernetes cluster
EC2- https://cwiki.apache.org/confluence/display/STRATOS/4.1.x+Install+Stratos+with+Kubernetes+on+EC2
2. Sample yaml file for the pod
3. Create a pod.
kubectl create -f pod.yaml
4. Sample service yaml file for the service to expose the your server
5. Create a service
kubectl create -f your-service.yaml
Samples available at
https://github.com/gayangunarathne/KubenetesMysqlServer
References
1. http://en.wikipedia.org/wiki/Hypervisor
2. http://en.wikipedia.org/wiki/LXC
3. https://www.docker.com/
4. https://en.wikipedia.org/wiki/Docker_(software)
5. http://kubernetes.io/
6. http://www.severalnines.com/blog/installing-kubernetes-cluster-minions-centos7-manage-pods-services
7. https://cloud.google.com/container-engine/docs
8. http://fabric8.io/guide
Q&A

Contenu connexe

Tendances

Kubernetes for Beginners: An Introductory Guide
Kubernetes for Beginners: An Introductory GuideKubernetes for Beginners: An Introductory Guide
Kubernetes for Beginners: An Introductory GuideBytemark
 
Deploying your first application with Kubernetes
Deploying your first application with KubernetesDeploying your first application with Kubernetes
Deploying your first application with KubernetesOVHcloud
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetesMichal Cwienczek
 
Evolution of containers to kubernetes
Evolution of containers to kubernetesEvolution of containers to kubernetes
Evolution of containers to kubernetesKrishna-Kumar
 
Brief Introduction To Kubernetes
Brief Introduction To KubernetesBrief Introduction To Kubernetes
Brief Introduction To KubernetesAvinash Ketkar
 
Docker and containerization
Docker and containerizationDocker and containerization
Docker and containerizationAmulya Saxena
 
Kubernetes in Docker
Kubernetes in DockerKubernetes in Docker
Kubernetes in Dockerdocker-athens
 
Kubernetes Webinar - Using ConfigMaps & Secrets
Kubernetes Webinar - Using ConfigMaps & Secrets Kubernetes Webinar - Using ConfigMaps & Secrets
Kubernetes Webinar - Using ConfigMaps & Secrets Janakiram MSV
 
Service Discovery In Kubernetes
Service Discovery In KubernetesService Discovery In Kubernetes
Service Discovery In KubernetesKnoldus Inc.
 
(Draft) Kubernetes - A Comprehensive Overview
(Draft) Kubernetes - A Comprehensive Overview(Draft) Kubernetes - A Comprehensive Overview
(Draft) Kubernetes - A Comprehensive OverviewBob Killen
 
Architecture Overview: Kubernetes with Red Hat Enterprise Linux 7.1
Architecture Overview: Kubernetes with Red Hat Enterprise Linux 7.1Architecture Overview: Kubernetes with Red Hat Enterprise Linux 7.1
Architecture Overview: Kubernetes with Red Hat Enterprise Linux 7.1Etsuji Nakai
 
Introduction to container mangement
Introduction to container mangementIntroduction to container mangement
Introduction to container mangementMartin Marcher
 

Tendances (19)

Kubernetes for Beginners: An Introductory Guide
Kubernetes for Beginners: An Introductory GuideKubernetes for Beginners: An Introductory Guide
Kubernetes for Beginners: An Introductory Guide
 
Kubernetes Introduction
Kubernetes IntroductionKubernetes Introduction
Kubernetes Introduction
 
Deploying your first application with Kubernetes
Deploying your first application with KubernetesDeploying your first application with Kubernetes
Deploying your first application with Kubernetes
 
Kubernetes Presentation
Kubernetes PresentationKubernetes Presentation
Kubernetes Presentation
 
K8S in prod
K8S in prodK8S in prod
K8S in prod
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetes
 
Evolution of containers to kubernetes
Evolution of containers to kubernetesEvolution of containers to kubernetes
Evolution of containers to kubernetes
 
Brief Introduction To Kubernetes
Brief Introduction To KubernetesBrief Introduction To Kubernetes
Brief Introduction To Kubernetes
 
Docker and containerization
Docker and containerizationDocker and containerization
Docker and containerization
 
Kubernetes Basics
Kubernetes BasicsKubernetes Basics
Kubernetes Basics
 
Kubernetes 101
Kubernetes 101Kubernetes 101
Kubernetes 101
 
Kubernetes in Docker
Kubernetes in DockerKubernetes in Docker
Kubernetes in Docker
 
Kubernetes Webinar - Using ConfigMaps & Secrets
Kubernetes Webinar - Using ConfigMaps & Secrets Kubernetes Webinar - Using ConfigMaps & Secrets
Kubernetes Webinar - Using ConfigMaps & Secrets
 
Service Discovery In Kubernetes
Service Discovery In KubernetesService Discovery In Kubernetes
Service Discovery In Kubernetes
 
Kubernetes intro
Kubernetes introKubernetes intro
Kubernetes intro
 
(Draft) Kubernetes - A Comprehensive Overview
(Draft) Kubernetes - A Comprehensive Overview(Draft) Kubernetes - A Comprehensive Overview
(Draft) Kubernetes - A Comprehensive Overview
 
Architecture Overview: Kubernetes with Red Hat Enterprise Linux 7.1
Architecture Overview: Kubernetes with Red Hat Enterprise Linux 7.1Architecture Overview: Kubernetes with Red Hat Enterprise Linux 7.1
Architecture Overview: Kubernetes with Red Hat Enterprise Linux 7.1
 
Kubernetes-Meetup
Kubernetes-MeetupKubernetes-Meetup
Kubernetes-Meetup
 
Introduction to container mangement
Introduction to container mangementIntroduction to container mangement
Introduction to container mangement
 

En vedette

Kaya case-study-prstn-1228189562371002-9
Kaya case-study-prstn-1228189562371002-9Kaya case-study-prstn-1228189562371002-9
Kaya case-study-prstn-1228189562371002-9Sunil Singh
 
7th grade Sketchup Chairs
7th grade Sketchup Chairs7th grade Sketchup Chairs
7th grade Sketchup Chairskarob52
 
Spainsh project john #1
Spainsh project john #1Spainsh project john #1
Spainsh project john #1karob52
 
Melitta bentz
Melitta bentzMelitta bentz
Melitta bentzswan1992
 
SpYyou$ef 6
SpYyou$ef 6SpYyou$ef 6
SpYyou$ef 6karob52
 
Sp2 Yyou$ef 6
Sp2 Yyou$ef 6Sp2 Yyou$ef 6
Sp2 Yyou$ef 6karob52
 
Test spanish
Test spanishTest spanish
Test spanishkarob52
 
Science lesson. Spanish habitats
Science lesson. Spanish habitatsScience lesson. Spanish habitats
Science lesson. Spanish habitatstqsobrina
 
Professional Photo Recovery
Professional Photo Recovery Professional Photo Recovery
Professional Photo Recovery Camila lee
 
Foundational kinesiology module 1 basic concepts- jan 2011
Foundational kinesiology module 1  basic concepts- jan 2011Foundational kinesiology module 1  basic concepts- jan 2011
Foundational kinesiology module 1 basic concepts- jan 2011persaud_dan
 
Club AMPERE étude Editeurs et Prestataires - Partie 1 - Reporting et Mesure d...
Club AMPERE étude Editeurs et Prestataires - Partie 1 - Reporting et Mesure d...Club AMPERE étude Editeurs et Prestataires - Partie 1 - Reporting et Mesure d...
Club AMPERE étude Editeurs et Prestataires - Partie 1 - Reporting et Mesure d...ClubAMPERE
 
Etre visible sur le web : tendances 2014
Etre visible sur le web : tendances 2014Etre visible sur le web : tendances 2014
Etre visible sur le web : tendances 2014echangeurba
 

En vedette (20)

Containers kuberenetes
Containers kuberenetesContainers kuberenetes
Containers kuberenetes
 
Superbrand
SuperbrandSuperbrand
Superbrand
 
Kaya case-study-prstn-1228189562371002-9
Kaya case-study-prstn-1228189562371002-9Kaya case-study-prstn-1228189562371002-9
Kaya case-study-prstn-1228189562371002-9
 
me myself
me myselfme myself
me myself
 
7th grade Sketchup Chairs
7th grade Sketchup Chairs7th grade Sketchup Chairs
7th grade Sketchup Chairs
 
MyFoodClan
MyFoodClanMyFoodClan
MyFoodClan
 
Spainsh project john #1
Spainsh project john #1Spainsh project john #1
Spainsh project john #1
 
Melitta bentz
Melitta bentzMelitta bentz
Melitta bentz
 
SpYyou$ef 6
SpYyou$ef 6SpYyou$ef 6
SpYyou$ef 6
 
Sp2 Yyou$ef 6
Sp2 Yyou$ef 6Sp2 Yyou$ef 6
Sp2 Yyou$ef 6
 
Test spanish
Test spanishTest spanish
Test spanish
 
iPhone Backup Utility
iPhone Backup UtilityiPhone Backup Utility
iPhone Backup Utility
 
Science lesson. Spanish habitats
Science lesson. Spanish habitatsScience lesson. Spanish habitats
Science lesson. Spanish habitats
 
Scrum by scrum
Scrum by scrumScrum by scrum
Scrum by scrum
 
Professional Photo Recovery
Professional Photo Recovery Professional Photo Recovery
Professional Photo Recovery
 
Web Push API
Web Push APIWeb Push API
Web Push API
 
Meta dataservice design
Meta dataservice design Meta dataservice design
Meta dataservice design
 
Foundational kinesiology module 1 basic concepts- jan 2011
Foundational kinesiology module 1  basic concepts- jan 2011Foundational kinesiology module 1  basic concepts- jan 2011
Foundational kinesiology module 1 basic concepts- jan 2011
 
Club AMPERE étude Editeurs et Prestataires - Partie 1 - Reporting et Mesure d...
Club AMPERE étude Editeurs et Prestataires - Partie 1 - Reporting et Mesure d...Club AMPERE étude Editeurs et Prestataires - Partie 1 - Reporting et Mesure d...
Club AMPERE étude Editeurs et Prestataires - Partie 1 - Reporting et Mesure d...
 
Etre visible sur le web : tendances 2014
Etre visible sur le web : tendances 2014Etre visible sur le web : tendances 2014
Etre visible sur le web : tendances 2014
 

Similaire à Containers kuberenetes

KubernetesPPT.pptx
KubernetesPPT.pptxKubernetesPPT.pptx
KubernetesPPT.pptxRyuzaki360
 
Kubernetes 101 for Beginners
Kubernetes 101 for BeginnersKubernetes 101 for Beginners
Kubernetes 101 for BeginnersOktay Esgul
 
Getting started with google kubernetes engine
Getting started with google kubernetes engineGetting started with google kubernetes engine
Getting started with google kubernetes engineShreya Pohekar
 
Introduction to containers, k8s, Microservices & Cloud Native
Introduction to containers, k8s, Microservices & Cloud NativeIntroduction to containers, k8s, Microservices & Cloud Native
Introduction to containers, k8s, Microservices & Cloud NativeTerry Wang
 
Newesis - Introduction to Containers
Newesis -  Introduction to ContainersNewesis -  Introduction to Containers
Newesis - Introduction to ContainersRauno De Pasquale
 
Kubernetes #1 intro
Kubernetes #1   introKubernetes #1   intro
Kubernetes #1 introTerry Cho
 
Cloud technology with practical knowledge
Cloud technology with practical knowledgeCloud technology with practical knowledge
Cloud technology with practical knowledgeAnshikaNigam8
 
Kubernetes Basics - ICP Workshop Batch II
Kubernetes Basics - ICP Workshop Batch IIKubernetes Basics - ICP Workshop Batch II
Kubernetes Basics - ICP Workshop Batch IIPT Datacomm Diangraha
 
Comparisons of the most famous container Orchestrators
Comparisons of the most famous container OrchestratorsComparisons of the most famous container Orchestrators
Comparisons of the most famous container OrchestratorsThierry Gayet
 
AWS re:Invent 2016: Introduction to Container Management on AWS (CON303)
AWS re:Invent 2016: Introduction to Container Management on AWS (CON303)AWS re:Invent 2016: Introduction to Container Management on AWS (CON303)
AWS re:Invent 2016: Introduction to Container Management on AWS (CON303)Amazon Web Services
 
Kubernetes: від знайомства до використання у CI/CD
Kubernetes: від знайомства до використання у CI/CDKubernetes: від знайомства до використання у CI/CD
Kubernetes: від знайомства до використання у CI/CDStfalcon Meetups
 
Kubernetes on on on on on on on on on on on on on on Azure Deck.pptx
Kubernetes on on on on on on on on on on on on on on Azure Deck.pptxKubernetes on on on on on on on on on on on on on on Azure Deck.pptx
Kubernetes on on on on on on on on on on on on on on Azure Deck.pptxHectorSebastianMendo
 
Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka
Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka
Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka Mario Ishara Fernando
 
Kubernetes 101
Kubernetes 101Kubernetes 101
Kubernetes 101Vishwas N
 
A guide of PostgreSQL on Kubernetes
A guide of PostgreSQL on KubernetesA guide of PostgreSQL on Kubernetes
A guide of PostgreSQL on Kubernetest8kobayashi
 

Similaire à Containers kuberenetes (20)

Container Orchestration using kubernetes
Container Orchestration using kubernetesContainer Orchestration using kubernetes
Container Orchestration using kubernetes
 
Docker and kubernetes
Docker and kubernetesDocker and kubernetes
Docker and kubernetes
 
KubernetesPPT.pptx
KubernetesPPT.pptxKubernetesPPT.pptx
KubernetesPPT.pptx
 
Kubernetes 101 for Beginners
Kubernetes 101 for BeginnersKubernetes 101 for Beginners
Kubernetes 101 for Beginners
 
Getting started with google kubernetes engine
Getting started with google kubernetes engineGetting started with google kubernetes engine
Getting started with google kubernetes engine
 
Docker & kubernetes
Docker & kubernetesDocker & kubernetes
Docker & kubernetes
 
Introduction to containers, k8s, Microservices & Cloud Native
Introduction to containers, k8s, Microservices & Cloud NativeIntroduction to containers, k8s, Microservices & Cloud Native
Introduction to containers, k8s, Microservices & Cloud Native
 
Newesis - Introduction to Containers
Newesis -  Introduction to ContainersNewesis -  Introduction to Containers
Newesis - Introduction to Containers
 
Kubernetes #1 intro
Kubernetes #1   introKubernetes #1   intro
Kubernetes #1 intro
 
Cloud technology with practical knowledge
Cloud technology with practical knowledgeCloud technology with practical knowledge
Cloud technology with practical knowledge
 
Kubernetes Basics - ICP Workshop Batch II
Kubernetes Basics - ICP Workshop Batch IIKubernetes Basics - ICP Workshop Batch II
Kubernetes Basics - ICP Workshop Batch II
 
Comparisons of the most famous container Orchestrators
Comparisons of the most famous container OrchestratorsComparisons of the most famous container Orchestrators
Comparisons of the most famous container Orchestrators
 
AWS re:Invent 2016: Introduction to Container Management on AWS (CON303)
AWS re:Invent 2016: Introduction to Container Management on AWS (CON303)AWS re:Invent 2016: Introduction to Container Management on AWS (CON303)
AWS re:Invent 2016: Introduction to Container Management on AWS (CON303)
 
Quick Trip with Docker
Quick Trip with DockerQuick Trip with Docker
Quick Trip with Docker
 
Kubernetes: від знайомства до використання у CI/CD
Kubernetes: від знайомства до використання у CI/CDKubernetes: від знайомства до використання у CI/CD
Kubernetes: від знайомства до використання у CI/CD
 
Kubernetes on on on on on on on on on on on on on on Azure Deck.pptx
Kubernetes on on on on on on on on on on on on on on Azure Deck.pptxKubernetes on on on on on on on on on on on on on on Azure Deck.pptx
Kubernetes on on on on on on on on on on on on on on Azure Deck.pptx
 
01. Kubernetes-PPT.pptx
01. Kubernetes-PPT.pptx01. Kubernetes-PPT.pptx
01. Kubernetes-PPT.pptx
 
Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka
Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka
Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka
 
Kubernetes 101
Kubernetes 101Kubernetes 101
Kubernetes 101
 
A guide of PostgreSQL on Kubernetes
A guide of PostgreSQL on KubernetesA guide of PostgreSQL on Kubernetes
A guide of PostgreSQL on Kubernetes
 

Dernier

WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
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 Pakistandanishmna97
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
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...apidays
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
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...Jeffrey Haguewood
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
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 2024Victor Rentea
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
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, ...Angeliki Cooney
 

Dernier (20)

WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
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
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
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...
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
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...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
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
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
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, ...
 

Containers kuberenetes

  • 1. Containers and Kubernetes Gayan Gunarathne Technical Lead - WSO2 Committer & PMC Member, Apache Stratos
  • 2. Agenda ● Hypervisors and Virtual Machines ● Containers ● Why containers ● Docker ● Virtual machine vs docker ● Why Kubernetes ● Components of Kubernetes ● Kubernetes Architecture ● How to deploy the service with Kubernetes
  • 3. Hypervisors and Virtual Machines Hypervisor-Type 1 Hypervisor -Type 2 This is also known as Bare Metal or Embedded or Native Hypervisor. It works directly on the hardware of the host and can monitor operating systems that run above the hypervisor. Eg: VMware ESXi Server Microsoft Hyper-V Citrix/Xen Server This is also known as Hosted Hypervisor. In this case, the hypervisor is installed on an operating system and then supports other operating systems above it. It is completely dependent on host Operating System for its operations Eg: VMware Workstation Microsoft Virtual PC Oracle Virtual Box
  • 4. Why Containers? Containers resolve some of the problems typically associated with hypervisors and virtual machines ● Better performance ● Faster provisioning of resources ● Quicker availability of new application instances ● Simple deployment ● Rapid availability ● Leverage microservices ● Recently popularized by Docker
  • 5. Docker ● A platform for managing Linux Containers ● Began as an open-source implementation of the deployment engine which powers dotCloud ● Started in March, 2013 ● Provided an easy to use API and powerful container image management features ● Attracted the community very fast ● cgroup and namespacing capabilities of the Linux kernel ● Go programming language (written in Go) ● Docker Image Specification(for container image management) ● Libcontainer Specification (namespaces, filesystem, resources, security, etc)
  • 8. Why Kubernetes? Running a server cluster on a set of Docker containers, on a single Docker host is vulnerable to single point of failure!
  • 9. Kubernetes Open source solution for managing a cluster of containers Provides container grouping, load balancing, scaling features and self healing Inspired by the technology that drives Google Runs anywhere: ○ Public Cloud ○ Private Cloud ○ Bare Metal
  • 10.
  • 11. Master Server Components The controlling unit in a Kubernetes cluster is called the master server. Etcd Developed by the CoreOS team. It is a lightweight, distributed key-value store that can be distributed across multiple nodes. API Server This is the main management point of the entire cluster Iit allows a user to configure many of Kubernetes' workloads and organizational units. It also is responsible for making sure that the etcd store and the service details of deployed containers are in agreement. Controller Manager Server Handle the replication processes defined by replication tasks Scheduler Server Tracking resource utilization on each host to make sure that workloads are not scheduled in excess of the available
  • 12. Minion Server Components Kubelet Service Main contact point for each minion with the cluster group Relaying information to and from the master server, as well as interacting with the etcd store to read configuration details or write new values. Proxy Service Deal with individual host subnetting and in order to make services available to external parties A small proxy service is run on each minion server
  • 13. Kubernetes Work Units Pods A pod generally represents one or more containers that should be controlled as a single "application". Closely related containers are grouped together in a pod. Services Unit that acts as a basic load balancer and ambassador for other containers. Replication Controllers Is a framework for defining pods that are meant to be horizontally scaled. Labels Arbitrary tag that can be placed on the above work units to mark them as a part of a group. These can then be selected for management purposes and action targeting.
  • 15. How to deploy the service with Kubernetes 1. First to set up the Kubernetes cluster EC2- https://cwiki.apache.org/confluence/display/STRATOS/4.1.x+Install+Stratos+with+Kubernetes+on+EC2 2. Sample yaml file for the pod 3. Create a pod. kubectl create -f pod.yaml 4. Sample service yaml file for the service to expose the your server 5. Create a service kubectl create -f your-service.yaml Samples available at https://github.com/gayangunarathne/KubenetesMysqlServer
  • 16. References 1. http://en.wikipedia.org/wiki/Hypervisor 2. http://en.wikipedia.org/wiki/LXC 3. https://www.docker.com/ 4. https://en.wikipedia.org/wiki/Docker_(software) 5. http://kubernetes.io/ 6. http://www.severalnines.com/blog/installing-kubernetes-cluster-minions-centos7-manage-pods-services 7. https://cloud.google.com/container-engine/docs 8. http://fabric8.io/guide
  • 17. Q&A