Sequence wired to another Sequence

We are going to create the following logical configuration. We create a
CronJobSource, feeding events to a Sequence, then
taking the output of that Sequence and sending it to a second Sequence and
finally displaying the resulting output.

Prerequisites

For this example, we’ll assume you have set up a an InMemoryChannel as well as
Knative Serving (for our functions). The examples use default namespace,
again, if you want to deploy to another Namespace, you will need to modify the
examples to reflect this.

If you want to use different type of Channel, you will have to modify the
Sequence.Spec.ChannelTemplate to create the appropriate Channel resources.

Setup

Create the Knative Services

Change default below to create the steps in the Namespace where you want
resources created.

Create the first Sequence

The sequence1.yaml file contains the specifications for creating the Sequence.
If you are using a different type of Channel, you need to change the
spec.channelTemplate to point to your desired Channel.

Change default below to create the Sequence in the Namespace where you want
your resources created.

kubectl -n default create -f ./sequence1.yaml

Create the second Sequence

The sequence2.yaml file contains the specifications for creating the Sequence.
If you are using a different type of Channel, you need to change the
spec.channelTemplate to point to your desired Channel.