Skip to content

harneet1/README.md

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 

Repository files navigation

Prerequisites

Deployment types

The following deployments are currently supported 1) MSGW (Quickstart Startup Mode)

Configure variables:

The folder consists of manifest.yml file 1) manifest.yml file consist of docker image and all environment variable that are required to deploy microgateway

Deploy

  • Accept the license

    To accept the license agreement [Microservices Gateway Pre-Release Agreement], set the value of "ACCEPT_LICENSE" to true. This variable is present in manifest.yml file.

Start PCFDev:

  • This will take around 5 to 6 minutes
cf dev start

Login to PCFDev:

cf login -a api.local.pcfdev.io --skip-ssl-validation
Email> admin
Password> admin
press enter to skip

Create PCFDev 'org' and 'space' for hosting your application:

cf create-org <org-name>
cf target -o <org-name>
cf create-space <space-name>
cf target -o <org-name> -s <space-name>

Push microgateway application to PCFDev and create a tcp-route to it:

  • cd to folder where manifest.yml file is present before pushing app to Cloud foundry
cf push microgateway
cf create-route <space-name> tcp.local.pcfdev.io --random-port
cf map-route microgateway tcp.local.pcfdev.io --port rport
  • Where, rport is generated from previous step.

To check status of pushed app in PFCDev:

cf apps

To check logs:

cf logs microgateway --recent

To perform healthcheck of microgateway:

curl --insecure --user "admin:password" https://tcp.local.pcfdev.io:rport/sys/probe/healthcheck

If microgateway is up and running it returns:

OK

To scale microgateway:

cf scale microgateway -i <Number of instances>

To check instances is up and running:

cf apps

To see PCFDev application dashboard:

Go to URL: https://apps.local.pcfdev.io
Email> admin
Password> admin

Access QST endpoint from command line using curl:

curl --insecure --user "admin:password" https://tcp.local.pcfdev.io:rport/quickstart/1.0/services

Since, Microgateway doesn't have any publish service at this time, it should return an empty set:

[]

To publish a new service:

curl --insecure --user "admin:password" https://tcp.local.pcfdev.io:rport/quickstart/1.0/services

It should return the service that you bake in docker image.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published