Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction to Cloud Foundry

Introduction to Cloud Foundry

Introduction to Cloud Foundry

Avatar for Rajesh Jain

Rajesh Jain

April 25, 2016

Other Decks in Technology

Transcript

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

    the Silicon Valley state of mind with Pivotal Transforming how the world builds software
  2. 2 © 2016 Pivotal Software, Inc. All rights reserved. Agenda

    Cloud Native Transformation Introduction to Pivotal Cloud Foundry Infrastructure Requirements for PCF Next Steps: Candidate Apps, POC Planning
  3. 3 © 2016 Pivotal Software, Inc. All rights reserved. Our

    mission is to transform how the world builds software
  4. 4 © 2016 Pivotal Software, Inc. All rights reserved. Silicon

    Valley is not a place. It’s a state of mind.
  5. 5 © 2016 Pivotal Software, Inc. All rights reserved. New

    Global Silicon Valley This state of mind is portable and Pivotal can help bring that to new cities and organizations Palo Alto Berlin Boston Boulder Chicago Denver Dublin London Los Angeles New York San Francisco Seattle Sydney Tokyo Toronto Washington D.C.
  6. 6 © 2016 Pivotal Software, Inc. All rights reserved. The

    drivers of transformation are fear and hope Fear of disruption Hope of transformation
  7. 7 © 2016 Pivotal Software, Inc. All rights reserved. Source:

    JPMorgan Chase Annual Shareholder Letter (2015) “Silicon Valley is coming…and they all want to eat our lunch.” Jamie Dimon CEO, JPMorgan Chase
  8. 8 © 2016 Pivotal Software, Inc. All rights reserved. Software

    is changing INDUSTRIES 8 $ 313.9BN Retail $ 26BN Hotel $ 50BN Transportation $ 53BN Entertainment $ 34BN Automotive $ 3.2BN Industrial Products
  9. 9 © 2016 Pivotal Software, Inc. All rights reserved. They

    are building their own cloud platforms
  10. 10 © 2016 Pivotal Software, Inc. All rights reserved. They

    are building cloud native software 10 Spring Boot Continuous Delivery
  11. 11 © 2016 Pivotal Software, Inc. All rights reserved. Sources:

    “Electric Cloud LinkedIn Survey to software developers” Administrative tasks Design and Coding Brainstorming Waiting for Test/Build Managing Environments Average Hours/Week Software developers spend too much time NOT writing software 11
  12. 12 © 2016 Pivotal Software, Inc. All rights reserved. 12

    Cloud Native DevOps Continuous Delivery Containers Micro services
  13. 14 © 2016 Pivotal Software, Inc. All rights reserved. Continuous

    Integration & Delivery Deliver High Quality Software, Faster and Continuously From Idea to Production Distributed revision control and source code management. Collaborative software development Build and test software projects continuously and incrementally. Hundreds of compatible plugins Share binaries and manage distributions. Manage artifact lifecycle. Avoid license violations Develop, test, QA and production on the same platform. Simple, developer friendly commands and APIs. Operational benefits for every app. Built-in ecosystem services. Deploy, operate and scale on any IAAS AUTOMATION. Integrate tools and automate processes from testing to builds and deployment SPEED. Release more frequently with smaller bits will reduce complexity and improve time-to-market QUALITY. Reduce feedback loop using test- driven development to surface problems sooner and be responsive AGILITY. Push updates on regular basis with no downtime to improve customer experience and time to market Commit Code Change Automate Build & Test (Unit Test, Static Code Analysis) Store Binaries & Build Artifacts Automated Integration Testing Acceptance, Performance & Load Zero Downtime Upgrade to Production Build Pipeline Operations Tool Chain GitlLab Jenkins Development Test + UAT + Staging Production
  14. 16 © 2016 Pivotal Software, Inc. All rights reserved. Relational

    Database Data Access Service HTML JavaScript MVC Service Monolithic Application Browser monolith
  15. 17 © 2016 Pivotal Software, Inc. All rights reserved. Microservice

    Architecture … HTTP HTTP HTTP HTTP HTTP HTTP AMQP AMQP Relational DB Key/Value Store Graph DB
  16. 18 © 2016 Pivotal Software, Inc. All rights reserved. Transforming

    the Way Developers Deploy Software and Consume Services Introduction to Pivotal Cloud Foundry
  17. 20 © 2016 Pivotal Software, Inc. All rights reserved. networking

    storage physical hardware virtualization platform operating system middleware runtime data applications Platforms: Platform manages a lot. You only handle applications. you platform
  18. 21 © 2016 Pivotal Software, Inc. All rights reserved. Pivotal

    Cloud Foundry Contract: BOSH Release Contract: Cloud Provider Interface Roles Dev Dev IT Ops Cloud Foundry BOSH Runtime Platform Operations (Infrastructure Automation) IT Ops IT Ops Services Applications & Frameworks Contract: 12 Factor App more… Infrastructure Tools
  19. 22 © 2016 Pivotal Software, Inc. All rights reserved. here

    are my servers go make them a cloud foundry I do not care how {bosh deploy}
  20. 23 © 2016 Pivotal Software, Inc. All rights reserved. Infrastructure

    Automation Infrastructure BOSH manage services not servers zero downtime no maintenance windows infra as code multi cloud support IT Ops IT Ops embedded OS
  21. 24 © 2016 Pivotal Software, Inc. All rights reserved. 24

    Cloud Foundry Dev IT Ops Self healing Container management Integrated logging Auto scaling Application Performance Management Runtime Platform Self service
  22. 25 © 2016 Pivotal Software, Inc. All rights reserved. Container

    Scheduling Application Framework Services Platform Runtime (Elastic Runtime) Routing Database Configuration Service Discovery Big Data Object Storage Mobile Build CI User Provided Logging & Metrics Messaging Circuit Breakers 12 Factor Apps RESTful Services Microservices .NET Spring Boot Node.js Ruby on Rails Operations Zero Downtime Deployments Failover & Recovery Scaling Security Patching Platform Upgrades Pivotal Cloud Foundry Architecture
  23. 26 © 2016 Pivotal Software, Inc. All rights reserved. Components

    of Cloud Foundry Elastic Runtime Apps Microservice s GemFire Jenkins Service (CI) Microsoft Redis Cloud Foundry BOSH MySQL HA VMware EC2 Openstack Multi-Cloud Declarative Service Deployment, Operations Elastic managed runtime service integrated into leading data services; all scaled and managed by CF BOSH Rabbit MQ
  24. 27 © 2016 Pivotal Software, Inc. All rights reserved. BOSH

    “ BOSH is an open- source tool chain for release engineering, deployment and lifecycle management of large-scale distributed services ” www.bosh.io
  25. 28 © 2016 Pivotal Software, Inc. All rights reserved. Pivotal

    CF Elastic Runtime Dynamic Router OAuth 2.0 Server (UAA) CELL Garden Build Packs Login Server Cloud Controller Blob Store Brain / BBS Sys Log Service Brokers Collector App Log ROUTING AUTHENTICATION APP LIFECYCLE APP STORAGE & EXECUTION MESSAGING METRICS & LOGGING Pivotal CF Ops Manager / BOSH etcd Auctioneer ELASTIC RUNTIME Turnkey, Fully automated Cloud Native Platform Scalable runtime environment, extensible to modern framework and languages Instant scalable with updates and upgrades with no downtime Deploy, scale and manage applications with services
  26. 29 © 2016 Pivotal Software, Inc. All rights reserved. Here

    is my source code, Run it in the Cloud for me, I do not care how {cf push}
  27. 31 © 2016 Pivotal Software, Inc. All rights reserved. Platform

    Runtime – Application Frameworks * Devs may bring a custom runtime layer* OS image application layer linux host & kernel App container PCF Supported Dev Supported Ops Supported PCF buildpacks provide full support and maintenance for 3 of the 4 layers of the container stack Devs can focus on just the app code PCF creates the container image for you Container image
  28. 32 © 2016 Pivotal Software, Inc. All rights reserved. Runtime

    Benefits With PCF 6 Language Runtimes Maintained with Buildpacks • Java, Node, Python, PHP, Ruby, Go Enterprise Support with Buildpacks or Docker Images Enterprise Middleware Support • Apache Tomcat Support from #1 Committer Enterprise Framework Support • Spring is the #1 Enterprise Java Framework runtime layer
  29. 33 © 2016 Pivotal Software, Inc. All rights reserved. Custom

    Buildpacks Cloud Foundry Community provides buildpacks for other languages Or write your own Usually by forking / adapting an existing buildpack For list of CF Community Buildpacks https://github.com/cloudfoundry- community/cf-docs- contrib/wiki/Buildpacks
  30. 35 © 2016 Pivotal Software, Inc. All rights reserved. Step

    1: Choose the IAAS vSphere AWS OpenStack Azure http://docs.pivotal.io/pivotalcf/customizing/requirements.html
  31. 36 © 2016 Pivotal Software, Inc. All rights reserved. Step

    2: Choose the Services https://network.pivotal.io/
  32. 37 © 2016 Pivotal Software, Inc. All rights reserved. Step

    3: Choose the Candidate Apps Java .Net Ruby Go … and More
  33. 38 © 2016 Pivotal Software, Inc. All rights reserved. Step

    4: Choose the HA Requirements Runtime HA Service HA Availability Zones Datacenters
  34. 39 © 2016 Pivotal Software, Inc. All rights reserved. Step

    5: POC Scoping and Success Criteria Use Cases Success Criteria Stakeholders Developers and Operators Involvement
  35. 43 © 2016 Pivotal Software, Inc. All rights reserved. Deploying

    an Application 1. Upload app bits and metadata push app Router 2. Create and bind services 3. Stage application 4. Deploy application 5. Manage application health Blobstore DB Cloud Controller Service Broker Node(s) DEA DEA DEA Cell + app MD + = Service credentials Container Management - DIEGO Brain
  36. 44 © 2016 Pivotal Software, Inc. All rights reserved. Creating

    and binding services Router Platform Runtime DB Service credentials reserve resources create service (HTTP) create service (HTTP) bind service (HTTP) bind service (HTTP) obtain connection data CLI Cloud Controller Service Broker Data Service
  37. 45 © 2016 Pivotal Software, Inc. All rights reserved. Staging

    an Application Router Platform Runtime Blobstore DB Cell Detect Compile Upload No Yes System Buildpacks + = Cloud Controller