Service Instance Upgrades

See the below sections for steps to upgrade an individual Spring Cloud Services service instance after an upgrade of the Spring Cloud Services product.

Config Server Upgrades

After an upgrade of the Spring Cloud Services product, follow the below steps to upgrade an individual Config Server service instance.

  1. Using the cf rename-service command, rename the current Config Server service instance. For example, given a service instance named “config-server”, you might rename it to “config-server-old”.

    $ cf rename-service config-server config-server-old
    
  2. Using the cf create-service command, create a new instance with the old instance’s settings and former name.

    $ cf create-service -c '{ "git": { "uri": "https://github.com/spring-cloud-samples/cook-config", "label": "master"  } }' p-config-server standard config-server
    
  3. For each app that has been bound to the service instance, use the cf rename command to rename the app. For example, given an app named “cook”, you might rename it to “cook-old”.

    $ cf rename cook cook-old
    
  4. Update client dependencies (see Client Dependencies) in the original app and push it, using a new temporary route, to Pivotal Cloud Foundry (PCF). Ensure that the updated original app is bound to the new service instance.

    $ cf push -n cook-new cook
    
  5. Verify that the updated original app functions properly, then use the cf map-route command to map the original route to the updated original app.

    $ cf map-route cook wise.com -n cook
    
  6. Delete the old app and service instance, then delete the temporary route on the updated app.

    $ cf delete cook-old
    
    $ cf delete-service config-server-old
    
    $ cf delete-route wise.com -n cook-new
    

Service Registry Upgrades

After an upgrade of the Spring Cloud Services product, you can use the cf update-service command to update an individual Service Registry service instance.

Run the cf update-service command, supplying the upgrade and force parameters and setting both to true:

$ cf update-service service-registry -c '{"upgrade": true, "force": true}'

For more information about parameters accepted for an update to a Service Registry service instance, see Updating an Instance in the Service Registry documentation.

Circuit Breaker Dashboard Upgrades

After an upgrade of the Spring Cloud Services product, you can use the cf update-service command to update an individual Circuit Breaker Dashboard service instance.

Run the cf update-service command, supplying the upgrade and force parameters and setting both to true:

$ cf update-service circuit-breaker-dashboard -c '{"upgrade": true, "force": true}'

For more information about parameters accepted for an update to a Circuit Breaker Dashboard service instance, see Updating an Instance in the Circuit Breaker Dashboard documentation.

Create a pull request or raise an issue on the source for this page in GitHub