Publishing an Open Horizon Service and Pattern
Having understood what it would take to prepare the service definition, let’s create a simple Service and publish it in the Management Hub. In the previous chapter, we assumed that the container image of the Service exists, which usually may be the case. However, in this book, we will start from scratch.
A typical application development cycle may involve the following steps:
- Develop the microservice code.
- Build a container image for the microservice image.
- Publish the microservice in a container repository.
- Create
service-definition JSON
for the service. - Publish the service to the Management Hub.
- Create an Open Horizon Pattern or Deployment Policy for the service.
- Register the node with a Pattern.
- Verify that the Service and the application are running.
We will go through these steps by following the code provided in the example-services repository.
Tip
In the book, we’...