An output only resource that will deploy an application to Cloud Foundry using blue-green pattern.
1M+
An output only resource that will deploy an application to Cloud Foundry using blue-green pattern.
This resource focuses a robust deployement of the application. The current crop of zero-downtime cf CLI plugins fails when applications are bound to CF services such as Service Registry (Eureka) and Identity Service (UAA).
api : Required. The adress of Cloud Foundry Cloud Controller.username : Required. The username used to authenticate.password : Required. The password used to authenticate.organization : Required. The organization to push the application to.space : Required. The space to push the application to.skip_cert_check : Optional. Check the validity of the CF SSL cert. Defaults to false.The application is pushed to Cloud Foundry using the blue-green deployment pattern.
The application is always pushed with the app name suffixed by either -blueor -green. The active application always have the name route. The process first determine which of blue or green is currently active and then deploy the new application using the other suffix. The application is deployed once using the suffixed route and the health check script is run. The script receives the APP (application name), HOSTNAME (application base hostname), NEXT (blue or green) and 'DOMAIN(application domain) as environment variables. The hostname for healthchecking the new application is${HOSTNAME}-${NEXT}.${DOMAIN}`. If the script exit with an error level, it the new application will be stopped and left in that state. If the script exit with 0. The new application will be deleted and pushed again with the normal route. At this time, both the new and current appications will receive requests. The current application route is unmapped and the it is stopped.
name : Required. The name of the application. This is also used for the always available route to the app.manifest : Required. The application manifest.path : Required. Path to the application to deploy.Content type
Image
Digest
Size
96 MB
Last updated
about 9 years ago
docker pull fujitsudas/cf-blue-green-resource