SlideShare a Scribd company logo
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
Containers kuberenetes
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
resources.
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

More Related Content

PDF
Introduction of Kubernetes - Trang Nguyen
PPTX
Containers kuberenetes
PPTX
Working with kubernetes
PDF
Meteor South Bay Meetup - Kubernetes & Google Container Engine
PDF
Service Mesh For Beginner
PDF
Kubernetes a comprehensive overview
PPTX
Kubernetes for Beginners: An Introductory Guide
PDF
What is Kubernets
Introduction of Kubernetes - Trang Nguyen
Containers kuberenetes
Working with kubernetes
Meteor South Bay Meetup - Kubernetes & Google Container Engine
Service Mesh For Beginner
Kubernetes a comprehensive overview
Kubernetes for Beginners: An Introductory Guide
What is Kubernets

What's hot (19)

PPTX
Kubernetes Introduction
PDF
Deploying your first application with Kubernetes
PPTX
Kubernetes Presentation
PPTX
Introduction to kubernetes
PPTX
PDF
Aks pimarox from zero to hero
PDF
Evolution of containers to kubernetes
PDF
Kubernetes in Docker
PPTX
Docker and containerization
PPTX
Brief Introduction To Kubernetes
PPTX
Kubernetes Basics
PPTX
Service Discovery In Kubernetes
PDF
Kubernetes intro
PDF
Kubernetes-Meetup
PDF
(Draft) Kubernetes - A Comprehensive Overview
PDF
Architecture Overview: Kubernetes with Red Hat Enterprise Linux 7.1
PPTX
Introduction to container mangement
PDF
Kubernetes Webinar - Using ConfigMaps & Secrets
PPTX
Introduction to kubernetes
Kubernetes Introduction
Deploying your first application with Kubernetes
Kubernetes Presentation
Introduction to kubernetes
Aks pimarox from zero to hero
Evolution of containers to kubernetes
Kubernetes in Docker
Docker and containerization
Brief Introduction To Kubernetes
Kubernetes Basics
Service Discovery In Kubernetes
Kubernetes intro
Kubernetes-Meetup
(Draft) Kubernetes - A Comprehensive Overview
Architecture Overview: Kubernetes with Red Hat Enterprise Linux 7.1
Introduction to container mangement
Kubernetes Webinar - Using ConfigMaps & Secrets
Introduction to kubernetes
Ad

Similar to Containers kuberenetes (20)

PPTX
Containers kuberenetes
PPTX
Docker and kubernetes
PPTX
KubernetSADASDASDASDSADASDASDASDASDes.pptx
PPTX
KubernetesPPT.pptx
PDF
Kubernetes
PPTX
Cloud technology with practical knowledge
PDF
Kubernetes for Java developers
PDF
AKS: k8s e azure
PPTX
Galera on kubernetes_no_video
PPTX
A brief study on Kubernetes and its components
PPTX
Docker and kubernetes
PDF
An Introduction to Kubernetes
PPTX
Kubernetes 101
PDF
Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka
PPTX
Kubernetes-introduction to kubernetes for beginers.pptx
PDF
Cluster management with Kubernetes
PPTX
01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware
PPTX
Introduction to Kubernetes
PPTX
Containers and Kubernetes -Notes Leo
PDF
Kubernetes2
Containers kuberenetes
Docker and kubernetes
KubernetSADASDASDASDSADASDASDASDASDes.pptx
KubernetesPPT.pptx
Kubernetes
Cloud technology with practical knowledge
Kubernetes for Java developers
AKS: k8s e azure
Galera on kubernetes_no_video
A brief study on Kubernetes and its components
Docker and kubernetes
An Introduction to Kubernetes
Kubernetes 101
Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka
Kubernetes-introduction to kubernetes for beginers.pptx
Cluster management with Kubernetes
01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware
Introduction to Kubernetes
Containers and Kubernetes -Notes Leo
Kubernetes2
Ad

Recently uploaded (20)

PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
PPTX
Cloud computing and distributed systems.
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Advanced IT Governance
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Advanced methodologies resolving dimensionality complications for autism neur...
Empathic Computing: Creating Shared Understanding
Mobile App Security Testing_ A Comprehensive Guide.pdf
NewMind AI Monthly Chronicles - July 2025
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Understanding_Digital_Forensics_Presentation.pptx
20250228 LYD VKU AI Blended-Learning.pptx
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
Cloud computing and distributed systems.
MYSQL Presentation for SQL database connectivity
Reach Out and Touch Someone: Haptics and Empathic Computing
Advanced IT Governance
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Diabetes mellitus diagnosis method based random forest with bat algorithm
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...

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
  • 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 resources.
  • 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