NetBackup™ Web UI Kubernetes Administrator's Guide

Last Published:
Product(s): NetBackup (9.1)

Deploying the NetBackup Kubernetes operator

After configuring your cluster(s), you can deploy the NetBackup Kubernetes operator in them. You must deploy the operator in each cluster, where you want to use NetBackup.

Configuring the Helm Chart

You can use Helm Chart to deploy NetBackup Kubernetes operator. You can create a chart for the NetBackup Kubernetes operator. Here is the Helm chart and tree structure layout.

netbackupkops-helm-chart

   ├── charts

   ├── Chart.yaml

   ├── templates

   │   └── deployment.yaml

   └── values.yaml

To deploy the NetBackup Kubernetes operator:

  1. Download the operator service package.
  2. Extract the package to the home directory. The netbackupkops-helm-chart folder should be in the home directory.
  3. To list all cluster contexts, run the command: kubectl config get-contexts
  4. To switch to the cluster where you want to deploy the operator service, run the command: kubectl config use-context <cluster-context-name>
  5. To change the current directory to your home directory, run cd ~
  6. If you use a private docker registry, follow the instructions in this step to create a secret nb-docker-cred in Velero namespace. Otherwise, skip to the next step.
    • To log on to the private docker registry, run the command: docker login -d <user name> -p <password>

      After logon, the config.json file containing the authorization token is created or updated. To view the config.json file, run the command: cat ~/.docker/config.json

      The output looks like:

      {
      
         "auths": {
      
             "https://index.docker.io/v1/": {
      
                 "auth": "c3R...zE2"
      
             }
      
         }
      
      }
    • To create a secret named as netbackupkops-docker-cred in the Velero namespace, run the command:

      kubectl create secret generic netbackupkops-docker-cred \

      --from-file=.dockerconfigjson=.docker/config.json \

      --type=kubernetes.io/dockerconfigjson -n velero

    • To check if the secret netbackupkops-docker-cred is created in the Velero namespace, run the command: kubectl get secrets -n velero

    • If you use an image tar file, to load the image to the docker cache and push the image to the docker image repository, run the following commands:

      docker load -i <name of the tar file>

      docker tag <image name:tag of the loaded image> <repo-name/image-name:tag-name>

      docker push <repo-name/image-name:tag-name>

    • Open the netbackupkops-helm-chart/values.yaml file in a text editor, and then replace the value image in the manager section, with your image name with tag ( repo-name/image-name:tag-name ) and save the file.

  7. To deploy the NetBackup Kubernetes operator service, run the following command in a single line:

    helm install <release name of the deployment> ./netbackupkops-helm-chart -n <namespace in which NetBackup operator service will run>

    For example: helm install veritas-netbackupkops ./netbackupkops-helm-chart -n netbackup

    • You can change the release name of the deployment as required.

    • The -n option is required to specify the namespace in which NetBackup operator service is intended to run. It must be the same namespace where Velero is intended to run.

  8. To check the status of the deployment, run the command:

    helm list -n <namespace in which NetBackup operator service will run>

    For example:

    helm list -n netbackup

  9. To check the release history, run the command: helm history veritas-netbackupkops -n <namespace in which NetBackup operator service will run>

    For example:

    helm history veritas-netbackupkops -n netbackup