Each time the configuration of a Knative Service is updated, Knative creates a unique revision. Knative revisions simplify version management and canary releases. For example, Knative can manage traffic distribution among different revisions. You can modify the percentage of traffic distributed to each revision in the console. If you want to perform a rollback after a release, you can progressively switch traffic back to the old version.
Prerequisites
Knative is 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 cluster that you want to manage and click its ID. In the left-side navigation pane of the cluster details page, choose .
On the Services tab, select the namespace to which the Knative Service belongs and click the name of the Service. In the upper-right corner of the details page, click Create Revision.
In the Basic Information step, configure the parameters and click Next.
For more information about the parameters, see Configure revision parameters.
In the Traffic Splitting Settings step, configure Revisions and Percent % and click Create.
Revisions: A revision is created each time a Knative Service is updated.
Percent %: The percentage of traffic that is forwarded to a revision. The sum of the traffic percentage values specified for all revisions must be 100%.
You can view and delete revisions on the Revision Information tab of the details page of the Knative Service.
References
For more information about how to perform a canary release for a Knative Service based on a traffic proportion and a revision, see Perform a canary release based on traffic splitting.