cloud foundry vs docker vs kubernetes
TRANSCRIPT
1 © 2016 Pivotal Software, Inc. All rights reserved.
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
3 © 2016 Pivotal Software, Inc. All rights reserved.
Who are Pivotal? http://bit.ly/2cmRm9m
4 © 2016 Pivotal Software, Inc. All rights reserved.
Who are Pivotal? http://bit.ly/2cmS86h
5 © 2016 Pivotal Software, Inc. All rights reserved.
Sufyaan Kazi [email protected] @sufyaan_kazi
6 © 2016 Pivotal Software, Inc. All rights reserved.
Let’s get into this ...
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
8 © 2016 Pivotal Software, Inc. All rights reserved.
“I have an absolutely brilliant idea ……” Now let’s build it!
9 © 2016 Pivotal Software, Inc. All rights reserved.
“I have an absolutely brilliant idea ……” Now let’s build it!
10 © 2016 Pivotal Software, Inc. All rights reserved.
“The competition have released my idea already *#¡!” What’s taking so long !!
NOT
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?
12 © 2016 Pivotal Software, Inc. All rights reserved.
“I have an absolutely brilliant idea ……” Now let’s build it!
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 ………..
14 © 2016 Pivotal Software, Inc. All rights reserved.
“I have an absolutely brilliant idea ……” Now let’s build it!
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
16 © 2016 Pivotal Software, Inc. All rights reserved.
What happens after deployment ...
17 © 2016 Pivotal Software, Inc. All rights reserved.
“I have an absolutely brilliant idea ……” Now let’s build it!
18 © 2016 Pivotal Software, Inc. All rights reserved.
“I have another absolutely brilliant idea ……” Now let’s build it!
19 © 2016 Pivotal Software, Inc. All rights reserved.
“I have another absolutely brilliant idea ……” Now let’s upgrade it!
20 © 2016 Pivotal Software, Inc. All rights reserved.
Cloud Foundry Docker Kubernetes
DEMO
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
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
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.
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
+ =
25 © 2016 Pivotal Software, Inc. All rights reserved.
BUILD PACKS
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
Rou
ter
Cloud Controller Cloud Controller Bridge
Auctioneer BBS
CELL Rep
Executor
CELL Rep
Executor
CELL Rep
Executor
ACCESS APP
Deploying an Application
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
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
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
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
CLOUD FOUNDRY FOUNDATION AN OPEN INDUSTRY STANDARD
PLA
TIN
UM
SI
LVER
G
OLD
32
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
https://www.meetup.com/London-Pivotal-Cloud-Native-Apps-Meetup/
35 © 2016 Pivotal Software, Inc. All rights reserved.
“I have an absolutely brilliant idea ……” Now let’s build it!
36 © 2016 Pivotal Software, Inc. All rights reserved.
CI/CD with Concourse (http://concourse.ci/)
37 © 2016 Pivotal Software, Inc. All rights reserved.
Cloud Foundry Docker
PAAS vs IaaS vs IaaS++
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
39 © 2016 Pivotal Software, Inc. All rights reserved.
WE ARE HIRING!! - http://pivotal.io/careers
40 © 2016 Pivotal Software, Inc. All rights reserved.
Q&A
41 © 2016 Pivotal Software, Inc. All rights reserved.
Sufyaan Kazi [email protected] @sufyaan_kazi
42 © 2016 Pivotal Software, Inc. All rights reserved.