SlideShare a Scribd company logo
1 of 27
Download to read offline
Kubernetes in Docker
Alex Mavrogiannis
Docker EE Engineering
Agenda
1. Introduction
2. Demo: Kubernetes in Docker EE 2.0
3. General CE/EE Architectures
4. EE: Topics on mixed workloads
5. EE: AuthN/AuthZ
6. Q&A
Introduction
What are Docker containers?
Processes running on the same host OS using the following mechanisms:
โ— IPC Namespaces
โ— PID Namespaces
โ— Network Namespaces
โ— Control Groups (Memory/CPU)
โ— Union Filesystems and image distribution mechanisms
Containers are managed by the Container Runtime process running on the host OS, the Docker Engine.
What is a container orchestrator?
Management of containers running in one or more container runtimes
Orchestrator: Docker Swarm
โ— github.com/docker/swarm
โ— Cluster-wide imperative API based on the single-node API of the Docker Engine
โ— High Availability and peer discovery managed through a pluggable discovery backend:
etcd, consul
โ— โ€œLeaderโ€ caches entire cluster state: containers, volumes, networks etc.
Orchestrator: Docker Engine with Swarm-Mode Enabled
โ— github.com/docker/swarmkit
โ— Declarative State through the โ€œServiceโ€ construct
โ— Built-in Routing Mesh & Overlay networking
โ— In-memory Raft Store for all state (persisted to disk)
โ— Built-in CA, per-node cryptographic node identity, mTLS between all endpoints
Orchestrator: Kubernetes
โ— github.com/kubernetes/kubernetes
โ— Scheduling Unit: Pods
โ— Declarative State through โ€œControllersโ€: Deployment, ReplicaSet, DaemonSet โ€ฆ
โ— Flat Networking model delegated to plugins
Docker EE 2.0: A conformant kubernetes distribution
Demo: Kubernetes in
Docker EE 2.0
General CE/EE Architecture
Linuxkit VM
Kubernetes CLI
Swarm Mode Kubernetes
etcd
Docker CLI
kubeadm
Kubernetes in Docker CE (Windows and Mac)
Compose
CRD
Single Docker Engine
vpnkitHost fs mounts hyperkit / hyperv
Docker EE to include Kubernetes
Private Image Registry
Secure Access and User
Management
App and Cluster Management
Image Security Scanning Content Trust and Verification
Policy Management
GUI
Universal Control Plane
Trusted Registry Kubernetes CLI
Docker Engine
Swarm-Mode
Docker Swarm Kubernetes
etcd
CA OIDC Provider
Docker CLI
Node Agent Reconciler
Kubernetes in Docker EE
Docker EE Architectural Highlights
โ— Conformant Kubernetes components ran as Docker containers
โ— Swarm Managers are Kubernetes Masters
โ— Swarmkit node inventory is source of truth
โ— Cryptographic Node Identity and mTLS used throughout
Kubernetes Plugin Interfaces in Docker EE
โ— General:
โ—‹ Native API extensibility supported
โ—‹ Some apiserver/kubelet flags modifiable by users
โ— Networking:
โ—‹ Support for CNI plugin during install
โ—‹ Ingress
โ— Storage: Docker Volume Plugins supported via built-in flexvolume driver, CSI in future
โ— Metrics: Heapster Storage Backends or Prometheus
Topics on Mixed Workloads
Resource Contention
โ— Allocatable Resources: The set of CPU and Memory resources available for scheduling by
an orchestrator on a single node
โ— Multiple orchestrators = Different definitions of allocatable resources
โ—‹ Docker Swarm: Respectful of CPU/Memory limits, but container cache may be stale
โ—‹ Docker Engine with Swarm-Mode: Only aware of its own reservations
โ—‹ Kubernetes: Effective handling of out-of-resource situations, but only for kubernetes
workloads
โ— When a node is at/near capacity:
โ—‹ All CPU shares throttled equally
โ—‹ The OSโ€™s OOM killer kills processes
โ—‹ All orchestrators will reschedule on OOM, but potential workload interruption
Orchestrator Selection
โ— Each node is running both kubernetes and swarm system components
โ— Administrators can toggle between (kubernetes, swarm or mixed) scheduling for any given
node.
โ— When toggling orchestrators, workloads of the previous orchestrator will be evicted
โ— If a node is not enabled for a given orchestrator, users will not be able to schedule
workloads on that node using that orchestrator.
Manager Node
(K8s, Swarm)
Worker Node
(Swarm)
Worker Node
(Kubernetes)
Worker Node
(Kubernetes)
Kubelet
Swarm Agents
Kubelet Kubelet Kubelet
Swarm Agents Swarm Agents Swarm Agents
Workload Interoperability
โ— Networking
โ—‹ Layer 3 not connected between kubernetes & swarm
โ—‹ Batteries-included kubernetes ingress controller
โ—‹ Layer 7 routing for swarm workloads
โ—‹ Configure external DNS
โ— Storage: Kubernetes workloads with docker volumes via flexvolume
AuthN / AuthZ
Identity Providers
Systems that manage identity information for principals and provides user authentication as a
service.
โ— SAML
โ— OpenID Connect (OIDC)
Actors in Docker EE Authentication/Authorization
โ— Client (Browser, Docker CLI or kubectl)
โ— UCP Controller
โ— OIDC Provider
โ— Kubernetes API server
AuthN
AuthZ
In Summary...
โ— Docker EE and CE will include a conformant
Kubernetes distribution.
โ— Resource Contention mitigated via orchestrator
selection
โ— In EE, Authentication and Authorization integrated
via standard plugin interfaces.
Thank You!
alexmavr
alex.mavrogiannis@docker.com
Sign up for the beta at docker.com/kubernetes

