Share
Embed
Kubernetes 1.4 Update @ GCPUG Fukuoka #4
Ian Lewis
October 24, 2016
Transcript
48 slides
-
Confidential & Proprietary Google Cloud Platform 2 Ian Lewis Developer
Advocate - Google Cloud Platform Tokyo, Japan +Ian Lewis @IanMLewis -
job hello_world = { runtime = { cell = 'ic'
} // Cell (cluster) to run in binary = '.../hello_world_webserver' // Program to run args = { port = '%port%' } // Command line parameters requirements = { // Resource requirements ram = 100M disk = 100M cpu = 0.1 } replicas = 5 // Number of tasks } 10000 Developer View -
web browsers BorgMaster link shard UI shard BorgMaster link shard
UI shard BorgMaster link shard UI shard BorgMaster link shard UI shard Scheduler borgcfg web browsers scheduler Borglet Borglet Borglet Borglet Config file BorgMaster link shard UI shard persistent store (Paxos) Binary Developer View What just happened? -
Hello world! Hello world! Hello world! Hello world! Hello world!
Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Image by Connie Zhou Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! Hello world! -
Enter Kubernetes Greek for “Helmsman”; also the root of the
word “Governor” • Container orchestrator • Runs containers • Supports multiple cloud and bare-metal environments • Inspired and informed by Google’s experiences and internal systems • Open source, written in Go Manage applications, not machines -
Confidential & Proprietary Google Cloud Platform 14 Community • Current
stable version: 1.4 • 930+ contributors • over 17,000 github stars Project Partners -
Google Cloud Platform UI CLI API users master nodes etcd
scheduler controllers master The 10000 Foot View kubelet kubelet kubelet kubelet kubelet kubelet kubelet kubelet kubelet -
Google Cloud Platform UI All you really care about API
Container Cluster -
web browsers BorgMaster link shard UI shard BorgMaster link shard
UI shard BorgMaster link shard UI shard BorgMaster link shard UI shard Scheduler borgcfg web browsers scheduler Borglet Borglet Borglet Borg Kubernetes Borglet Config file BorgMaster link shard UI shard persistent store (Paxos) manifest.yaml Master Kubelet etcd Kubelet Kubelet Binary Docker Image Docker Hub/Private Repo Kubelet kubernetes-dashboard -
Google Cloud Platform Deployments ReplicaSet - replicas: 3 - selector:
- app: MyApp - version: v1 Deployment - name: MyApp kubectl create ... -
Google Cloud Platform Deployments ReplicaSet - replicas: 4 - selector:
- app: MyApp - version: v1 Deployment - name: MyApp kubectl create ... -
Google Cloud Platform Deployments ReplicaSet - replicas: 3 - selector:
- app: MyApp - version: v1 Deployment - name: MyApp kubectl create ... -
Google Cloud Platform Deployments ReplicaSet - replicas: 3 - selector:
- app: MyApp - version: v1 Deployment - name: MyApp kubectl create ... -
Google Cloud Platform Rolling Updates ReplicaSet - replicas: 3 -
selector: - app: MyApp - version: v1 Deployment - name: MyApp kubectl apply ... -
Google Cloud Platform ReplicaSet - replicas: 3 - selector: -
app: MyApp - version: v1 Rolling Updates ReplicaSet - replicas: 0 - selector: - app: MyApp - version: v2 Deployment - name: MyApp -
Google Cloud Platform ReplicaSet - replicas: 3 - selector: -
app: MyApp - version: v1 ReplicaSet - replicas: 1 - selector: - app: MyApp - version: v2 Rolling Updates Deployment - name: MyApp -
Google Cloud Platform ReplicaSet - replicas: 2 - selector: -
app: MyApp - version: v1 ReplicaSet - replicas: 1 - selector: - app: MyApp - version: v2 Rolling Updates Deployment - name: MyApp -
Google Cloud Platform ReplicaSet - replicas: 2 - selector: -
app: MyApp - version: v1 ReplicaSet - replicas: 2 - selector: - app: MyApp - version: v2 Rolling Updates Deployment - name: MyApp -
Google Cloud Platform ReplicaSet - replicas: 1 - selector: -
app: MyApp - version: v1 ReplicaSet - replicas: 2 - selector: - app: MyApp - version: v2 Rolling Updates Deployment - name: MyApp -
Google Cloud Platform ReplicaSet - replicas: 1 - selector: -
app: MyApp - version: v1 ReplicaSet - replicas: 3 - selector: - app: MyApp - version: v2 Rolling Updates Deployment - name: MyApp -
Google Cloud Platform ReplicaSet - replicas: 0 - selector: -
app: MyApp - version: v1 ReplicaSet - replicas: 3 - selector: - app: MyApp - version: v2 Rolling Updates Deployment - name: MyApp -
Google confidential │ Do not distribute Services A group of
pods that work together • grouped by a selector Defines access policy • “load balanced” or “headless” Gets a stable virtual IP and port • sometimes called the service portal • also a DNS name VIP is managed by kube-proxy • watches all services • updates iptables when backends change Hides complexity - ideal for non-native apps Virtual IP Client -
Confidential & Proprietary Google Cloud Platform 32 App B App
D App D App D App C App B App B App B App A App A App A App B App C App D -
Confidential & Proprietary Google Cloud Platform 36 New Features 1.
UX Improvements 2. Stateful Application Support 3. Cluster Federation 4. Security -
Confidential & Proprietary Google Cloud Platform 37 Cluster Creation UX
1. kubeadm 2. API audit logs -
Confidential & Proprietary Google Cloud Platform 39 Federation 1. ReplicaSets
2. Secrets 3. Namespaces 4. Events