Top Banner
Kubernetes & Google Container Engine Overview January 2015 Kit Merker Product Manager
15

Meteor South Bay Meetup - Kubernetes & Google Container Engine

Jul 21, 2015

Download

Technology

Kit Merker
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Meteor South Bay Meetup - Kubernetes & Google Container Engine

Kubernetes & Google Container EngineOverview January 2015Kit MerkerProduct Manager

Page 2: Meteor South Bay Meetup - Kubernetes & Google Container Engine

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

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

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

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

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

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

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

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

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

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

“[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

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

Each week at Google we launch over 2 billion containers

Page 15: Meteor South Bay Meetup - Kubernetes & Google Container Engine

cloud.google.com

Images by Connie Zhou