# Rancher Navigation Links for Trilio Management Console

Users can create a Navigation Link on the Rancher Management Console to redirect a URL of any application deployed on the Kubernetes cluster.

The are two way to place the NavLink on the Rancher UI.\
1\. Create a standalone T4K UI NavLink on the left panel\
2\. Create a NavLink under a group and the Group will be placed on the left panel

Here are the instructions to create a Navigation Link (NavLink):

#### 1. Create a standalone T4K UI NavLink on the left panel:

![Click on Search icon on top-right corner on Rancher Server Console](https://content.gitbook.com/content/9sDjF5HJP1bf8TtLcgkk/blobs/tGqbmmwyoNOC0PMRWW5b/image%20\(417\).png)

![Search the NavLinks to create a CR](https://content.gitbook.com/content/9sDjF5HJP1bf8TtLcgkk/blobs/WiDPwCdtR54Tprt5ndsD/image%20\(422\).png)

```
apiVersion: ui.cattle.io/v1
kind: NavLink
metadata:
  name: triliovault-for-kubernetes-management-console
spec:
  description: T4K Management Console
  iconSrc: null
  label: T4K Management Console
  toURL: http://k3s-rke2-tvk.demo.trilio.io:31616/
```

In above yaml snippet:

* `metadata.name` : Name of the NavLink
* `spec.description` : Description of the NavLink
* `spec.iconSrc` : Image or icon of the branding logo of the application or the company
* `spec.label` : The label of the URL to be visible on the Rancher UI
* `spec.toURL`: Complete URL of the application to be redirected to. The host name is `k8s-triliovault-minion` ingress hosts URL. The port is the `NodePort` of the `k8s-triliovault-ingress-gateway` service.

In above yaml, user can also provide `service` object information instead of `toURL`. For the details check the [Rancher documentation](https://rancher.com/docs/rancher/v2.6/en/admin-settings/branding/#adding-a-custom-navigation-link)\
Copy the above yaml and create the new NavLink.

![NavLink created using yaml](https://content.gitbook.com/content/9sDjF5HJP1bf8TtLcgkk/blobs/q7KfT4dN8qQGrDrG9aCc/image%20\(395\).png)

![Navlink for T4K UI is present in left pane](https://content.gitbook.com/content/9sDjF5HJP1bf8TtLcgkk/blobs/TtlghDCpKL3B3meNcewy/image%20\(189\).png)

#### 2. Create a T4K UI NavLink under a group

Users can place the T4K UI URL under a group and then access it from the group dashboard:

```
apiVersion: ui.cattle.io/v1
kind: NavLink
metadata:
  annotations:
    key: triliovault-for-kubernetes-management-console
  labels:
    key: tvk-management-console
  name: tvk-mgmt-console-image
spec:
  description: T4K Backup & Restore Management Console
  group: Monitoring DashBoards
  iconSrc: <Copy the base64 encoded image and paste here>
  label: T4K Management Console
  toURL: http://k3s-rke2-tvk.demo.trilio.io:31616/
```

![Navlink create using group of Monitoring Dashboard](https://content.gitbook.com/content/9sDjF5HJP1bf8TtLcgkk/blobs/kxWb8MmEa4aM1Fx0EpvO/image%20\(420\).png)

![NavLink visible under a group](https://content.gitbook.com/content/9sDjF5HJP1bf8TtLcgkk/blobs/LalNobCsaHNDOMmpyZC1/image%20\(83\).png)

Once the user clicks on the NavLink, it will be redirected to the T4K UI.

<figure><img src="https://content.gitbook.com/content/9sDjF5HJP1bf8TtLcgkk/blobs/KOZnqf01gUoSItGEFYMO/image%20(310).png" alt=""><figcaption><p>T4K UI is Accessible</p></figcaption></figure>

For more information you can follow the documentation from Rancher as well.
