The document discusses Kubernetes and container orchestration. It begins with an introduction to the problem of managing containers and microservices across multiple machines. It then covers key Kubernetes concepts like pods, controllers, services, labels and selectors. It also demonstrates Kubernetes in action and discusses options for hosting Kubernetes clusters, particularly Google Container Engine which provides a hosted Kubernetes environment.
44. ‹#›
@tpryan
Pods
• Atomic component of Kubernetes
• Made from one or more containers
• It’s okay to have just one container
• Share
• IP Address
• Namespace
• Examples
• Webserver + CMS
• All Web available services
• Converting an all in one box
50. ‹#›
@tpryan
Service
• Defines a set of pods that work together for a
common purpose
• Gets a virtual IP address
• Used for exposing an application to non
Kubernetes clients
Virtual IP address
51. ‹#›
@tpryan
Labels & Selectors
• Metadata for Objects
• Select sections of your infrastructure
App
Tier
Env
todo
frontend
stage
App
Tier
Env
todo
frontend
prod
App
Tier
Env
todo
frontend
dev
App
Tier
Env
todo
frontend
test
App
Tier
Env
todo
api
prod
App
Tier
Env
todo
backend
prod
App
Tier
Env
todo
api
stage
App
Tier
Env
todo
api
test
App
Tier
Env
todo
api
dev
App
Tier
Env
todo
backend
stage
App
Tier
Env
todo
backend
test
App
Tier
Env
todo
backend
dev
52. ‹#›
@tpryan
Labels & Selectors
• Metadata for Objects
• Select sections of your infrastructure
App
Tier
Env
todo
frontend
stage
App
Tier
Env
todo
frontend
prod
App
Tier
Env
todo
frontend
dev
App
Tier
Env
todo
frontend
test
App
Tier
Env
todo
api
prod
App
Tier
Env
todo
backend
prod
App
Tier
Env
todo
api
stage
App
Tier
Env
todo
api
test
App
Tier
Env
todo
api
dev
App
Tier
Env
todo
backend
stage
App
Tier
Env
todo
backend
test
App
Tier
Env
todo
backend
dev
53. ‹#›
@tpryan
Labels & Selectors
• Metadata for Objects
• Select sections of your infrastructure
App
Tier
Env
todo
frontend
stage
App
Tier
Env
todo
frontend
prod
App
Tier
Env
todo
frontend
dev
App
Tier
Env
todo
frontend
test
App
Tier
Env
todo
api
prod
App
Tier
Env
todo
backend
prod
App
Tier
Env
todo
api
stage
App
Tier
Env
todo
api
test
App
Tier
Env
todo
api
dev
App
Tier
Env
todo
backend
stage
App
Tier
Env
todo
backend
test
App
Tier
Env
todo
backend
dev
54. ‹#›
@tpryan
Labels & Selectors
• Metadata for Objects
• Select sections of your infrastructure
App
Tier
Env
todo
frontend
stage
App
Tier
Env
todo
frontend
prod
App
Tier
Env
todo
frontend
dev
App
Tier
Env
todo
frontend
test
App
Tier
Env
todo
api
prod
App
Tier
Env
todo
backend
prod
App
Tier
Env
todo
api
stage
App
Tier
Env
todo
api
test
App
Tier
Env
todo
api
dev
App
Tier
Env
todo
backend
stage
App
Tier
Env
todo
backend
test
App
Tier
Env
todo
backend
dev
76. ‹#›
@tpryan
Everything at Google runs on Containers:
• Gmail, Web Search, Maps, ...
• MapReduce, batch, ...
• GFS, Colossus, ...
• Even Google’s Cloud Platform: VMs run
in containers!
77. ‹#›
@tpryan
Everything at Google runs on Containers:
• Gmail, Web Search, Maps, ...
• MapReduce, batch, ...
• GFS, Colossus, ...
• Even Google’s Cloud Platform: VMs run
in containers!
We launch 2 Billion Containers a week
80. ‹#›
@tpryan
You should run everything on
containers.
Just in case it isn’t clear here. this is not what I am recommending. I’m saying don’t Cherry Pick from the last statements to come to the conclusion that you have to go
this way.