cloud foundry vs docker vs kubernetes

42

Upload: sufyaan-kazi

Post on 15-Apr-2017

2.066 views

Category:

Technology


4 download

TRANSCRIPT

Page 1: Cloud Foundry vs Docker vs Kubernetes

1 © 2016 Pivotal Software, Inc. All rights reserved.

Page 2: Cloud Foundry vs Docker vs Kubernetes

2 © 2016 Pivotal Software, Inc. All rights reserved.

Cloud Foundry vs Docker vs Kubernetes

Sufyaan Kazi

Trusted partner for IT innovation and digital transformation New mode for cloud-computing – open and enterprise ready Gold standard for modern software development

Page 3: Cloud Foundry vs Docker vs Kubernetes

3 © 2016 Pivotal Software, Inc. All rights reserved.

Who are Pivotal? http://bit.ly/2cmRm9m

Page 4: Cloud Foundry vs Docker vs Kubernetes

4 © 2016 Pivotal Software, Inc. All rights reserved.

Who are Pivotal? http://bit.ly/2cmS86h

Page 5: Cloud Foundry vs Docker vs Kubernetes

5 © 2016 Pivotal Software, Inc. All rights reserved.

Sufyaan Kazi [email protected] @sufyaan_kazi

Page 6: Cloud Foundry vs Docker vs Kubernetes

6 © 2016 Pivotal Software, Inc. All rights reserved.

Let’s get into this ...

Page 7: Cloud Foundry vs Docker vs Kubernetes

7 © 2016 Pivotal Software, Inc. All rights reserved.

Cloud Foundry vs Docker vs Kubernetes Cloud Foundry Docker Kubernetes

Cloud Foundry vs Docker vs Kubernetes

Sufyaan Kazi

Page 8: Cloud Foundry vs Docker vs Kubernetes

8 © 2016 Pivotal Software, Inc. All rights reserved.

“I have an absolutely brilliant idea ……” Now let’s build it!

Page 9: Cloud Foundry vs Docker vs Kubernetes

9 © 2016 Pivotal Software, Inc. All rights reserved.

“I have an absolutely brilliant idea ……” Now let’s build it!

Page 10: Cloud Foundry vs Docker vs Kubernetes

10 © 2016 Pivotal Software, Inc. All rights reserved.

“The competition have released my idea already *#¡!” What’s taking so long !!

NOT

Page 11: Cloud Foundry vs Docker vs Kubernetes

11 © 2016 Pivotal Software, Inc. All rights reserved.

“I have an absolutely brilliant idea ……” Now let’s build it! “I have an absolutely brilliant idea ……” Now let’s build “container-ise” it!

●  Who builds the container? ●  Where is its definition versioned? ●  Who schedules the workload? ●  What exactly is in this container?

●  How do we connect containers together?

●  Where do we make a note of ip addresses and configure network routes?

●  How does this container talk to other “things”?

●  What other “things” are needed?

Page 12: Cloud Foundry vs Docker vs Kubernetes

12 © 2016 Pivotal Software, Inc. All rights reserved.

“I have an absolutely brilliant idea ……” Now let’s build it!

Page 13: Cloud Foundry vs Docker vs Kubernetes

13 © 2016 Pivotal Software, Inc. All rights reserved.

“I have an absolutely brilliant idea ……” Here’s our DEVOPS recipe ...

-  First, add a pinch of containers and let it simmer -  Now, add some Puppet, Chef or Ansible to your liking -  If cooking for a big group of people, consider using a bigger pot or investing in some Kubernetes or maybe

Mesos -  Now add some Networking Operations and REALLY bring to the boil -  Cover with a lid while IT Security assesses what you’ve done. In fact put the whole pot inside another pot and

cover that second pot with a lid too. Then, just for good measure, take the pot stack and finish cooking on your neighbours hob instead of yours and leave a “dummy” pot on your stove to trick anyone trying to steal your credit card data.

-  Gently stir until cracks in the architecture appear and then remove from heat and serve -  All leftovers can be frozen and re-heated for upto 90 days. At that point, your OS and libraries will most likely

need patching anyway, so please dispose of the dish responsibly and START ALL OVER AGAIN ………..

Page 14: Cloud Foundry vs Docker vs Kubernetes

14 © 2016 Pivotal Software, Inc. All rights reserved.

“I have an absolutely brilliant idea ……” Now let’s build it!

Page 15: Cloud Foundry vs Docker vs Kubernetes

15 © 2016 Pivotal Software, Inc. All rights reserved.

What happens to software over times?

“In a connected system, elements are highly available to each other (via global state, for example). A modular design has connections deliberately kept to a minimum. …. During the takeoff phase, the team is constantly trying to add value by increasing the chance of survival. During the cruise phase, reducing costs adds the most value. A different mix of activities goes into achieving these different goals.”

