SlideShare a Scribd company logo
@vishwasnarayan5 Vishwas N
https://hacksterdude.web.app/
About me
I am a Podcaster : http://tiny.cc/vnrpodcast
I love to talking to techies
A Bibliophile
Passionate about Image dataset - Computer Vision
Now exploring Azure cloud
Container are very light weight
SERVER
HOST OS
GUEST OS
HYPERVISOR
LIBRARIES/Bin
APP A
GUEST OS
LIBRARIES/Bin
APP B
VM
SERVER
HOST OS
APP A APP B
LIBRARIES LIBRARIES
CONTAINER
S
• Containers are isolated but share OS
• Increase the compute density and
memory utilization
DOCKER ENGINE
Kubernetes is all you need
Virtual Machine
Container
Benefits of Containerization
● Consistent Environment
● Run AnyWhere
● Light Weight and Faster
● Effective Isolation and Resource Sharing
● Improved Development Piepline
Scalable by Design
● Containers are industry leaders in the time to
start new instance
● Container spin time for new instance takes
seconds
● Provisioning and starting new Virtual
Machines takes from 5 to 20 minutes
Container + Microservice
● One microservice application = one
container
● Granular fast scalability
● Similar experience on workstation and
production
● Hybrid environments: deploy to cloud and
on-premise
Thus we need to
Kubernetes to :
● Schedule
● Control
● Sclae
● Monitor
We just need them to
Handle compute resources That were limited to every person in the worl
● Prioritization,Tracking,Limiting,and also Isolation.
● CPU,RAM,IO,Networking
Monolith and microservice
Cloud native application are
Cloud native is a term used to generally describe container-based environments.
Cloud-native technologies are used to develop applications built with services
packaged in containers, deployed as microservices and managed on elastic
infrastructure through agile DevOps processes and continuous delivery workflows.
● A container-based infrastructure.
● An architecture built around microservices.
● Use of continuous integration and continuous delivery (CI/CD)
● Composed of Microservices
● Packaged in Containers
● Rapidly (Re)Deployable in a Continuous Delivery Model
Microservice
● One job
● Separate processes
● Execution scope
● CI/CD
● Resiliency
● Independent
● Flexible/Scalable
● Replaceable
● Upgradable
Why Microservice?
● Each team is independent from the rest, decoupling
the release cycle with others.
● Clear separation of boundaries.
● Easier to identify when things go wrong.
● Choice of programming language appropriate for the
task.
● Refactoring becomes easier.
● Enabler for CI/CD pipelines.
Microservice to the world of the
development
Software containers
● 1 image -> Many containers
○ Laptop, DC, cloud
○ Dev, QA, production, support
● Simple, efficient
● Isolation
● Constraints
Docker is all about these factors
●Standardized packaging for software and
dependencies
●Isolate apps from each other
●Share the same OS kernel
●Works with all major Linux and Windows
Server
Container are very light weight
SERVER
HOST OS
GUEST OS
HYPERVISOR
LIBRARIES/Bin
APP A
GUEST OS
LIBRARIES/Bin
APP B
VM
SERVER
HOST OS
APP A APP B
LIBRARIES LIBRARIES
CONTAINER
S
• Containers are isolated but share OS
• Increase the compute density and
memory utilization
DOCKER ENGINE
Benefits of VM
• Better resource pooling
– One physical machine divided into multiple virtual
machines
• Easier to scale
• VMs in the cloud
– Rapid elasticity
– Pay as you go model
Docker
• Simple to use
• 100K+ images on Docker Hub
• Build images from images
• Platforms
– Linux, OS X, Windows
– Laptop, VM, Cloud,…
– Cloud services
History of Docker
Docker Architecture
All the above thing can be handled using
Containers
The new big thing
Kubernetes is all you need
From Dev To Ops
PHYSICAL VIRTUAL CLOUD
Any Application
Docker Platform
Docker Image
Docker Engine
Registry Service (Docker Hub or Docker Trusted Registry)
Cloud or server based storage and distribution service for images
Docker Container
Kubernetes is all you need
Docker Hub: Build, Ship, Run Applications
Build Ship
Run
Dev
QA
Source
Staging
Physical
Virtual
Cloud
InfrastructureManagement
InfrastructureManagement
DockerFile
Source Code
Repository
TEST
TEST
TEST
TEST
TEST
GCE RAX Azure
Mac/Win Dev
Machine
Boot2Docker
Docker
Analytics
DB
Prod
Machine
Linux OS
Docker
Docker
++
Users Collab
Provenance Policy
Docker Hub
Registries
Public Curated Private
Docker Hub API
Third Party Tools
Prod
Machine
Linux OS
Docker
Docker
Prod
Machine
Linux OS
Docker
Docker
VM
Docker
Docker
VM
Docker
Docker
VM
Docker
Docker
QA Machine
Linux OS
Docker
Docker
Docker Hub provides a centralized resource for container image discovery,
distribution and change management, user and team collaboration, and workflow
automation
Docker Hub: Build, Ship, Run Applications
Build Ship
Run
Dev
QA
Source
Staging
Physical
Virtual
Cloud
InfrastructureManagement
InfrastructureManagement
DockerFile
Source Code
Repository
TEST
TEST
TEST
TEST
TEST
GCE RAX Azure
Mac/Win Dev
Machine
Boot2Docker
Docker
Analytics
DB
Prod
Machine
Linux OS
Docker
Docker
++
Users Collab
Provenance Policy
Docker Hub
Registries
Public Curated Private
Docker Hub API
Third Party Tools
Prod
Machine
Linux OS
Docker
Docker
Prod
Machine
Linux OS
Docker
Docker
VM
Docker
Docker
VM
Docker
Docker
VM
Docker
Docker
QA Machine
Linux OS
Docker
Docker
Docker Hub provides a centralized resource for container image discovery,
distribution and change management, user and team collaboration, and workflow
automation
Kubernetes is all you need
Kubernetes has the DNA of the File System
Also Borg and Omega.
They just behaved monolithic
● Inefficient to manage
● Change on one module -> repackage the whole
thing
● Slows down the development velocity -> conflicts
coordination,approval
● Delays in identifying the root cause of failures
● Responsibility issues ,blame games on the
environment.
Container = Docker?
Image format : Upload,Download,Share,Build.
API : Automating Creation,Deletion,Starting,Stopping.
Networking will always be good
This is a fault proof networking
User benefits
Packaging,deployment and reuse
User benefits
Efficiency
But the caveat is
Security
Microservice that is built on
containers
Many small, focused containers -> sophisticated
services
• Well defined APIs
• Independent languages & libraries
• Modular: easy maintenance + reuse
• Fault tolerant
• Scalable
• Immutable
Orchestration
Typically microservices are encapsulated
inside containers…
One:One relationship between a microservice
and a container Everyone’s container journey
starts with one container….
Kubernetes
Kubernetes is ancient Greek for "Helmsman". Root of the
word "Governor", "Cybernetics".
Kubernetes is a "Container Orchestrator" or "Cluster
Manager".
● Places containers on nodes
● Recovers automatically from failure
● Basic monitoring, logging, health checking
● Enables containers to find each other.
Gaps today in the Dev to
Production
● Multi-machine
● Discovery and Naming
● Scaling
● Multiple users
● Failure tolerance and recovery
● Monitoring
● Logging
● High availability
● Deployment lifecycle
● Load balancing
● etc, etc
Microservices are
● Microservice architecture – a variant of the service-
oriented architecture structural style – arranges an
application as a collection of loosely-coupled services. In a
microservices architecture, services are fine-grained and
the protocols are lightweight.
● Split your application into small services that can be
reused, remixed and shared.
○ Enables smaller, nimble, decoupled teams and
processes.
○ Better tooling enables and encourages microservices.
Kubernetes is all you need
Development History
● Based on ideas proven at Google over 10
years
● Everything at Google runs in a container.
● Google launches 2 billion containers per week.
● Part of a larger set of tools that make up the
internal Google platform.
Kubernetes ts open source
● https://github.com/kubernetes/kubernetes
● Very active open source project
● 23k stars, 1400+ contributors
● Apache 2 licensed
● Written in Go
● Hosted by the Cloud Native Computing
Foundation (CNCF)
Benefits
● Extend the container goodness across
nodes.
● Enable operations specialization. Cluster
Ops vs. App Ops
● Reduce cost to run many things in
production. Enables new ways of building
applications.
Benefits of Kubernetes
1. Intelligent Scheduling
2. Self-healing
3. Horizontal scaling
4. Service discovery & load balancing
5. Automated rollouts and rollbacks
6. Secret and configuration
management
Design Principles
● declarative > imperative
● control loops
● simple > complex
● modularity
● legacy compatible
● network-centric
● labels > hierarchy
● cattle > pets
● open > closed
Cluster
Master
API Server
Scheduler
Controller
etcd
Kubelets
Docker
NODE
Kubelets
Docker
NODE
Kubelets
Docker
NODE
Pod
Log Server Serving App Data Loader
LOGS App Data
Pod - Label
C1 C2 C3
V1 V2
Version = 1.0
Service = FE
App = Hello
Replica Set
Replicas = 2
Pod Template
Replica Set
Replicas = 1
Pod Template
Persistent Volume Claim
Persistent
Volume
So much more
1. Namespace
2. Ingress
3. Deployment
4. Jobs
5. Autoscaling
6. Daemonsets
Continued
1. Role Based Access Control
2. Multiple Scheduling
3. Flexible Scheduling Constraints
4. Stateful sets
5. Automatic Cluster Scaling
6. Cloud Provider integration
7. Network Policy
Ecosystem
● Platforms
● Operators
● Authentication Provider
● Helm
● Extended Network Policy
Kubernetes is all you need

