Combining multiple services and deployments
Now that you’ve learned how to deploy a simple service, let’s explore how multiple services can be deployed using an Open Horizon Pattern.
As an exercise, deploy service2
while following the instructions we used for service1
. The code for this can be found in the example-services
service2
directory of this book’s GitHub repository.
Simply running make
in the service2
directory will build and push the container image, and then publish service2
and a corresponding pattern.
Run make register
to register the Edge device node with the pattern we created previously. Once the Edge device node has been fully registered and the service workload has been deployed and is running, you can test the service’s output with make test-app-service
.
You should see an output similar to this:
{ "hostname": "08a1cd0fbf31", "service": "Service Two" }
At this...