Kent Beck August 12th, 2009 in Responsible Development, Startups

Page 16: Cloud Foundry vs Docker vs Kubernetes

16 © 2016 Pivotal Software, Inc. All rights reserved.

What happens after deployment ...

Page 17: Cloud Foundry vs Docker vs Kubernetes

17 © 2016 Pivotal Software, Inc. All rights reserved.

“I have an absolutely brilliant idea ……” Now let’s build it!

Page 18: Cloud Foundry vs Docker vs Kubernetes

18 © 2016 Pivotal Software, Inc. All rights reserved.

“I have another absolutely brilliant idea ……” Now let’s build it!

Page 19: Cloud Foundry vs Docker vs Kubernetes

19 © 2016 Pivotal Software, Inc. All rights reserved.

“I have another absolutely brilliant idea ……” Now let’s upgrade it!

Page 20: Cloud Foundry vs Docker vs Kubernetes

20 © 2016 Pivotal Software, Inc. All rights reserved.

Cloud Foundry Docker Kubernetes

DEMO

Page 21: Cloud Foundry vs Docker vs Kubernetes

Ci#es-Service{ "_embedded" : { "cities" : [ { "name" : "Aaron's Hill", "county" : "Surrey", "stateCode" : "SU9543", "postalCode" : "GU7 2", "latitude" : "51.18277", "longitude" : "-0.63502", "_links" : { "self" : { "href" : "http://cities-service-recognisable-wrongheadedness.cfapps.io/cities/2" }, "city" : { "href" : "http://cities-service-recognisable-wrongheadedness.cfapps.io/cities/2" } } }, { "name" : "Abbey Mead", ……………………….

/cities

Page 22: Cloud Foundry vs Docker vs Kubernetes

22 © 2016 Pivotal Software, Inc. All rights reserved.

Containers Pre-date the Docker Hype

Google started Linux container effort “Control

Groups”

Added to the Linux Kernel in

2007

Cloud Foundry uses Linux container

technology - “Warden

containers” early 2012

Docker is like github for container images

Docker joins Cloud Foundry

Foundation

Google, MSFT, IBM working on orchestration of multiple Docker

containers

2006 2014

Cloud Foundry has been using container technology pre-Docker

2012

Page 23: Cloud Foundry vs Docker vs Kubernetes

23 © 2016 Pivotal Software, Inc. All rights reserved.

MODERN CLOUD NATIVE PLATFORM

Pivotal Cloud Foundry empowers companies with a cloud platform engineered for start-up speed—designed for continuous innovation, across multiple clouds, at scale.

Page 24: Cloud Foundry vs Docker vs Kubernetes

Stage an Application Ro

uter

CloudFoundryElas#cRun#me

Blobstore DB

CELL Detect Compile Upload No Yes

System Buildpacks

Cloud Controller

Service credentials creds

Cloud Controller Bridge

Task

+ =

Page 25: Cloud Foundry vs Docker vs Kubernetes

25 © 2016 Pivotal Software, Inc. All rights reserved.

BUILD PACKS

Page 26: Cloud Foundry vs Docker vs Kubernetes

26 © 2016 Pivotal Software, Inc. All rights reserved.

Platform provides standard Buildpack for runtime*

Platform provides fixed OS container image

Developer brings app

Developer brings runtime Docker image

Developer brings Docker OS image

Developer brings app

Buildpacks Docker

* Devs may also provide their own buildpacks

Platform provides fixed host OS Kernel

Platform provides fixed host OS Kernel

Application Container

Standardization or Customization is Your Choice

AND

Page 27: Cloud Foundry vs Docker vs Kubernetes

Rou

ter

Cloud Controller Cloud Controller Bridge

Auctioneer BBS

CELL Rep

Executor

CELL Rep

Executor

CELL Rep

Executor

ACCESS APP

Deploying an Application

Page 28: Cloud Foundry vs Docker vs Kubernetes

28 © Copyright 2013 Pivotal. All rights reserved.

Failed Application Instances Replaced

Router

Blobstore Cloud Controller

BBS

Cell Cell Cell

PivotalCloudFoundryElas#cRun#me

Access App

DB Service credentials creds

Converger & Auctioneer

Desired State

creds creds

Actual State

App Ops

Cloud Controller Bridge

Page 29: Cloud Foundry vs Docker vs Kubernetes

29 © 2016 Pivotal Software, Inc. All rights reserved.

Everything to deploy and manage the app

APPLICATION Health management

APM

Log aggregation

Roles and Policy Security and

Isolation

Scaling

Blue green deployment

Page 30: Cloud Foundry vs Docker vs Kubernetes

PRIVATE CLOUD

PUBLIC CLOUD

