# 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/TrewSrS6CmLdahLrZUjj/blobs/QNwRgoKZLCwCkI9YFwin/image.png)

![Search the NavLinks to create a CR](https://content.gitbook.com/content/TrewSrS6CmLdahLrZUjj/blobs/4UPNyYkSJhADUm8b67hk/image.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/TrewSrS6CmLdahLrZUjj/blobs/dAVWFLvU2E93WYGAXKsy/image.png)

![Navlink for T4K UI is present in left pane](https://content.gitbook.com/content/TrewSrS6CmLdahLrZUjj/blobs/Zedr6TVEFg2ZqRU21z2o/image.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/TrewSrS6CmLdahLrZUjj/blobs/GdlFa1Xa55vSSH81yFdR/image.png)

![NavLink visible under a group](https://content.gitbook.com/content/TrewSrS6CmLdahLrZUjj/blobs/izEepPX5UFQYIrJMLkH1/image.png)

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

<figure><img src="https://content.gitbook.com/content/TrewSrS6CmLdahLrZUjj/blobs/l4aTM0CF8MIWVMMKPF1S/image.png" alt=""><figcaption><p>T4K UI is Accessible</p></figcaption></figure>

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