More Related Content

What's hot

What's hot (20)

Introduction to Kubernetes
Introduction to KubernetesIntroduction to Kubernetes
Introduction to Kubernetes
ย 
Introduction to Kubernetes Workshop
Introduction to Kubernetes WorkshopIntroduction to Kubernetes Workshop
Introduction to Kubernetes Workshop
ย 
Scale out, with Kubernetes (k8s)
Scale out, with Kubernetes (k8s)Scale out, with Kubernetes (k8s)
Scale out, with Kubernetes (k8s)
ย 
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
ย 
Platform Orchestration with Kubernetes and Docker
Platform Orchestration with Kubernetes and DockerPlatform Orchestration with Kubernetes and Docker
Platform Orchestration with Kubernetes and Docker
ย 
Meteor South Bay Meetup - Kubernetes & Google Container Engine
Meteor South Bay Meetup - Kubernetes & Google Container EngineMeteor South Bay Meetup - Kubernetes & Google Container Engine
Meteor South Bay Meetup - Kubernetes & Google Container Engine
ย 
Deep Dive into Kubernetes - Part 2
Deep Dive into Kubernetes - Part 2Deep Dive into Kubernetes - Part 2
Deep Dive into Kubernetes - Part 2
ย 
Kubernetes for Beginners: An Introductory Guide
Kubernetes for Beginners: An Introductory GuideKubernetes for Beginners: An Introductory Guide
Kubernetes for Beginners: An Introductory Guide
ย 
Revolutionizing WSO2 PaaS with Kubernetes & App Factory
Revolutionizing WSO2 PaaS with Kubernetes & App FactoryRevolutionizing WSO2 PaaS with Kubernetes & App Factory
Revolutionizing WSO2 PaaS with Kubernetes & App Factory
ย 
Kubernetes - how to orchestrate containers
Kubernetes - how to orchestrate containersKubernetes - how to orchestrate containers
Kubernetes - how to orchestrate containers
ย 
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
ย 
DevJam 2019 - Introduction to Kubernetes
DevJam 2019 - Introduction to KubernetesDevJam 2019 - Introduction to Kubernetes
DevJam 2019 - Introduction to Kubernetes
ย 
Deploying your first application with Kubernetes
Deploying your first application with KubernetesDeploying your first application with Kubernetes
Deploying your first application with Kubernetes
ย 
Kubernetes a comprehensive overview
Kubernetes   a comprehensive overviewKubernetes   a comprehensive overview
Kubernetes a comprehensive overview
ย 
Introduction to Kubernetes
Introduction to KubernetesIntroduction to Kubernetes
Introduction to Kubernetes
ย 
Kubernetes Basic Operation
Kubernetes Basic OperationKubernetes Basic Operation
Kubernetes Basic Operation
ย 
Kubernetes - introduction
Kubernetes - introductionKubernetes - introduction
Kubernetes - introduction
ย 