More Related Content

PPTX
Kubernetes 101
PDF
IT Geek Week 2016 - Introduction To Cloud Computing
PDF
DCSF 19 Improving the Human Condition with Docker
PPTX
Multi tenancy - Wining formula for a PaaS
PPTX
DevNexus 2015: Kubernetes & Container Engine
PPTX
DockerCon 2016 - Structured Container Delivery
PPTX
Microservices with Docker
PPTX
Serverless microservices
Kubernetes 101
IT Geek Week 2016 - Introduction To Cloud Computing
DCSF 19 Improving the Human Condition with Docker
Multi tenancy - Wining formula for a PaaS
DevNexus 2015: Kubernetes & Container Engine
DockerCon 2016 - Structured Container Delivery
Microservices with Docker
Serverless microservices

What's hot (20)

PPTX
Cloud Native Patterns Using AWS - Practical Examples
PDF
Containers and Kubernetes
PPTX
Banking and Docker Datacenter - How Containers Drive Agility
PDF
Kubernetes DevOps - Atul - Microsoft - CC18
PDF
DCSF 19 Docker Enterprise Platform and Architecture
PPTX
Microservices, docker , kubernetes and many more
PPTX
'Cloud-Native' Ecosystem - Aug 2015
PPTX
Introduction to OS LEVEL Virtualization & Containers
PDF
Intro - Cloud Native
PPTX
Docker In Cloud
PPTX
Citrix in AR/VR
PDF
Demystifying Containerization Principles for Data Scientists
PPTX
Achieving Cost and Resource Efficiency through Docker, OpenShift and Kubernetes
PPTX
Software Architectures, Week 3 - Microservice-based Architectures
PDF
56K.cloud Docker Training
PPTX
Docker Federal Summit 2017 General Session
PPTX
Microservices and docker
PPTX
Data Analytics Using Container Persistence Through SMACK - Manny Rodriguez-Pe...
PDF
Cloud Native Architectures for Devops
PPTX
Docker for the Enterprise with Containers as a Service by Banjot Chanana
Cloud Native Patterns Using AWS - Practical Examples
Containers and Kubernetes
Banking and Docker Datacenter - How Containers Drive Agility
Kubernetes DevOps - Atul - Microsoft - CC18
DCSF 19 Docker Enterprise Platform and Architecture
Microservices, docker , kubernetes and many more
'Cloud-Native' Ecosystem - Aug 2015
Introduction to OS LEVEL Virtualization & Containers
Intro - Cloud Native
Docker In Cloud
Citrix in AR/VR
Demystifying Containerization Principles for Data Scientists
Achieving Cost and Resource Efficiency through Docker, OpenShift and Kubernetes
Software Architectures, Week 3 - Microservice-based Architectures
56K.cloud Docker Training
Docker Federal Summit 2017 General Session
Microservices and docker
Data Analytics Using Container Persistence Through SMACK - Manny Rodriguez-Pe...
Cloud Native Architectures for Devops
Docker for the Enterprise with Containers as a Service by Banjot Chanana
Ad

