SlideShare a Scribd company logo
1 of 15
PCF
Rajan Prasad Upadhyay
Rajan p Upadhyay 1
PCF Keywords
• Api endpoint
• Org, spaces
• Target
• Push
• logs
• Scale
• Service, cups service
• Binding/unbinding
• routes
Rajan p Upadhyay 2
Basic Commands
• Cf api
• Cf login
• Cf logout
• Cf target
Rajan p Upadhyay 3
Other commands
• Cf apps
• Cf app APP_NAME
• Cf push APP_NAME
• Cf push –f <manifest_file> -p<package_file>
• Cf scale APP_NAME
• Cf scale APP_name –i <instances_num> -k <disk_limit> -m<memory>
-f
• Cf delete APP_NAME -r
Rajan p Upadhyay 4
More commands
• Cf rename APP_NAME NEW_NAME
• Cf start APP_NAME
• Cf stop APP_NAME
• Cf restart APP_NAME
• Cf restage APP_NAME
• Cf events APP_NAME
• Cf restart-app-instance APP_NAME Index
• Cf logs APP_NAME
Rajan p Upadhyay 5
Even more commands
• Cf env App_Name
• Cf set-env APP_NAME <Key> <Value>
• Cf unset-env APP_NAME <Key>
Rajan p Upadhyay 6
Services command
• Cf marketplace
• Cf services
• Cf service SERVICE_INSTANCE
• Cf create-service SERVICE PLAN SERVICE_INSTANCE
• Cf delete-service SERVICE_INSTANCE
• Cf rename-service SERVICE_INSTANCE NEW_SERVICE_INSTANCE
• Cf bind-service APP_NAME SERVICE_INSTANCE
• Cf unbind-service APP_NAME SERVICE_INSTANCE
• Cf create-user-provided-service SERVICE_INSTANCE
• Cf update-user-provided-service SERVICE_INSTANCE
• Eg. Create database user provided service in interactive mode
cf cups SERVICE_NAME -p "url, username, password, encrypted"
Rajan p Upadhyay 7
Org commands
• Cf orgs
• Cf org ORG_NAME
• Cf create-org ORG_NAME
• Cf delete-org ORG_NAME
• Cf rename-org ORG_NAME NEW_ORG_NAME
Rajan p Upadhyay 8
Spaces
• Cf spaces
• Cf space SPACE_NAME
• Cf create-space SPACE
• Cf delete-space SPACE
• Cf rename-space SPACE NEW_SPACE
Rajan p Upadhyay 9
Domain commands
• Cf domains
• Cf create-domain ORG DOMAIN
• Cf delete-domain DOMAIN
• -- shared domain can only be created by admins
• Cf create-shared-domain DOMAIN
• Cf delete-shared-domain DOMAIN
Rajan p Upadhyay 10
Routes command
• Cf routes
• Cf create-route SPACE DOMAIN [-n HOST]
• Cf check-route HOST DOMAIN
• Cf map-route APP_NAME DOMAIN [-n HOST]
• Cf unmap-route APP_NAME DOMAIN
• Cf delete-orphaned-routes
• -- routing is very important
Rajan p Upadhyay 11
extra commands
• Cf buildpacks
• Cf feature-flags
Rajan p Upadhyay 12
Blue Green JVM
• For zero down-time in production
• Route = host + shared_domain
• We can have many routes point to same application
• Blue Gree JVM
• deploy application in PR with a non production route. One prefixed green
and one prefixed blue
• Create the production route manually: without mapping to any jvm
• Which ever instance is tested, point the PR_ROUTE to that jvm instance
Rajan p Upadhyay 13
Blue green jvm example
• Say in PR, an application ABC needs to be deployed with a route abc.
rajanu.com.np
Where shared-domain=rajanu.com.np and host=abc
• Deploy the application with a host green-abc and app-name green-abc
ie route = green-abc.rajanu.com.np
• Create the abc route manually
cf creae-route <SPACE> rajanu.com.np –n abc
• When testing is finished with the application and it ok, map the route
cf map-route ABC rajanu.com.np –n abc
• Now route abc. rajanu.com.np will also point to the application ABC in
addition to green-abc.rajanu.com.np
• you can unmap the green-abc route from the application
Rajan p Upadhyay 14
Blue green jvm example continued
• Next time you have some change in code and want to deploy in PR
• Deploy it with host blue-abc with a new applicationName blue-abc.
• So the new instance will have a mapped route of blue-abc.rajanu.com.np
• Lets say the testing is complete and you want to make this the production
version. You can map the abc route to blue-abc application.
Cf map-route blue-abc rajanu.com.np –n abc
• Now the route abc. rajanu.com.np will be pointing to both the instances green-
abc and blue-abc
• Now unmap the route from the green-abc instance so that it will only point to
blue-abc instance
• Cf unmap-route green-abc rajanu.com.np –n abc
• If some problem is discovered and you want to backout the changes, simply map
the route to green-abc and unmap it from blue-abc.
Rajan p Upadhyay 15