Similar to Kubernetes in Docker

kubernetesssssssssssssssssssssssssss.pdf
kubernetesssssssssssssssssssssssssss.pdfkubernetesssssssssssssssssssssssssss.pdf
kubernetesssssssssssssssssssssssssss.pdf
bchiriamina2
ย 

Similar to Kubernetes in Docker (20)

Kubernetes in Docker
Kubernetes in DockerKubernetes in Docker
Kubernetes in Docker
ย 
Containers kuberenetes
Containers kuberenetesContainers kuberenetes
Containers kuberenetes
ย 
Containers kuberenetes
Containers kuberenetesContainers kuberenetes
Containers kuberenetes
ย 
Containers kuberenetes
Containers kuberenetesContainers kuberenetes
Containers kuberenetes
ย 
Kubernetes 101 for Beginners
Kubernetes 101 for BeginnersKubernetes 101 for Beginners
Kubernetes 101 for Beginners
ย 
Kubernetes #1 intro
Kubernetes #1   introKubernetes #1   intro
Kubernetes #1 intro
ย 
Docker Dublin Meetup | 22 Feb 2018 | Docker + Kubernetes
Docker Dublin Meetup | 22 Feb 2018 | Docker + KubernetesDocker Dublin Meetup | 22 Feb 2018 | Docker + Kubernetes
Docker Dublin Meetup | 22 Feb 2018 | Docker + Kubernetes
ย 
An Introduction to Kubernetes
An Introduction to KubernetesAn Introduction to Kubernetes
An Introduction to Kubernetes
ย 
kubernetesssssssssssssssssssssssssss.pdf
kubernetesssssssssssssssssssssssssss.pdfkubernetesssssssssssssssssssssssssss.pdf
kubernetesssssssssssssssssssssssssss.pdf
ย 
Docker Fundamentals
Docker FundamentalsDocker Fundamentals
Docker Fundamentals
ย 
Docker Enterprise Workshop - Technical
Docker Enterprise Workshop - TechnicalDocker Enterprise Workshop - Technical
Docker Enterprise Workshop - Technical
ย 
Containers orchestrators: Docker vs. Kubernetes
Containers orchestrators: Docker vs. KubernetesContainers orchestrators: Docker vs. Kubernetes
Containers orchestrators: Docker vs. Kubernetes
ย 
Docker on Amazon ECS
Docker on Amazon ECSDocker on Amazon ECS
Docker on Amazon ECS
ย 
Scalable Spark deployment using Kubernetes
Scalable Spark deployment using KubernetesScalable Spark deployment using Kubernetes
Scalable Spark deployment using 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
ย 
Secure Your Containers: What Network Admins Should Know When Moving Into Prod...
Secure Your Containers: What Network Admins Should Know When Moving Into Prod...Secure Your Containers: What Network Admins Should Know When Moving Into Prod...
Secure Your Containers: What Network Admins Should Know When Moving Into Prod...
ย 
Kubernetes
KubernetesKubernetes
Kubernetes
ย 
Apache Cassandra Lunch #41: Cassandra on Kubernetes - Docker/Kubernetes/Helm ...
Apache Cassandra Lunch #41: Cassandra on Kubernetes - Docker/Kubernetes/Helm ...Apache Cassandra Lunch #41: Cassandra on Kubernetes - Docker/Kubernetes/Helm ...
Apache Cassandra Lunch #41: Cassandra on Kubernetes - Docker/Kubernetes/Helm ...
ย 
Introducing Kubernetes
Introducing Kubernetes Introducing Kubernetes
Introducing Kubernetes
ย 
WSO2 Kubernetes Reference Architecture - Nov 2017
WSO2 Kubernetes Reference Architecture - Nov 2017WSO2 Kubernetes Reference Architecture - Nov 2017
WSO2 Kubernetes Reference Architecture - Nov 2017
ย 

Recently uploaded

Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
SUHANI PANDEY
ย 
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
ย 
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
ย 
Call Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
SUHANI PANDEY
ย 
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
SUHANI PANDEY
ย 
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
ย 
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
SUHANI PANDEY
ย 

