Eseguire Applicazioni Cloud-Native con Pivotal Cloud Foundry su Google Cloud Platform (Pivotal Cloud-Native Workshop: Milan)
Fabio Marinelli
7 February 2018
2. vSphere Openstack AWS
Google
Cloud
Azure &
Azure Stack
Shared Services
Shared Security
Shared Networking
Logging & Metrics / Services Brokers / API Management
Credhub / UAA / Single Sign On
VMWare NSX
Embedded Operating System (Windows / Linux)
Application Code & Frameworks
Buildpacks / Spring Boot / Spring Cloud / Steeltoe
PAS
Pivotal Application
Service
PKS
Pivotal Container
Service
PFS
Pivotal Function
Service
Pivotal Services
Marketplace
Pivotal and
Partner Products
Any App
Every Cloud
One Platform
Concourse
PCF 2.0 — for everything
that matters
3. Increase speed and deploy code to
production thousands of times per
month. Use PAS to run Java, .NET,
and Node apps.
Pivotal Application Service (PAS): A Runtime for Apps
Best runtime for Spring and Spring Boot — Spring’s
microservice patterns—and Spring Boot’s executable jars—are
ready-made for PAS.
Turnkey microservices operations and security — Spring Cloud
Services brings microservices best practices to PAS. It includes
Config Server, Service Registry, and Circuit Breaker Dashboard.
A native Windows and .NET experience — Use PAS to run new
apps built with .NET Core. Run your legacy .NET Framework
apps on PAS too, using the .NET Hosted Web Core buildpack.
Push applications to containers running on Windows Server
2016.
Built for apps — PAS has everything to need to run apps.
Buildpacks manage runtime dependencies; metrics, logging,
and scaling are done for you. Multitenancy, and blue/green
deployment patterns are built-in. Extend apps with a rich service
catalog.
Container-ready — PAS supports the OCI format for Docker
images. Run platform-built and developer-built containers.
5. Spring Boot
Build Anything
Spring Cloud
Coordinate Anything
Spring Cloud Data Flow
Connect Anything
Spring by Pivotal: The Standard for Cloud Native Java
Code Clarity | Lower Complexity | Less Tech Debt | Focus on Business Logic | Better Test Coverage | Faster Code Completion
6. Spring Tools Accelerate Your Software Development
Spring Initializr (start.spring.io) to bootstrap projects
Integrated tools for Eclipse, Visual Studio Code, or
Atom offer:
● Easy code navigation
● Code completion for Spring elements
● Code completion for Java property files
● Runtime information applied to source code
7. Spring Boot +
App Runtime
The combination proven to boost
velocity with enterprise
development teams.
Spring Boot
Effortless dependency management
Embedded App Server
Creates self-contained apps
that “just run”
Pivotal Application Service
Generates a container from a jar
Instantly starts the app in a container
upon cf push
Adds environment properties
Microservices Ready | NetflixOSS | Actuator Integration | Metrics & Logging
8. Circuit Breaker
Dashboard for PCF
Visualizes a stream of Turbine health
and metric data from the circuit
breakers inside your microservices or
applications.
Service Registry for PCF
Provides an implementation of the
NetflixOSS Eureka Service Discovery
pattern, as a service.
Config Server for PCF
Delivers a dynamic, central
configuration service to manage an
application’s external properties
across all environments.
Build & Operate Microservices with Spring Cloud Services
9. Steeltoe: Cloud Native .NET Microservices
An open source project that enables
.NET developers to implement best
practices for resilient microservices
in the cloud.
● Client libraries for .NET and .NET Core
framework apps
● Service Discovery, via Eureka
● Config Server, via Spring Cloud Config
Server
● Circuit Breaker, via Hystrix
● Cloud Connectors to common CF
services
10. After you cf push, PAS:
Uploads your code
Detects and installs required runtime &
middleware (“Buildpacks”)
Sets up a route (or URL)
Creates a load balancing entry
Creates SSL termination
Creates health monitoring & logging
subsystems
Starts your app in a healthy state, with
the desired number of instances
Binds specified backing services
cf push Automates Developer + Operator workflows
12. Pivotal Cloud Cache
● High performance,
in-memory, data at scale
for microservices
Look-aside caches &
HTTP session state
caching
● NEW: WAN replication
MySQL for PCF RabbitMQ for PCF
● Enterprise-ready MySQL
for your developers
● Automate database
operations in developer
workflows
● NEW: Leader-follower
for multi-site HA
● Easily connect
distributed applications
with the most widely
deployed open source
message broker
● Enable connected
scalable, distributed
applications
● NEW: On-demand
clusters
● In-Memory cache and
datastore, configured for
the enterprise
● Efficient provisioning
matched to use cases
Redis for PCF
Extend Apps with Brokered Services from Pivotal
BOSH Managed | On-Demand Provisioning | Dedicated Instances | Custom Service Plans
13. First look at the platform
Pivotal Application Service
15. Operation Manager
Tiles make it easy for cloud operators to offer
new and upgraded software services to
developers in a Pivotal Cloud Foundry (PCF)
deployment.
Each tile bears an identifying description, a logo
and a version.
Tiles enable one-click installation and upgrading
from previous versions
16. Operation Manager
Tiles present a form-based interface that cloud
operators use to configure the service.
A left-side menu lists all configuration panes and
indicates with check marks which ones have
been configured. The menu lists service-specific
panes, defined by the tile developer, between
system-level panes like Assign AZs and
Networks and Resource Config that all PCF
products and services use.
19. Apps Manager
PCF uses a role-based access control (RBAC) system to grant Pivotal
Application Service users permissions appropriate to their role within an org or
a space.
Organization
Spaces
20. Apps Manager
Quota plans are named sets of memory, service, and instance usage quotas,
everyone in the org shares the quotas described by the plan.
21. Apps Manager
Each space reports the number of application running and services defined.
Usage of Org quota
22. Apps Manager
View of services list that the application sentiment-ui use to fulfill its tasks.