More Related Content

What's hot

IBM SpaceX Capstone Project
IBM SpaceX Capstone ProjectIBM SpaceX Capstone Project
IBM SpaceX Capstone ProjectYousefElbayomi
 
Why your Spark job is failing
Why your Spark job is failingWhy your Spark job is failing
Why your Spark job is failingSandy Ryza
 
Cobrix – a COBOL Data Source for Spark
Cobrix – a COBOL Data Source for SparkCobrix – a COBOL Data Source for Spark
Cobrix – a COBOL Data Source for SparkDataWorks Summit
 
SR-IOV, KVM and Intel X520 10Gbps cards on Debian/Stable
SR-IOV, KVM and Intel X520 10Gbps cards on Debian/StableSR-IOV, KVM and Intel X520 10Gbps cards on Debian/Stable
SR-IOV, KVM and Intel X520 10Gbps cards on Debian/Stablejuet-y
 
Why you should care about data layout in the file system with Cheng Lian and ...
Why you should care about data layout in the file system with Cheng Lian and ...Why you should care about data layout in the file system with Cheng Lian and ...
Why you should care about data layout in the file system with Cheng Lian and ...Databricks
 
Everyday I'm Shuffling - Tips for Writing Better Spark Programs, Strata San J...
Everyday I'm Shuffling - Tips for Writing Better Spark Programs, Strata San J...Everyday I'm Shuffling - Tips for Writing Better Spark Programs, Strata San J...
Everyday I'm Shuffling - Tips for Writing Better Spark Programs, Strata San J...Databricks
 
Building robust CDC pipeline with Apache Hudi and Debezium
Building robust CDC pipeline with Apache Hudi and DebeziumBuilding robust CDC pipeline with Apache Hudi and Debezium
Building robust CDC pipeline with Apache Hudi and DebeziumTathastu.ai
 
Oracle DB 19c: SQL Tuning Using SPM
Oracle DB 19c: SQL Tuning Using SPMOracle DB 19c: SQL Tuning Using SPM
Oracle DB 19c: SQL Tuning Using SPMArturo Aranda
 
[발표자료] 오픈소스 기반 고가용성 Pacemaker 소개 및 적용 사례_20230703_v1.1F.pptx
[발표자료] 오픈소스 기반 고가용성 Pacemaker 소개 및 적용 사례_20230703_v1.1F.pptx[발표자료] 오픈소스 기반 고가용성 Pacemaker 소개 및 적용 사례_20230703_v1.1F.pptx
[발표자료] 오픈소스 기반 고가용성 Pacemaker 소개 및 적용 사례_20230703_v1.1F.pptxssuserf8b8bd1
 
What we've learned from running a PostgreSQL managed service on Kubernetes
What we've learned from running a PostgreSQL managed service on KubernetesWhat we've learned from running a PostgreSQL managed service on Kubernetes
What we've learned from running a PostgreSQL managed service on KubernetesDoKC
 
Asynchronous Web Programming with HTML5 WebSockets and Java
Asynchronous Web Programming with HTML5 WebSockets and JavaAsynchronous Web Programming with HTML5 WebSockets and Java
Asynchronous Web Programming with HTML5 WebSockets and JavaJames Falkner
 
Scaling HDFS to Manage Billions of Files with Distributed Storage Schemes
Scaling HDFS to Manage Billions of Files with Distributed Storage SchemesScaling HDFS to Manage Billions of Files with Distributed Storage Schemes
Scaling HDFS to Manage Billions of Files with Distributed Storage SchemesDataWorks Summit/Hadoop Summit
 
Real-Time Market Data Analytics Using Kafka Streams
Real-Time Market Data Analytics Using Kafka StreamsReal-Time Market Data Analytics Using Kafka Streams
Real-Time Market Data Analytics Using Kafka Streamsconfluent
 
