PCF (Pivotal Cloud Foundry) is a Platform as a Service (PaaS) that enables developers to deploy, run, and manage applications without worrying about infrastructure.
cf push.
| Component | Purpose |
|---|---|
| Cloud Controller | Manages application lifecycle (push, start, stop) |
| Diego | Schedules and runs application instances |
| Router (Gorouter) | Routes HTTP/HTTPS requests to applications |
| UAA | Authentication and Authorization |
| BOSH | Deploys and manages PCF infrastructure |
| Loggregator | Centralized logging and metrics collection |
Buildpacks are scripts used during application staging. They automatically detect application language/framework and prepare the runtime environment.
Examples:
cf push my-app
During deployment PCF:
cf push command deploys an application to PCF by staging and creating a droplet.
A Droplet is the executable artifact generated after application staging.
cf scale my-app -m 1G
Increases application memory.
cf scale my-app -i 3
Increases number of application instances.
Services are external dependencies consumed by applications.
| Feature | PCF | Kubernetes |
|---|---|---|
| Type | PaaS | Container Orchestration |
| Target Users | Developers | DevOps / Platform Teams |
| Deployment | cf push | kubectl apply |
| Infrastructure Management | Hidden | User Managed |
| Buildpacks | Built-in | Not Native |
| Learning Curve | Easy | Moderate to High |
cf bind-service my-app my-db-service cf restage my-app
Service credentials become available through:
VCAP_SERVICES
cf logs my-app --recent cf logs my-app
Logs include:
cf set-env my-app SPRING_PROFILES_ACTIVE prod cf restart my-app
| Component | Description |
|---|---|
| Org | Top-level business unit or project container |
| Space | Environment within an Org (dev, test, prod) |
Example:
Organization: Banking +-- Dev Space +-- QA Space +-- Prod Space
cf login cf target cf apps cf push my-app cf start my-app cf stop my-app cf restart my-app cf scale my-app -i 3 cf scale my-app -m 1G cf logs my-app cf env my-app cf services cf marketplace cf bind-service my-app my-db cf delete my-app
PCF (Pivotal Cloud Foundry) is a Platform as a Service (PaaS) that allows developers to deploy applications quickly using cf push. Key components include Cloud Controller, Diego, Router, UAA, and BOSH. Buildpacks automatically prepare applications, droplets are the deployable artifacts, and services are bound through Service Brokers using VCAP_SERVICES. PCF abstracts infrastructure and focuses on developer productivity, while Kubernetes focuses on container orchestration and infrastructure management.