Recently uploaded (20)

Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
ย 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
ย 
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
ย 
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
Russian Call Girls in %(+971524965298  )#  Call Girls in DubaiRussian Call Girls in %(+971524965298  )#  Call Girls in Dubai
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
ย 
Al Barsha Night Partner +0567686026 Call Girls Dubai
Al Barsha Night Partner +0567686026 Call Girls  DubaiAl Barsha Night Partner +0567686026 Call Girls  Dubai
Al Barsha Night Partner +0567686026 Call Girls Dubai
ย 
Top Rated Pune Call Girls Daund โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Daund โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Daund โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Daund โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Servi...
ย 
All Time Service Available Call Girls Mg Road ๐Ÿ‘Œ โญ๏ธ 6378878445
All Time Service Available Call Girls Mg Road ๐Ÿ‘Œ โญ๏ธ 6378878445All Time Service Available Call Girls Mg Road ๐Ÿ‘Œ โญ๏ธ 6378878445
All Time Service Available Call Girls Mg Road ๐Ÿ‘Œ โญ๏ธ 6378878445
ย 
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
ย 
VVVIP Call Girls In Connaught Place โžก๏ธ Delhi โžก๏ธ 9999965857 ๐Ÿš€ No Advance 24HRS...
VVVIP Call Girls In Connaught Place โžก๏ธ Delhi โžก๏ธ 9999965857 ๐Ÿš€ No Advance 24HRS...VVVIP Call Girls In Connaught Place โžก๏ธ Delhi โžก๏ธ 9999965857 ๐Ÿš€ No Advance 24HRS...
VVVIP Call Girls In Connaught Place โžก๏ธ Delhi โžก๏ธ 9999965857 ๐Ÿš€ No Advance 24HRS...
ย 
WhatsApp ๐Ÿ“ž 8448380779 โœ…Call Girls In Mamura Sector 66 ( Noida)
WhatsApp ๐Ÿ“ž 8448380779 โœ…Call Girls In Mamura Sector 66 ( Noida)WhatsApp ๐Ÿ“ž 8448380779 โœ…Call Girls In Mamura Sector 66 ( Noida)
WhatsApp ๐Ÿ“ž 8448380779 โœ…Call Girls In Mamura Sector 66 ( Noida)
ย 
Call Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
ย 
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
ย 
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
ย 
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
ย 
Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts ServiceReal Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
ย 
Dubai Call Girls Milky O525547819 Call Girls Dubai Soft Dating
Dubai Call Girls Milky O525547819 Call Girls Dubai Soft DatingDubai Call Girls Milky O525547819 Call Girls Dubai Soft Dating
Dubai Call Girls Milky O525547819 Call Girls Dubai Soft Dating
ย 
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
ย 
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
ย 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
ย 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
ย 

