An overview of patterns
Open Horizon offers two mechanisms for controlling the deployment of services to the Edge. The first of these is referred to as patterns.
Patterns are simple but effective when you’re first kicking the tires with a couple of nodes. A pattern is a JSON file that lists the services you want to deploy with that pattern. Once you’ve written the pattern JSON file, you can publish it with the Management Hub.
After that, you can reference one or more patterns in the Node Policy document associated with the Edge Agent at each of your nodes. We’ll discuss the Node Policy document later in this chapter.
Whenever the Agent on a particular node starts, it will form an agreement with the Agbot to place the services specified in its referenced patterns at that node.
As you can see, this is a quick way of getting a well-known set of services placed on your nodes. However, it is static. The same services will always be placed at that node until...