meteor south bay meetup - kubernetes & google container engine
TRANSCRIPT
![Page 1: Meteor South Bay Meetup - Kubernetes & Google Container Engine](https://reader031.vdocuments.us/reader031/viewer/2022032715/55adb28c1a28ab9f398b4640/html5/thumbnails/1.jpg)
Kubernetes & Google Container EngineOverview January 2015Kit MerkerProduct Manager
![Page 2: Meteor South Bay Meetup - Kubernetes & Google Container Engine](https://reader031.vdocuments.us/reader031/viewer/2022032715/55adb28c1a28ab9f398b4640/html5/thumbnails/2.jpg)
Comparing Container & VMsContainers are like VMs, but less overhead
Physical Processor
Virtual Processor
Operating System
Libraries
User Code
Physical Processor
Virtual Processor
Operating System
Libraries
User Code
PrivateCopy
Shared
PrivateCopy
Shared
Virtual Machines Containers
![Page 3: Meteor South Bay Meetup - Kubernetes & Google Container Engine](https://reader031.vdocuments.us/reader031/viewer/2022032715/55adb28c1a28ab9f398b4640/html5/thumbnails/3.jpg)
Addressing developer needsReliable packaging and deployment is hard.Containers can solve these problems:● “It ran on my machine.”
● “Sorry, the installation partially failed.”
● “But we depend on v1.1! [aka ‘dll hell’]”
Traditional VM package managers don’t handle these.
![Page 4: Meteor South Bay Meetup - Kubernetes & Google Container Engine](https://reader031.vdocuments.us/reader031/viewer/2022032715/55adb28c1a28ab9f398b4640/html5/thumbnails/4.jpg)
Addressing IT/Ops needs● Already delegate physical ops via cloud/VMs, container
clusters take that a step further
● Reduce knowledge of application specifics
● Focus on capacity, bandwidth, utilization, geo-
distribution, security, data management
● Simplify & harden handoff from dev
![Page 5: Meteor South Bay Meetup - Kubernetes & Google Container Engine](https://reader031.vdocuments.us/reader031/viewer/2022032715/55adb28c1a28ab9f398b4640/html5/thumbnails/5.jpg)
Container Cluster Orchestration
Package & run your app as containers
Find existing container images from others
Deploy your container on your laptop, server, or
cloud
Container Cluster Orchestration Engine
Declarative management hides complexity
Open Source, Runs Anywhere
Cluster-Oriented Container Service
Full Google Cloud Platform Infrastructure
Powered by Kubernetes
Kubernetes Container Engine
![Page 6: Meteor South Bay Meetup - Kubernetes & Google Container Engine](https://reader031.vdocuments.us/reader031/viewer/2022032715/55adb28c1a28ab9f398b4640/html5/thumbnails/6.jpg)
Pods
MachineHost
MachineHost
MachineHost
MachineHost
KubernetesAgent
KubernetesAgent
KubernetesAgent
KubernetesAgent
KubernetesMaster/Scheduler
A
B● Group of containers● Settings in a template
Behaviors
Benefits
➔ Reuse across environments➔ Repeatable, manageable
![Page 7: Meteor South Bay Meetup - Kubernetes & Google Container Engine](https://reader031.vdocuments.us/reader031/viewer/2022032715/55adb28c1a28ab9f398b4640/html5/thumbnails/7.jpg)
Replicas
Replica managers: Managing the lifecycle of containers
Pod
frontend
Pod
frontend
ReplicationController
#Pods: 2
Pod Pod
frontend
Pod
v1 v1
Behavior
Benefits
● Keeps Pods running● Gives direct control of Pod #s
➔ Restarts Pods, desired state➔ Fine-grained control for scaling
![Page 8: Meteor South Bay Meetup - Kubernetes & Google Container Engine](https://reader031.vdocuments.us/reader031/viewer/2022032715/55adb28c1a28ab9f398b4640/html5/thumbnails/8.jpg)
Services
Service: A way to find and consume distributed systems
PodPod
Service
Client
PodPod
Benefits
● Stable address● Decoupled from
Controllers
➔ Clients shielded from implementation details➔ Independently control each, build for resiliency
Behavior
![Page 9: Meteor South Bay Meetup - Kubernetes & Google Container Engine](https://reader031.vdocuments.us/reader031/viewer/2022032715/55adb28c1a28ab9f398b4640/html5/thumbnails/9.jpg)
Labels
Labels: A way to manage large deployments
Pod
frontend
Pod
frontendPod Pod Pod
FE FE v2
● Metadata with semantic meaning● Membership identifier
Behavior
Benefits
➔ Allow for intent of many users (e.g. dashboards)➔ Build higher level systems …
![Page 10: Meteor South Bay Meetup - Kubernetes & Google Container Engine](https://reader031.vdocuments.us/reader031/viewer/2022032715/55adb28c1a28ab9f398b4640/html5/thumbnails/10.jpg)
Mobility
Hypervisor
Node environment
guest OS
app code
libraries
container 1
Hypervisor
Node environment
guest OS
app code
libraries
container 1
move
environment A
environment B
![Page 11: Meteor South Bay Meetup - Kubernetes & Google Container Engine](https://reader031.vdocuments.us/reader031/viewer/2022032715/55adb28c1a28ab9f398b4640/html5/thumbnails/11.jpg)
Mobility
Hypervisor
Node environment
guest OS
app code
libraries
container 1
Hypervisor
Node environment
guest OS
app code
libraries
container 1
move
environment A
environment B
![Page 12: Meteor South Bay Meetup - Kubernetes & Google Container Engine](https://reader031.vdocuments.us/reader031/viewer/2022032715/55adb28c1a28ab9f398b4640/html5/thumbnails/12.jpg)
“[Google's] ability to build, organize, and operate a huge network of servers and fiber-optic cables with an efficiency and speed that rocks physics on its heels.
This is what makes Google Google: its physical network, its thousands of fiber miles, and those many thousands of servers that, in aggregate, add up to the mother of all clouds.”
- Wired
Images by Connie Zhou
![Page 13: Meteor South Bay Meetup - Kubernetes & Google Container Engine](https://reader031.vdocuments.us/reader031/viewer/2022032715/55adb28c1a28ab9f398b4640/html5/thumbnails/13.jpg)
For the past 15 years, Google has been building out the world’s fastest, most powerful, highest quality cloud infrastructure on the planet.
Images by Connie Zhou
![Page 14: Meteor South Bay Meetup - Kubernetes & Google Container Engine](https://reader031.vdocuments.us/reader031/viewer/2022032715/55adb28c1a28ab9f398b4640/html5/thumbnails/14.jpg)
Each week at Google we launch over 2 billion containers
![Page 15: Meteor South Bay Meetup - Kubernetes & Google Container Engine](https://reader031.vdocuments.us/reader031/viewer/2022032715/55adb28c1a28ab9f398b4640/html5/thumbnails/15.jpg)
cloud.google.com
Images by Connie Zhou