Debug Your Kubernetes Network
Debug Your Kubernetes NetworkDebug Your Kubernetes Network
Debug Your Kubernetes NetworkHungWei Chiu
 
Troubleshooting Tips and Tricks for Database 19c - EMEA Tour Oct 2019
Troubleshooting Tips and Tricks for Database 19c - EMEA Tour  Oct 2019Troubleshooting Tips and Tricks for Database 19c - EMEA Tour  Oct 2019
Troubleshooting Tips and Tricks for Database 19c - EMEA Tour Oct 2019Sandesh Rao
 
Godo Kaisha (GK Co.) Articles of Memorandum & Association
Godo Kaisha (GK Co.) Articles of Memorandum & AssociationGodo Kaisha (GK Co.) Articles of Memorandum & Association
Godo Kaisha (GK Co.) Articles of Memorandum & AssociationSarkar Office Japan KK
 
Dr. Elephant for Monitoring and Tuning Apache Spark Jobs on Hadoop with Carl ...
Dr. Elephant for Monitoring and Tuning Apache Spark Jobs on Hadoop with Carl ...Dr. Elephant for Monitoring and Tuning Apache Spark Jobs on Hadoop with Carl ...
Dr. Elephant for Monitoring and Tuning Apache Spark Jobs on Hadoop with Carl ...Databricks
 
[오픈소스컨설팅]오픈스택에 대하여
[오픈소스컨설팅]오픈스택에 대하여[오픈소스컨설팅]오픈스택에 대하여
[오픈소스컨설팅]오픈스택에 대하여Ji-Woong Choi
 

What's hot (20)

IBM SpaceX Capstone Project
IBM SpaceX Capstone ProjectIBM SpaceX Capstone Project
IBM SpaceX Capstone Project
 
Why your Spark job is failing
Why your Spark job is failingWhy your Spark job is failing
Why your Spark job is failing
 
Cobrix – a COBOL Data Source for Spark
Cobrix – a COBOL Data Source for SparkCobrix – a COBOL Data Source for Spark
Cobrix – a COBOL Data Source for Spark
 
SR-IOV, KVM and Intel X520 10Gbps cards on Debian/Stable
SR-IOV, KVM and Intel X520 10Gbps cards on Debian/StableSR-IOV, KVM and Intel X520 10Gbps cards on Debian/Stable
SR-IOV, KVM and Intel X520 10Gbps cards on Debian/Stable
 
4. stack
4. stack4. stack
4. stack
 
Why you should care about data layout in the file system with Cheng Lian and ...
Why you should care about data layout in the file system with Cheng Lian and ...Why you should care about data layout in the file system with Cheng Lian and ...
Why you should care about data layout in the file system with Cheng Lian and ...
 
Everyday I'm Shuffling - Tips for Writing Better Spark Programs, Strata San J...
Everyday I'm Shuffling - Tips for Writing Better Spark Programs, Strata San J...Everyday I'm Shuffling - Tips for Writing Better Spark Programs, Strata San J...
Everyday I'm Shuffling - Tips for Writing Better Spark Programs, Strata San J...
 
Building robust CDC pipeline with Apache Hudi and Debezium
Building robust CDC pipeline with Apache Hudi and DebeziumBuilding robust CDC pipeline with Apache Hudi and Debezium
Building robust CDC pipeline with Apache Hudi and Debezium
 
Oracle DB 19c: SQL Tuning Using SPM
Oracle DB 19c: SQL Tuning Using SPMOracle DB 19c: SQL Tuning Using SPM
Oracle DB 19c: SQL Tuning Using SPM
 
[발표자료] 오픈소스 기반 고가용성 Pacemaker 소개 및 적용 사례_20230703_v1.1F.pptx
[발표자료] 오픈소스 기반 고가용성 Pacemaker 소개 및 적용 사례_20230703_v1.1F.pptx[발표자료] 오픈소스 기반 고가용성 Pacemaker 소개 및 적용 사례_20230703_v1.1F.pptx
[발표자료] 오픈소스 기반 고가용성 Pacemaker 소개 및 적용 사례_20230703_v1.1F.pptx
 
What we've learned from running a PostgreSQL managed service on Kubernetes
What we've learned from running a PostgreSQL managed service on KubernetesWhat we've learned from running a PostgreSQL managed service on Kubernetes
What we've learned from running a PostgreSQL managed service on Kubernetes
 
