open-horizon.github.io
open-horizon.github.io copied to clipboard
Updating node with new service version
How do you update a service running on a node with a newer (latest) version of the service?
@jsaez-ibm We're searching to see if there are existing documentation pages that cover this topic. In the meantime, the specific answer from @TheMosquito is:
- Make and publish a new version of the service, ideally updating the version
- Update the existing Service Definition file and publish it
- Edit pattern or policy to change the version number, and republish it
@joewxboy do we got any existing documentation pages that cover this topic? or can we go further with the answer suggested by @TheMosquito and add that to the docs?
Glen's comment is correct. That's how I deploy updated Service containers to edge nodes.
Maybe we need a Common Use Cases page in the Developing section?
Glen's comment is correct. That's how I deploy updated Service containers to edge nodes.
Maybe we need a Common Use Cases page in the Developing section?
ya we can add one
This is now documented several places. In https://open-horizon.github.io/docs/using_edge_services/service_rollbacks/#creating_edge_service_definition it states:
the main steps to release a new version of an edge service are:
- Edit the edge service code as needed for the new version.
- Edit the semantic version number of the code in the service version variable in the hzn.json configuration file.
- Rebuild your service containers.
- Sign and publish the new edge service version into the Horizon exchange.