Similar to Kubernetes is all you need (20)

PDF
Week 8 lecture material
PDF
week8_watermark.pdfhowcanitbe minimum 40 i
PDF
Azure meetup cloud native concepts - may 28th 2018
PPTX
Container on azure
PDF
Introduction of Kubernetes - Trang Nguyen
PDF
Dockers and kubernetes
PPTX
Kubernetes solutions
PPTX
Docker and kubernetes
PPTX
The challenge of application distribution - Introduction to Docker (2014 dec ...
PPTX
Docker-N-Beyond
PDF
Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka
PDF
Speed & Agility of Innovation with Docker & Kubernetes
 
PPTX
Containerization
PDF
A curtain-raiser to the container world Docker & Kubernetes
PDF
Demystifying Docker
PPTX
Demystifying Docker101
PPTX
State of the Container Ecosystem
PDF
Rackspace::Solve NYC - The Future of Applications with Ken Cochrane, Engineer...
PDF
Continuous delivery of microservices with kubernetes - Quintor 27-2-2017
PDF
Kubernetes Concepts And Architecture Powerpoint Presentation Slides
Week 8 lecture material
week8_watermark.pdfhowcanitbe minimum 40 i
Azure meetup cloud native concepts - may 28th 2018
Container on azure
Introduction of Kubernetes - Trang Nguyen
Dockers and kubernetes
Kubernetes solutions
Docker and kubernetes
The challenge of application distribution - Introduction to Docker (2014 dec ...
Docker-N-Beyond
Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka
Speed & Agility of Innovation with Docker & Kubernetes
 
Containerization
A curtain-raiser to the container world Docker & Kubernetes
Demystifying Docker
Demystifying Docker101
State of the Container Ecosystem
Rackspace::Solve NYC - The Future of Applications with Ken Cochrane, Engineer...
Continuous delivery of microservices with kubernetes - Quintor 27-2-2017
Kubernetes Concepts And Architecture Powerpoint Presentation Slides
Ad

More from Vishwas N (20)

PDF
API Testing and Hacking.pdf
PDF
API Hijacking.pdf
PDF
What should be your approach for solving ML_CV problem statements_.pdf
PDF
Deepfence.pdf
PDF
DevOps - A Purpose for an Institution.pdf
PDF
API Testing and Hacking (1).pdf
PDF
API Hijacking (1).pdf
PDF
Dapr.pdf
PDF
linkerd.pdf
PDF
HoloLens.pdf
PDF
Automated Governance for the DevOps Institutions.pdf
PDF
Lets build with DevSecOps Culture.pdf
PDF
Github Actions and Terraform.pdf
PDF
KEDA.pdf
PPTX
Ram bleed the hardware based approach for the hackers
PPTX
Deeplearning and dev ops azure
PPTX
Azure data lakes
PPTX
Azure dev ops
PPTX
Azure ai on premises with docker
PPTX
Nlp for the precision medicine
API Testing and Hacking.pdf
API Hijacking.pdf
What should be your approach for solving ML_CV problem statements_.pdf
Deepfence.pdf
DevOps - A Purpose for an Institution.pdf
API Testing and Hacking (1).pdf
API Hijacking (1).pdf
Dapr.pdf
linkerd.pdf
HoloLens.pdf
Automated Governance for the DevOps Institutions.pdf
Lets build with DevSecOps Culture.pdf
Github Actions and Terraform.pdf
KEDA.pdf
Ram bleed the hardware based approach for the hackers
Deeplearning and dev ops azure
Azure data lakes
Azure dev ops
Azure ai on premises with docker
Nlp for the precision medicine

Recently uploaded (20)

PPTX
durere- in cancer tu ttresjjnklj gfrrjnrs mhugyfrd
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PPTX
INTERNET------BASICS-------UPDATED PPT PRESENTATION
PDF
Tenda Login Guide: Access Your Router in 5 Easy Steps
PPTX
artificial intelligence overview of it and more
PPTX
Digital Literacy And Online Safety on internet
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
PDF
LABUAN4D EXCLUSIVE SERVER STAR GAMING ASIA NO.1
PPTX
SAP Ariba Sourcing PPT for learning material
DOCX
Unit-3 cyber security network security of internet system
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PDF
The Internet -By the Numbers, Sri Lanka Edition
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PPTX
Internet___Basics___Styled_ presentation
PPT
tcp ip networks nd ip layering assotred slides
PDF
Behind the Smile Unmasking Ken Childs and the Quiet Trail of Deceit Left in H...
PDF
LABUAN4D EXCLUSIVE SERVER STAR GAMING ASIA NO.1
PPTX
international classification of diseases ICD-10 review PPT.pptx
PPTX
Introuction about WHO-FIC in ICD-10.pptx
durere- in cancer tu ttresjjnklj gfrrjnrs mhugyfrd
Slides PPTX World Game (s) Eco Economic Epochs.pptx
522797556-Unit-2-Temperature-measurement-1-1.pptx
INTERNET------BASICS-------UPDATED PPT PRESENTATION
Tenda Login Guide: Access Your Router in 5 Easy Steps
artificial intelligence overview of it and more
Digital Literacy And Online Safety on internet
An introduction to the IFRS (ISSB) Stndards.pdf
LABUAN4D EXCLUSIVE SERVER STAR GAMING ASIA NO.1
SAP Ariba Sourcing PPT for learning material
Unit-3 cyber security network security of internet system
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
The Internet -By the Numbers, Sri Lanka Edition
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
Internet___Basics___Styled_ presentation
tcp ip networks nd ip layering assotred slides
Behind the Smile Unmasking Ken Childs and the Quiet Trail of Deceit Left in H...
LABUAN4D EXCLUSIVE SERVER STAR GAMING ASIA NO.1
international classification of diseases ICD-10 review PPT.pptx
Introuction about WHO-FIC in ICD-10.pptx

Kubernetes is all you need

  • 2. About me I am a Podcaster : http://tiny.cc/vnrpodcast I love to talking to techies A Bibliophile Passionate about Image dataset - Computer Vision Now exploring Azure cloud
  • 3. Container are very light weight SERVER HOST OS GUEST OS HYPERVISOR LIBRARIES/Bin APP A GUEST OS LIBRARIES/Bin APP B VM SERVER HOST OS APP A APP B LIBRARIES LIBRARIES CONTAINER S • Containers are isolated but share OS • Increase the compute density and memory utilization DOCKER ENGINE
  • 6. Benefits of Containerization ● Consistent Environment ● Run AnyWhere ● Light Weight and Faster ● Effective Isolation and Resource Sharing ● Improved Development Piepline
  • 7. Scalable by Design ● Containers are industry leaders in the time to start new instance ● Container spin time for new instance takes seconds ● Provisioning and starting new Virtual Machines takes from 5 to 20 minutes
  • 8. Container + Microservice ● One microservice application = one container ● Granular fast scalability ● Similar experience on workstation and production ● Hybrid environments: deploy to cloud and on-premise
  • 9. Thus we need to Kubernetes to : ● Schedule ● Control ● Sclae ● Monitor
  • 10. We just need them to Handle compute resources That were limited to every person in the worl ● Prioritization,Tracking,Limiting,and also Isolation. ● CPU,RAM,IO,Networking
  • 12. Cloud native application are Cloud native is a term used to generally describe container-based environments. Cloud-native technologies are used to develop applications built with services packaged in containers, deployed as microservices and managed on elastic infrastructure through agile DevOps processes and continuous delivery workflows. ● A container-based infrastructure. ● An architecture built around microservices. ● Use of continuous integration and continuous delivery (CI/CD) ● Composed of Microservices ● Packaged in Containers ● Rapidly (Re)Deployable in a Continuous Delivery Model
  • 13. Microservice ● One job ● Separate processes ● Execution scope ● CI/CD ● Resiliency ● Independent ● Flexible/Scalable ● Replaceable ● Upgradable
  • 14. Why Microservice? ● Each team is independent from the rest, decoupling the release cycle with others. ● Clear separation of boundaries. ● Easier to identify when things go wrong. ● Choice of programming language appropriate for the task. ● Refactoring becomes easier. ● Enabler for CI/CD pipelines.
  • 15. Microservice to the world of the development Software containers ● 1 image -> Many containers ○ Laptop, DC, cloud ○ Dev, QA, production, support ● Simple, efficient ● Isolation ● Constraints
  • 16. Docker is all about these factors ●Standardized packaging for software and dependencies ●Isolate apps from each other ●Share the same OS kernel ●Works with all major Linux and Windows Server
  • 17. Container are very light weight SERVER HOST OS GUEST OS HYPERVISOR LIBRARIES/Bin APP A GUEST OS LIBRARIES/Bin APP B VM SERVER HOST OS APP A APP B LIBRARIES LIBRARIES CONTAINER S • Containers are isolated but share OS • Increase the compute density and memory utilization DOCKER ENGINE
  • 18. Benefits of VM • Better resource pooling – One physical machine divided into multiple virtual machines • Easier to scale • VMs in the cloud – Rapid elasticity – Pay as you go model
  • 19. Docker • Simple to use • 100K+ images on Docker Hub • Build images from images • Platforms – Linux, OS X, Windows – Laptop, VM, Cloud,… – Cloud services
  • 22. All the above thing can be handled using Containers The new big thing
  • 24. From Dev To Ops PHYSICAL VIRTUAL CLOUD Any Application
  • 25. Docker Platform Docker Image Docker Engine Registry Service (Docker Hub or Docker Trusted Registry) Cloud or server based storage and distribution service for images Docker Container
  • 27. Docker Hub: Build, Ship, Run Applications Build Ship Run Dev QA Source Staging Physical Virtual Cloud InfrastructureManagement InfrastructureManagement DockerFile Source Code Repository TEST TEST TEST TEST TEST GCE RAX Azure Mac/Win Dev Machine Boot2Docker Docker Analytics DB Prod Machine Linux OS Docker Docker ++ Users Collab Provenance Policy Docker Hub Registries Public Curated Private Docker Hub API Third Party Tools Prod Machine Linux OS Docker Docker Prod Machine Linux OS Docker Docker VM Docker Docker VM Docker Docker VM Docker Docker QA Machine Linux OS Docker Docker Docker Hub provides a centralized resource for container image discovery, distribution and change management, user and team collaboration, and workflow automation
  • 28. Docker Hub: Build, Ship, Run Applications Build Ship Run Dev QA Source Staging Physical Virtual Cloud InfrastructureManagement InfrastructureManagement DockerFile Source Code Repository TEST TEST TEST TEST TEST GCE RAX Azure Mac/Win Dev Machine Boot2Docker Docker Analytics DB Prod Machine Linux OS Docker Docker ++ Users Collab Provenance Policy Docker Hub Registries Public Curated Private Docker Hub API Third Party Tools Prod Machine Linux OS Docker Docker Prod Machine Linux OS Docker Docker VM Docker Docker VM Docker Docker VM Docker Docker QA Machine Linux OS Docker Docker Docker Hub provides a centralized resource for container image discovery, distribution and change management, user and team collaboration, and workflow automation
  • 30. Kubernetes has the DNA of the File System Also Borg and Omega.
  • 31. They just behaved monolithic ● Inefficient to manage ● Change on one module -> repackage the whole thing ● Slows down the development velocity -> conflicts coordination,approval ● Delays in identifying the root cause of failures ● Responsibility issues ,blame games on the environment.
  • 32. Container = Docker? Image format : Upload,Download,Share,Build. API : Automating Creation,Deletion,Starting,Stopping.
  • 33. Networking will always be good This is a fault proof networking
  • 36. But the caveat is Security
  • 37. Microservice that is built on containers Many small, focused containers -> sophisticated services • Well defined APIs • Independent languages & libraries • Modular: easy maintenance + reuse • Fault tolerant • Scalable • Immutable
  • 38. Orchestration Typically microservices are encapsulated inside containers… One:One relationship between a microservice and a container Everyone’s container journey starts with one container….
  • 39. Kubernetes Kubernetes is ancient Greek for "Helmsman". Root of the word "Governor", "Cybernetics". Kubernetes is a "Container Orchestrator" or "Cluster Manager". ● Places containers on nodes ● Recovers automatically from failure ● Basic monitoring, logging, health checking ● Enables containers to find each other.
  • 40. Gaps today in the Dev to Production ● Multi-machine ● Discovery and Naming ● Scaling ● Multiple users ● Failure tolerance and recovery ● Monitoring ● Logging ● High availability ● Deployment lifecycle ● Load balancing ● etc, etc
  • 41. Microservices are ● Microservice architecture – a variant of the service- oriented architecture structural style – arranges an application as a collection of loosely-coupled services. In a microservices architecture, services are fine-grained and the protocols are lightweight. ● Split your application into small services that can be reused, remixed and shared. ○ Enables smaller, nimble, decoupled teams and processes. ○ Better tooling enables and encourages microservices.
  • 43. Development History ● Based on ideas proven at Google over 10 years ● Everything at Google runs in a container. ● Google launches 2 billion containers per week. ● Part of a larger set of tools that make up the internal Google platform.
  • 44. Kubernetes ts open source ● https://github.com/kubernetes/kubernetes ● Very active open source project ● 23k stars, 1400+ contributors ● Apache 2 licensed ● Written in Go ● Hosted by the Cloud Native Computing Foundation (CNCF)
  • 45. Benefits ● Extend the container goodness across nodes. ● Enable operations specialization. Cluster Ops vs. App Ops ● Reduce cost to run many things in production. Enables new ways of building applications.
  • 46. Benefits of Kubernetes 1. Intelligent Scheduling 2. Self-healing 3. Horizontal scaling 4. Service discovery & load balancing 5. Automated rollouts and rollbacks 6. Secret and configuration management
  • 47. Design Principles ● declarative > imperative ● control loops ● simple > complex ● modularity ● legacy compatible ● network-centric ● labels > hierarchy ● cattle > pets ● open > closed
  • 49. Pod Log Server Serving App Data Loader LOGS App Data
  • 50. Pod - Label C1 C2 C3 V1 V2 Version = 1.0 Service = FE App = Hello
  • 51. Replica Set Replicas = 2 Pod Template
  • 52. Replica Set Replicas = 1 Pod Template
  • 54. So much more 1. Namespace 2. Ingress 3. Deployment 4. Jobs 5. Autoscaling 6. Daemonsets
  • 55. Continued 1. Role Based Access Control 2. Multiple Scheduling 3. Flexible Scheduling Constraints 4. Stateful sets 5. Automatic Cluster Scaling 6. Cloud Provider integration 7. Network Policy
  • 56. Ecosystem ● Platforms ● Operators ● Authentication Provider ● Helm ● Extended Network Policy