Each time you update the configuration of a Knative Service, Knative automatically creates a unique revision. Use revisions to manage traffic splitting across versions for canary releases and rollbacks.
Prerequisites
Before you begin, ensure that you have:
Knative deployed in the ACS cluster. For more information, see Deploy Knative
Create a revision
Log on to the ACS console. In the left-side navigation pane, click Clusters.
On the Clusters page, find the target cluster and click its ID. In the left-side navigation pane, choose Applications > Knative.
On the Services tab, select the namespace of the Knative Service and click the Service name. In the upper-right corner of the details page, click Create Revision.
In the Basic Information step, configure the parameters and click Next. For parameter details, see Configure revision parameters.
In the Traffic Splitting Settings step, configure how traffic is distributed across revisions and click Create. Traffic splitting routes a percentage of incoming requests to each revision. Use this step to gradually shift traffic to a new revision or to progressively switch traffic back to a previous one. All configured percentages must sum to 100%.
Parameter Description Revisions The revision to route traffic to. A new revision is generated each time you update the Knative Service. Percent % The percentage of traffic routed to this revision. The total across all revisions must equal 100%.
What's next
To view or delete revisions after creation, go to the Revision Information tab on the Knative Service details page.
To gradually shift traffic between revisions by percentage, see Perform a canary release based on traffic splitting.