Asynchronous Web Programming with HTML5 WebSockets and Java
Asynchronous Web Programming with HTML5 WebSockets and JavaAsynchronous Web Programming with HTML5 WebSockets and Java
Asynchronous Web Programming with HTML5 WebSockets and Java
 
Scaling HDFS to Manage Billions of Files with Distributed Storage Schemes
Scaling HDFS to Manage Billions of Files with Distributed Storage SchemesScaling HDFS to Manage Billions of Files with Distributed Storage Schemes
Scaling HDFS to Manage Billions of Files with Distributed Storage Schemes
 
Oracle 12c Launch Event 02 ADF 12c and Maven in Jdeveloper / By Aino Andriessen
Oracle 12c Launch Event 02 ADF 12c and Maven in Jdeveloper / By Aino Andriessen Oracle 12c Launch Event 02 ADF 12c and Maven in Jdeveloper / By Aino Andriessen
Oracle 12c Launch Event 02 ADF 12c and Maven in Jdeveloper / By Aino Andriessen
 
Real-Time Market Data Analytics Using Kafka Streams
Real-Time Market Data Analytics Using Kafka StreamsReal-Time Market Data Analytics Using Kafka Streams
Real-Time Market Data Analytics Using Kafka Streams
 
Debug Your Kubernetes Network
Debug Your Kubernetes NetworkDebug Your Kubernetes Network
Debug Your Kubernetes Network
 
Troubleshooting Tips and Tricks for Database 19c - EMEA Tour Oct 2019
Troubleshooting Tips and Tricks for Database 19c - EMEA Tour  Oct 2019Troubleshooting Tips and Tricks for Database 19c - EMEA Tour  Oct 2019
Troubleshooting Tips and Tricks for Database 19c - EMEA Tour Oct 2019
 
Godo Kaisha (GK Co.) Articles of Memorandum & Association
Godo Kaisha (GK Co.) Articles of Memorandum & AssociationGodo Kaisha (GK Co.) Articles of Memorandum & Association
Godo Kaisha (GK Co.) Articles of Memorandum & Association
 
Dr. Elephant for Monitoring and Tuning Apache Spark Jobs on Hadoop with Carl ...
Dr. Elephant for Monitoring and Tuning Apache Spark Jobs on Hadoop with Carl ...Dr. Elephant for Monitoring and Tuning Apache Spark Jobs on Hadoop with Carl ...
Dr. Elephant for Monitoring and Tuning Apache Spark Jobs on Hadoop with Carl ...
 
[오픈소스컨설팅]오픈스택에 대하여
[오픈소스컨설팅]오픈스택에 대하여[오픈소스컨설팅]오픈스택에 대하여
[오픈소스컨설팅]오픈스택에 대하여
 

Viewers also liked

Giao trinh unix
Giao trinh unixGiao trinh unix
Giao trinh unixtranbaanh
 
Fdi india ppt
Fdi india pptFdi india ppt
Fdi india pptRency Raj
 
Syllabus finanzas publicas
Syllabus finanzas publicasSyllabus finanzas publicas
Syllabus finanzas publicasPaola Casal
 
Contabilidad consolidacion de estados financieros (2)
Contabilidad consolidacion de estados financieros (2)Contabilidad consolidacion de estados financieros (2)
Contabilidad consolidacion de estados financieros (2)Paola Casal
 
Avaliação diagnóstica de matematica1
Avaliação diagnóstica de matematica1Avaliação diagnóstica de matematica1
Avaliação diagnóstica de matematica1Flavio Jose da Silva
 
Curso de teclado (COMPLETO) - Aprenda a Tocar Teclado
Curso de teclado (COMPLETO) - Aprenda a Tocar TecladoCurso de teclado (COMPLETO) - Aprenda a Tocar Teclado
Curso de teclado (COMPLETO) - Aprenda a Tocar TecladoCleber Lucas
 
GERENCIA Y ADMINISTRACION DE SALUD, SISTEMA DE SALUD DE LOS ESTADOS UNIDOS.
GERENCIA Y ADMINISTRACION DE SALUD, SISTEMA DE SALUD DE LOS ESTADOS UNIDOS.GERENCIA Y ADMINISTRACION DE SALUD, SISTEMA DE SALUD DE LOS ESTADOS UNIDOS.
GERENCIA Y ADMINISTRACION DE SALUD, SISTEMA DE SALUD DE LOS ESTADOS UNIDOS.Jorge Amarante
 