Cloud Native Reference Architecture (PCF)

CLOUD ORCHESTRATION & AUTOMATION

LANGUAGES Java .NET Python

CONTAINER ORCHESTRATION

CONTAINERS

MESSAGING

DATA MICROSERVICES CIRCUIT BREAKERS

Hystrix DIY

LOAD BALANCING Ribbon Zuul

DATABASES AND DATA MANAGEMENT

DISCOVERY & REGISTRATION

Consul Eureka etcd

VERSION CONTROL

DEV FRAMEWORKS Buildpacks

API MANAGEMENT

SECURITY & COMPLIANCE

SSO IPSEC

METRICS & DASHBOARDS

PCF Metrics

BOSH / Cloud Foundry

Docker RunC

Ruby Go *.JS

CI / CD

NETWORKING

MONITORING / LOGGING

Azure

MySQL Gemfire

Redis Pivotal HD

Gitlab Jenkins Artifactory

Spring Cloud Dataflow

RabbitMQ

PCF Elastic Runtime

HA Proxy Router

ServiceBroker

ServiceNodes

Service

ServiceBroker

ServiceNodes

Service

OpsManagerUI

OpsManagerDirector

Operations Manager

Page 31: Cloud Foundry vs Docker vs Kubernetes

ORIGINS

2013

Transferred to Pivotal from Vmware ●  Open Source ●  Cloud Native Architecture

2014

First commercialized by Pivotal ●  Pivotal Cloud Foundry (PCF) ●  Pivotal Web Services (PWS) ●  1 trillion dollars in market cap

supporting the project ●  Top talent recruited from Puppet,

AWS, Google, etc

2015

Governance passed to Cloud Foundry Foundation

2016

On 7th release of PCF

31

Page 32: Cloud Foundry vs Docker vs Kubernetes

CLOUD FOUNDRY FOUNDATION AN OPEN INDUSTRY STANDARD

PLA

TIN

UM

SI

LVER

G

OLD

32

Page 33: Cloud Foundry vs Docker vs Kubernetes

CF OPEN SOURCE MOMENTUM

Source: http://cloud-foundry.meetup.com/ on Jun 12 2015

53 CORPORATIONS

158 MEETUPS 49 COUNTRIES

21K MEMBERS

2200 DEVELOPERS

65K COMMITS

650 CODE SUBMITTERS

SUBMITTERS

COMMITS

in

from

33

Page 34: Cloud Foundry vs Docker vs Kubernetes

https://www.meetup.com/London-Pivotal-Cloud-Native-Apps-Meetup/

Page 35: Cloud Foundry vs Docker vs Kubernetes

35 © 2016 Pivotal Software, Inc. All rights reserved.

“I have an absolutely brilliant idea ……” Now let’s build it!

Page 36: Cloud Foundry vs Docker vs Kubernetes

36 © 2016 Pivotal Software, Inc. All rights reserved.

CI/CD with Concourse (http://concourse.ci/)

Page 37: Cloud Foundry vs Docker vs Kubernetes

37 © 2016 Pivotal Software, Inc. All rights reserved.

Cloud Foundry Docker

PAAS vs IaaS vs IaaS++

Kubernetes

Page 38: Cloud Foundry vs Docker vs Kubernetes

38 © 2016 Pivotal Software, Inc. All rights reserved.

Useful links:

●  https://blog.pivotal.io/pivotal-cloud-foundry/products/how-cloud-foundry-gives-developers-a-reliable-container-runtime

●  PCF Overview: http://docs.pivotal.io/pivotalcf/1-7/concepts/overview.html ●  Docs - http://docs.pivotal.io/pivotalcf/1-7/installing/pcf-docs.html ●  Single VM Version of PCF: https://network.pivotal.io/products/pcfdev ●  Spring Boot: https://spring.io/guides ●  Spring Boot, Microservices and PCF:

https://github.com/skazi-pivotal/spring-boot-cities-service ●  https://github.com/skazi-pivotal/spring-boot-cities-ui ●  https://github.com/pivotal-bank/cf-SpringBootTrader

Page 39: Cloud Foundry vs Docker vs Kubernetes

39 © 2016 Pivotal Software, Inc. All rights reserved.

WE ARE HIRING!! - http://pivotal.io/careers

Page 40: Cloud Foundry vs Docker vs Kubernetes

40 © 2016 Pivotal Software, Inc. All rights reserved.

Q&A

Page 41: Cloud Foundry vs Docker vs Kubernetes

41 © 2016 Pivotal Software, Inc. All rights reserved.

Sufyaan Kazi [email protected] @sufyaan_kazi

Page 42: Cloud Foundry vs Docker vs Kubernetes

42 © 2016 Pivotal Software, Inc. All rights reserved.