Updated on 2025-07-30 GMT+08:00

TLS Route

Creating a TLS Route on the Console

  1. Log in to the UCS console. In the navigation pane, choose Service Meshes.
  2. Click the name of the target service mesh to go to its details page.
  3. In the navigation pane, choose Service Gateways > Gateway Routes.
  4. In the upper right corner, click Create Route.

  5. Configure parameters and click OK in the lower right corner.

    • Protocol: TLS
    • Route Name: Enter a name, for example, test.
    • Namespace: Select the namespace where the route will be created.
    • Service Gateway: Select the namespace, name, and listener of the gateway that the route will be associated with.
    • Service Domain Name: This parameter is optional.
    • Destination Service: Select the destination service and port. The destination service is automatically filtered based on the selected namespace and protocol.

Creating a TLS Route Using YAML

  1. Log in to the UCS console. In the navigation pane, choose Service Meshes.
  2. Click the name of the target service mesh to go to its details page.
  3. In the navigation pane, choose Service Gateways > Gateway Routes.
  4. In the upper right corner, click Create from YAML.

  5. Configure parameters and click OK in the lower right corner.

    The following describes the parameters in the YAML file. (Configure the parameters based on site requirements.)

    apiVersion: gateway.networking.k8s.io/v1alpha2
    kind: TLSRoute
    metadata:
      name: nginx
      namespace: whtest
    spec:
      parentRefs:
      - name: gateway     # Mandatory. It indicates the name of the gateway that the route will be associated with.
        namespace: whtest # Optional. It indicates the namespace of the gateway that the route will be associated with. If this parameter is not specified, the namespace where the route is located is used by default.
      hostnames:
      - "nginx.example.com"
      rules:
      - backendRefs:
        - name: my-nginx
          port: 443