Viewers also liked (13)

Organizational Strengthening for VCPPG
Organizational Strengthening for VCPPGOrganizational Strengthening for VCPPG
Organizational Strengthening for VCPPG
 
TUGASAN 3
TUGASAN 3TUGASAN 3
TUGASAN 3
 
Psicoeducación 1 eva
Psicoeducación 1 evaPsicoeducación 1 eva
Psicoeducación 1 eva
 
Giao trinh unix
Giao trinh unixGiao trinh unix
Giao trinh unix
 
Fdi india ppt
Fdi india pptFdi india ppt
Fdi india ppt
 
Syllabus finanzas publicas
Syllabus finanzas publicasSyllabus finanzas publicas
Syllabus finanzas publicas
 
Contabilidad consolidacion de estados financieros (2)
Contabilidad consolidacion de estados financieros (2)Contabilidad consolidacion de estados financieros (2)
Contabilidad consolidacion de estados financieros (2)
 
Avaliação diagnóstica de matematica1
Avaliação diagnóstica de matematica1Avaliação diagnóstica de matematica1
Avaliação diagnóstica de matematica1
 
Arnaldo jimenez
Arnaldo jimenezArnaldo jimenez
Arnaldo jimenez
 
Anestésicos locales
Anestésicos localesAnestésicos locales
Anestésicos locales
 
Curso de teclado (COMPLETO) - Aprenda a Tocar Teclado
Curso de teclado (COMPLETO) - Aprenda a Tocar TecladoCurso de teclado (COMPLETO) - Aprenda a Tocar Teclado
Curso de teclado (COMPLETO) - Aprenda a Tocar Teclado
 
Role of customer executive in an it company
Role of customer executive in an it companyRole of customer executive in an it company
Role of customer executive in an it company
 
GERENCIA Y ADMINISTRACION DE SALUD, SISTEMA DE SALUD DE LOS ESTADOS UNIDOS.
GERENCIA Y ADMINISTRACION DE SALUD, SISTEMA DE SALUD DE LOS ESTADOS UNIDOS.GERENCIA Y ADMINISTRACION DE SALUD, SISTEMA DE SALUD DE LOS ESTADOS UNIDOS.
GERENCIA Y ADMINISTRACION DE SALUD, SISTEMA DE SALUD DE LOS ESTADOS UNIDOS.
 

Similar to Pcf commands

Route service-pcf-techmeetup
Route service-pcf-techmeetupRoute service-pcf-techmeetup
Route service-pcf-techmeetupGwenn Etourneau
 
Hadoop MapReduce Streaming and Pipes
Hadoop MapReduce  Streaming and PipesHadoop MapReduce  Streaming and Pipes
Hadoop MapReduce Streaming and PipesHanborq Inc.
 
Unpacking .NET Core | EastBanc Technologies
Unpacking .NET Core | EastBanc TechnologiesUnpacking .NET Core | EastBanc Technologies
Unpacking .NET Core | EastBanc TechnologiesEastBanc Tachnologies
 
History Of Redis Replication And Future Prospects: Zhao Zhao
History Of Redis Replication And Future Prospects: Zhao ZhaoHistory Of Redis Replication And Future Prospects: Zhao Zhao
History Of Redis Replication And Future Prospects: Zhao ZhaoRedis Labs
 
OpenPOWER Application Optimization
OpenPOWER Application Optimization OpenPOWER Application Optimization
OpenPOWER Application Optimization Ganesan Narayanasamy
 
Cisco Wireless LAN Controller Command Reference, Release 7.4.pdf
Cisco Wireless LAN Controller Command Reference, Release 7.4.pdfCisco Wireless LAN Controller Command Reference, Release 7.4.pdf
Cisco Wireless LAN Controller Command Reference, Release 7.4.pdfssusercbaa33
 
[k8s] Kubernetes terminology (1).pdf
[k8s] Kubernetes terminology (1).pdf[k8s] Kubernetes terminology (1).pdf
[k8s] Kubernetes terminology (1).pdfFrederik Wouters
 
Cloud Foundry 百日行 振り返り
Cloud Foundry 百日行 振り返りCloud Foundry 百日行 振り返り
Cloud Foundry 百日行 振り返りnota-ja
 
Bada familiar foundations
Bada  familiar foundationsBada  familiar foundations
Bada familiar foundationsjlansdell
 