Kubernetes in Docker

  • 1. Kubernetes in Docker Alex Mavrogiannis Docker EE Engineering
  • 2. Agenda 1. Introduction 2. Demo: Kubernetes in Docker EE 2.0 3. General CE/EE Architectures 4. EE: Topics on mixed workloads 5. EE: AuthN/AuthZ 6. Q&A
  • 4. What are Docker containers? Processes running on the same host OS using the following mechanisms: โ— IPC Namespaces โ— PID Namespaces โ— Network Namespaces โ— Control Groups (Memory/CPU) โ— Union Filesystems and image distribution mechanisms Containers are managed by the Container Runtime process running on the host OS, the Docker Engine.
  • 5. What is a container orchestrator? Management of containers running in one or more container runtimes
  • 6. Orchestrator: Docker Swarm โ— github.com/docker/swarm โ— Cluster-wide imperative API based on the single-node API of the Docker Engine โ— High Availability and peer discovery managed through a pluggable discovery backend: etcd, consul โ— โ€œLeaderโ€ caches entire cluster state: containers, volumes, networks etc.
  • 7. Orchestrator: Docker Engine with Swarm-Mode Enabled โ— github.com/docker/swarmkit โ— Declarative State through the โ€œServiceโ€ construct โ— Built-in Routing Mesh & Overlay networking โ— In-memory Raft Store for all state (persisted to disk) โ— Built-in CA, per-node cryptographic node identity, mTLS between all endpoints
  • 8. Orchestrator: Kubernetes โ— github.com/kubernetes/kubernetes โ— Scheduling Unit: Pods โ— Declarative State through โ€œControllersโ€: Deployment, ReplicaSet, DaemonSet โ€ฆ โ— Flat Networking model delegated to plugins
  • 9.
  • 10. Docker EE 2.0: A conformant kubernetes distribution
  • 13. Linuxkit VM Kubernetes CLI Swarm Mode Kubernetes etcd Docker CLI kubeadm Kubernetes in Docker CE (Windows and Mac) Compose CRD Single Docker Engine vpnkitHost fs mounts hyperkit / hyperv
  • 14. Docker EE to include Kubernetes Private Image Registry Secure Access and User Management App and Cluster Management Image Security Scanning Content Trust and Verification Policy Management
  • 15. GUI Universal Control Plane Trusted Registry Kubernetes CLI Docker Engine Swarm-Mode Docker Swarm Kubernetes etcd CA OIDC Provider Docker CLI Node Agent Reconciler Kubernetes in Docker EE
  • 16. Docker EE Architectural Highlights โ— Conformant Kubernetes components ran as Docker containers โ— Swarm Managers are Kubernetes Masters โ— Swarmkit node inventory is source of truth โ— Cryptographic Node Identity and mTLS used throughout
  • 17. Kubernetes Plugin Interfaces in Docker EE โ— General: โ—‹ Native API extensibility supported โ—‹ Some apiserver/kubelet flags modifiable by users โ— Networking: โ—‹ Support for CNI plugin during install โ—‹ Ingress โ— Storage: Docker Volume Plugins supported via built-in flexvolume driver, CSI in future โ— Metrics: Heapster Storage Backends or Prometheus
  • 18. Topics on Mixed Workloads
  • 19. Resource Contention โ— Allocatable Resources: The set of CPU and Memory resources available for scheduling by an orchestrator on a single node โ— Multiple orchestrators = Different definitions of allocatable resources โ—‹ Docker Swarm: Respectful of CPU/Memory limits, but container cache may be stale โ—‹ Docker Engine with Swarm-Mode: Only aware of its own reservations โ—‹ Kubernetes: Effective handling of out-of-resource situations, but only for kubernetes workloads โ— When a node is at/near capacity: โ—‹ All CPU shares throttled equally โ—‹ The OSโ€™s OOM killer kills processes โ—‹ All orchestrators will reschedule on OOM, but potential workload interruption
  • 20. Orchestrator Selection โ— Each node is running both kubernetes and swarm system components โ— Administrators can toggle between (kubernetes, swarm or mixed) scheduling for any given node. โ— When toggling orchestrators, workloads of the previous orchestrator will be evicted โ— If a node is not enabled for a given orchestrator, users will not be able to schedule workloads on that node using that orchestrator. Manager Node (K8s, Swarm) Worker Node (Swarm) Worker Node (Kubernetes) Worker Node (Kubernetes) Kubelet Swarm Agents Kubelet Kubelet Kubelet Swarm Agents Swarm Agents Swarm Agents
  • 21. Workload Interoperability โ— Networking โ—‹ Layer 3 not connected between kubernetes & swarm โ—‹ Batteries-included kubernetes ingress controller โ—‹ Layer 7 routing for swarm workloads โ—‹ Configure external DNS โ— Storage: Kubernetes workloads with docker volumes via flexvolume
  • 23. Identity Providers Systems that manage identity information for principals and provides user authentication as a service. โ— SAML โ— OpenID Connect (OIDC)
  • 24. Actors in Docker EE Authentication/Authorization โ— Client (Browser, Docker CLI or kubectl) โ— UCP Controller โ— OIDC Provider โ— Kubernetes API server
  • 26. In Summary... โ— Docker EE and CE will include a conformant Kubernetes distribution. โ— Resource Contention mitigated via orchestrator selection โ— In EE, Authentication and Authorization integrated via standard plugin interfaces.
  • 27. Thank You! alexmavr alex.mavrogiannis@docker.com Sign up for the beta at docker.com/kubernetes