This section describes how to edit a routing rule.

Prerequisites

You need to join a project and have the Application Workload Management permission in the project. For more information, see Project Members and Project Roles.

Steps

  1. Log in to the KubeSphere web console with a user who has Application Workload Management permissions and enter your workspace.

  2. Click Application Workloads > Ingress in the left navigation pane.

  3. Select a project from the drop-down list in the upper left corner of the page.

  4. On the right side of the Ingress you want to operate, click more, and then select Edit Routing Rule from the drop-down list.

  5. In the Edit Routing Rule dialog box, set the routing rule, and then click OK.

    • Click Add Routing Rule to set a routing rule. You can set multiple routing rules, each corresponding to a domain name.

    • Hover over a created routing rule, then click pen on the right to edit the routing rule settings.

    • Hover over a created routing rule, then click trash-light on the right to delete the routing rule.

    Parameter Description

    Domain Name

    User-defined domain name.

    Protocol

    Protocol supported by the Ingress. The parameter value can be HTTP or HTTPS.

    Secret

    When the Ingress protocol is HTTPS, the Secret used to provide the certificate and key. This Secret must contain the tls.cert and tls.key fields, storing the Base64-encoded certificate and private key respectively.

    Path

    Domain path and its mapping relationship with the service port.

    • Click Add to set multiple paths.

    • Click trash-light on the right of a created path to delete the path.