Simplifying EBS 12.2 ADOP - Collaborate 2019
Simplifying EBS 12.2 ADOP - Collaborate 2019   Simplifying EBS 12.2 ADOP - Collaborate 2019
Simplifying EBS 12.2 ADOP - Collaborate 2019 Alfredo Krieg
 
Everything ruby
Everything rubyEverything ruby
Everything rubyajeygore
 
Laravel - Website Development in Php Framework.
Laravel - Website Development in Php Framework.Laravel - Website Development in Php Framework.
Laravel - Website Development in Php Framework.SWAAM Tech
 
Serverless Preview Environments @ Boston DevOps
Serverless Preview Environments @ Boston DevOpsServerless Preview Environments @ Boston DevOps
Serverless Preview Environments @ Boston DevOpsJoseph Lust
 

Similar to Pcf commands (20)

Route service-pcf-techmeetup
Route service-pcf-techmeetupRoute service-pcf-techmeetup
Route service-pcf-techmeetup
 
Hadoop MapReduce Streaming and Pipes
Hadoop MapReduce  Streaming and PipesHadoop MapReduce  Streaming and Pipes
Hadoop MapReduce Streaming and Pipes
 
CPAN Training
CPAN TrainingCPAN Training
CPAN Training
 
Introduction to SLURM
Introduction to SLURMIntroduction to SLURM
Introduction to SLURM
 
Introduction to Slurm
Introduction to SlurmIntroduction to Slurm
Introduction to Slurm
 
Unpacking .NET Core | EastBanc Technologies
Unpacking .NET Core | EastBanc TechnologiesUnpacking .NET Core | EastBanc Technologies
Unpacking .NET Core | EastBanc Technologies
 
Express JS
Express JSExpress JS
Express JS
 
Introduction to SLURM
 Introduction to SLURM Introduction to SLURM
Introduction to SLURM
 
History Of Redis Replication And Future Prospects: Zhao Zhao
History Of Redis Replication And Future Prospects: Zhao ZhaoHistory Of Redis Replication And Future Prospects: Zhao Zhao
History Of Redis Replication And Future Prospects: Zhao Zhao
 
OpenPOWER Application Optimization
OpenPOWER Application Optimization OpenPOWER Application Optimization
OpenPOWER Application Optimization
 
Cisco Wireless LAN Controller Command Reference, Release 7.4.pdf
Cisco Wireless LAN Controller Command Reference, Release 7.4.pdfCisco Wireless LAN Controller Command Reference, Release 7.4.pdf
Cisco Wireless LAN Controller Command Reference, Release 7.4.pdf
 
Chef training Day4
Chef training Day4Chef training Day4
Chef training Day4
 
[k8s] Kubernetes terminology (1).pdf
[k8s] Kubernetes terminology (1).pdf[k8s] Kubernetes terminology (1).pdf
[k8s] Kubernetes terminology (1).pdf
 
Cloud Foundry 百日行 振り返り
Cloud Foundry 百日行 振り返りCloud Foundry 百日行 振り返り
Cloud Foundry 百日行 振り返り
 
Bada familiar foundations
Bada  familiar foundationsBada  familiar foundations
Bada familiar foundations
 
Simplifying EBS 12.2 ADOP - Collaborate 2019
Simplifying EBS 12.2 ADOP - Collaborate 2019   Simplifying EBS 12.2 ADOP - Collaborate 2019
Simplifying EBS 12.2 ADOP - Collaborate 2019
 
Everything ruby
Everything rubyEverything ruby
Everything ruby
 
Laravel - Website Development in Php Framework.
Laravel - Website Development in Php Framework.Laravel - Website Development in Php Framework.
Laravel - Website Development in Php Framework.
 
Serverless Preview Environments @ Boston DevOps
Serverless Preview Environments @ Boston DevOpsServerless Preview Environments @ Boston DevOps
Serverless Preview Environments @ Boston DevOps
 
23003468463PPT.pptx
23003468463PPT.pptx23003468463PPT.pptx
23003468463PPT.pptx
 

Recently uploaded

New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 

Recently uploaded (20)

New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 

