# Installing Commvault Packages in Kubernetes Using Helm

You can use Helm to install Commvault packages in Kubernetes.

For more information about Helm, see Helm Docs.

## Before You Begin

Set up Helm in your environment. For more information, see Helm.

## Features That Are Not Supported on Containers

- CommServe LiveSync

- Live browse

## Procedures

- To add the repo, run the following command:

      helm repo add commvault https://commvault.github.io/helm-charts

  If you added this repo earlier, run the `helm repo update` command to retrieve the latest versions of the packages.

- To see the charts, run the following command:

      helm search repo commvault

  Values for different charts appear.

  To see detailed explanations of these files, run the following command:

       helm show values commvault/$[chartname]

  Values can also be supplied using the `--set` command line parameter.

  To see the Docker hub repository for Commvault, see Commvault Docker Hub Repository.

### Install Using --set Command

You can install Commvault packages by using the `--set` command line parameter.

- To install the config chart, run the following command:

      helm upgrade --install config commvault/config --set csOrGatewayHostName=$[commserve.commvault.svc.cluster.local] --set secret.user=$[installuser] --set secret.password=$[password] --namespace $[commvault]

  The config chart contains the config map for all of the Commvault component chart installs. You must always install the config chart prior to a new chart installation.

  Note

  - By default, the config chart deploys a container with cvpatcher service. This service facilitates the automatic upgrading of container clients whenever an installation upgrade job is triggered from the console.

  - If you do not want to deploy the cvpatcher service, then add the following parameter to the `helm upgrade` command: `--set cvpatcher=false`

  - For new installation of the CommServe server, the `secret.password` must have a minimum of eight characters, one uppercase letter, one lowercase letter, one number, and one special character (for example, Wer1f*gd).

- Install the CommServe chart, run the following command:

      helm upgrade --install commserve commvault/commserve --set global.image.tag=$[tagValue] --namespace $[commvault]

- To install the Web Server chart, run the following command:

      helm upgrade --install webserver commvault/webserver --set global.image.tag=$[tagValue] --namespace $[commvault]

- To install the Command Center chart, run the following command:

      helm upgrade --install commandcenter commvault/commandcenter --set global.image.tag=$[tagValue] --namespace $[commvault]

- To install the MediaAgent chart, run the following command:

      helm upgrade --install mediaagent commvault/mediaagent --set global.image.tag=$[tagValue] --namespace $[commvault]

  Note

  The process to back up the Deduplication Database (DDB) with application consistency involves creating a snapshot of the Persistent Volume Claim (PVC) that hosts the DDB, provisioning a new PVC from that snapshot, and launching a worker Pod to read from the new PVC. To perform these actions, you must configure ClusterRole and ClusterRoleBinding objects.

- To install the cv-ddb-backup-role chart, run the following command that will create a ClusterRole object named cv-ddb-backup and a ClusterRoleBinding object named cv-ddb-backup-binding.

      helm upgrade –install ddb-backup-role commvault/cv-ddb-backup –set targetNamespaces="$[namespace1-name,namespace2-name,namespace3-name]"

  Note

  The targetNamespaces should always include both the old and new namespace values for which you are configuring the role bindings.

- To install the network gateway chart, run the following command:

      helm upgrade --install networkgateway commvault/networkgateway --set global.image.tag=$[tagValue] --namespace $[commvault]

- To install the access node chart, run the following command:

      helm upgrade --install accessnode commvault/accessnode --set global.image.tag=$[tagValue] --namespace $[commvault]

- To uninstall a chart, run the following command:

       helm delete $[release-name] --namespace $[commvault]

### Install Using Value Files

You can install Commvault packages by using value files.

To see detailed explanations of these files, run `helm show values commvault/<chartname>`. Values can also be supplied using the `--set` command line parameter.

- To install the config chart, run the following command:

      helm upgrade --install cvconfig commvault/config -f $[configvalues.yaml] -f $[global.yaml]

  The config chart contains the config map for all of the Commvault component chart installs. You must always install the config chart prior to a new chart installation.

- Install the CommServe chart, run the following command:

      helm upgrade --install commserve commvault/commserve -f $[csvalues.yaml] -f $[global.yaml]

- To install the Web Server chart, run the following command:

      helm upgrade --install webserver commvault/webserver -f $[webservervalues.yaml] -f $[global.yaml]

- To install the Command Center chart, run the following command:

      helm upgrade --install commandcenter commvault/commandcenter -f $[commandcentervalues.yaml] -f $[global.yaml]

- To install the MediaAgent chart, run the following command:

      helm upgrade --install mediaagent commvault/mediaagent -f $[mediaagentvalues.yaml] -f $[global.yaml]

- To install the network gateway chart, run the following command:

      helm upgrade --install networkgateway commvault/networkgateway -f $[networkgatewayvalues.yaml] -f $[global.yaml]

- To install the access node chart, run the following command:

      helm upgrade --install accessnode commvault/accessnode -f $[accessnodevalues.yaml] -f $[global.yaml]

- To uninstall a chart, run the following command:

       helm delete $[release-name]

×

Loading...