# Maintaining the Trilio Controller Cluster

The TrilioVault Controller Cluster can be maintained utilizing the TrilioVault deployment binary and the helm commands

## Trilio binary overview

Provides all available commands of the Trilio binary.

```
triliovault --help
```

## Configuring local DNS nameservers for wlm-workloads and wlm-api

In certain scenarios it might be necessary to set additional local DNS nameservers for the wlm-workloads and wlm-api pods.

This can be done through the Trilio binary

```
triliovault --add-host-entry
```

## Updating the Trilio Controller Cluster

To update the Trilio Controller Cluster to the latest version available the helm commands are used on any of the Kubernetes Master Nodes.\
In case of a 3 node Cluster, all nodes are Kubernetes Master Nodes.\
In case of a 5 or more node Cluster, the first 3 nodes in the deployment.json are the master nodes.

To upgrade the cluster the following commands are run.\
It is required to reconfigure the Cluster after the upgrade.

```
helm repo update
helm upgrade tvr trilio/tvault --reset-values
helm upgrade mariadb trilio/mariadb -n trilio
```

## Redeploy the Trilio Controller Cluster

Deletes the complete TrilioVault Controller cluster and all its artifacts before redeploying the same based on the last deployment.\
Requires a new configuration of the redeployed containers.

```
triliovault -t multinode -a redeploy -f deployment.json
```

## Reset the Trilio Controller Cluster

Deletes the TrilioVault containers and redeploys the same.\
Requires a new configuration of the redeployed containers

```
triliovault -t multinode -a reset 
```

## Cleanup the Trilio Controller Cluster

Deletes the complete Trilio Controller Cluster and all its artifacts.

```
triliovault -t multinode -a cleanup
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.trilio.io/rhv/deployment-guide/maintaining-the-trilio-controller-cluster.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
