Exposing the UI Using Port Forwarding

Expose the UI service using port forwarding.

Port-forwarding is a convenient way of exposing the UI service on the localhost for debugging and troubleshooting in a development environment.

Important:

We don't recommend you use port-forwarding to expose the UI in a production environment.
  1. Generate UI access token.

    Generate the access token needed for authenticating a connection to the UI. For information on creating an access token, see Creating an Access Token.

  2. Set up port forwarding.

    Set up port forwarding by running the following command:

    kubectl port-forward --namespace ocne-system service/ui 8443:443

    Note:

    You must let the kubectl port-forward command continue to run for the time you need access to the UI.

  3. Access to the UI.

    You can access the UI on the localhost using a web browser. Open a browser session and enter the following address:

    https://127.0.0.1:8443

    The Authentication page is displayed.

    Tip:

    You can access the UI on the localhost from a remote machine by using local port forwarding. For example, to enable incoming connections to localhost on port 9898, enter the following command on the remote machine:

    ssh -L 9898:127.0.0.1:8443 myuser@myhost.example.com
  4. Enter the access token.

    Enter the access token into the ID token field on the Security page and click AUTHENTICATE.

    The UI application uses the token to authenticate the connection and the Overview page appears.