This topic describes how to create revisions for Knative services. If you want to roll back from a newly released application version to an earlier version, you only need to switch inbound traffic to the earlier version.

Background information

When you deploy a Knative service, the system creates a revision of stock-service-example-v1 and forwards all inbound traffic to stock-service-example-v1.

Procedure

  1. Log on to the ACK console.
  2. In the left-side navigation pane, choose Knative > Services.
  3. On the Knative Services page, select the target cluster and namespace, find the target service, and click Details in the Actions column.
    Details
  4. Click Create Revision in the upper-right corner of the Details page.
  5. In the Create Revision dialog box, set the parameters.
    1. Configure basic information.
      For basic information about a revision, see Set revision parameters.
    2. Configure traffic splitting settings.
      • Revisions: A revision is created each time a Knative service is released.
      • Percent %: The percentage of traffic that is forwarded to a revision. The total sum of the traffic percentiles specified for all revisions must be 100%.
  6. Click Create.
    Go to the Details page of the created revision. Click the Revision Information tab to view the Knative service details.Revision information