Pcf commands

  • 2. PCF Keywords • Api endpoint • Org, spaces • Target • Push • logs • Scale • Service, cups service • Binding/unbinding • routes Rajan p Upadhyay 2
  • 3. Basic Commands • Cf api • Cf login • Cf logout • Cf target Rajan p Upadhyay 3
  • 4. Other commands • Cf apps • Cf app APP_NAME • Cf push APP_NAME • Cf push –f <manifest_file> -p<package_file> • Cf scale APP_NAME • Cf scale APP_name –i <instances_num> -k <disk_limit> -m<memory> -f • Cf delete APP_NAME -r Rajan p Upadhyay 4
  • 5. More commands • Cf rename APP_NAME NEW_NAME • Cf start APP_NAME • Cf stop APP_NAME • Cf restart APP_NAME • Cf restage APP_NAME • Cf events APP_NAME • Cf restart-app-instance APP_NAME Index • Cf logs APP_NAME Rajan p Upadhyay 5
  • 6. Even more commands • Cf env App_Name • Cf set-env APP_NAME <Key> <Value> • Cf unset-env APP_NAME <Key> Rajan p Upadhyay 6
  • 7. Services command • Cf marketplace • Cf services • Cf service SERVICE_INSTANCE • Cf create-service SERVICE PLAN SERVICE_INSTANCE • Cf delete-service SERVICE_INSTANCE • Cf rename-service SERVICE_INSTANCE NEW_SERVICE_INSTANCE • Cf bind-service APP_NAME SERVICE_INSTANCE • Cf unbind-service APP_NAME SERVICE_INSTANCE • Cf create-user-provided-service SERVICE_INSTANCE • Cf update-user-provided-service SERVICE_INSTANCE • Eg. Create database user provided service in interactive mode cf cups SERVICE_NAME -p "url, username, password, encrypted" Rajan p Upadhyay 7
  • 8. Org commands • Cf orgs • Cf org ORG_NAME • Cf create-org ORG_NAME • Cf delete-org ORG_NAME • Cf rename-org ORG_NAME NEW_ORG_NAME Rajan p Upadhyay 8
  • 9. Spaces • Cf spaces • Cf space SPACE_NAME • Cf create-space SPACE • Cf delete-space SPACE • Cf rename-space SPACE NEW_SPACE Rajan p Upadhyay 9
  • 10. Domain commands • Cf domains • Cf create-domain ORG DOMAIN • Cf delete-domain DOMAIN • -- shared domain can only be created by admins • Cf create-shared-domain DOMAIN • Cf delete-shared-domain DOMAIN Rajan p Upadhyay 10
  • 11. Routes command • Cf routes • Cf create-route SPACE DOMAIN [-n HOST] • Cf check-route HOST DOMAIN • Cf map-route APP_NAME DOMAIN [-n HOST] • Cf unmap-route APP_NAME DOMAIN • Cf delete-orphaned-routes • -- routing is very important Rajan p Upadhyay 11
  • 12. extra commands • Cf buildpacks • Cf feature-flags Rajan p Upadhyay 12
  • 13. Blue Green JVM • For zero down-time in production • Route = host + shared_domain • We can have many routes point to same application • Blue Gree JVM • deploy application in PR with a non production route. One prefixed green and one prefixed blue • Create the production route manually: without mapping to any jvm • Which ever instance is tested, point the PR_ROUTE to that jvm instance Rajan p Upadhyay 13
  • 14. Blue green jvm example • Say in PR, an application ABC needs to be deployed with a route abc. rajanu.com.np Where shared-domain=rajanu.com.np and host=abc • Deploy the application with a host green-abc and app-name green-abc ie route = green-abc.rajanu.com.np • Create the abc route manually cf creae-route <SPACE> rajanu.com.np –n abc • When testing is finished with the application and it ok, map the route cf map-route ABC rajanu.com.np –n abc • Now route abc. rajanu.com.np will also point to the application ABC in addition to green-abc.rajanu.com.np • you can unmap the green-abc route from the application Rajan p Upadhyay 14
  • 15. Blue green jvm example continued • Next time you have some change in code and want to deploy in PR • Deploy it with host blue-abc with a new applicationName blue-abc. • So the new instance will have a mapped route of blue-abc.rajanu.com.np • Lets say the testing is complete and you want to make this the production version. You can map the abc route to blue-abc application. Cf map-route blue-abc rajanu.com.np –n abc • Now the route abc. rajanu.com.np will be pointing to both the instances green- abc and blue-abc • Now unmap the route from the green-abc instance so that it will only point to blue-abc instance • Cf unmap-route green-abc rajanu.com.np –n abc • If some problem is discovered and you want to backout the changes, simply map the route to green-abc and unmap it from blue-abc. Rajan p Upadhyay 15