NetBackup™ Web UI Kubernetes Administrator's Guide
- Overview of NetBackup for Kubernetes
- Deploying and configuring the NetBackup Kubernetes operator
- Configure settings for NetBackup snapshot operation
- Managing image groups
- Deploying certificates on NetBackup Kubernetes operator
- Managing Kubernetes assets
- Managing Kubernetes intelligent groups
- Protecting Kubernetes assets
- Recovering Kubernetes assets
- Troubleshooting Kubernetes issues
Deploy service package on NetBackup Kubernetes operator
Before deploying the NetBackup Kubernetes operator, you must install the Helm chart and provide space for persistent volume.
To install the latest Helm version, run the following commands:
#curl -k -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm
#chmod +x get_helm.sh
#./get_helm.sh
You must deploy the operator in each cluster, where you want to deploy NetBackup.
You can use the Helm chart to deploy the NetBackup Kubernetes operator.
You must upgrade a helm chart to upgrade NetBackup Kubernetes operator.
To upgrade the Helm chart
- To upgrade the Helm chart, run the command:
helm upgrade <plugin-name> -n <namespace>
Note:
Before installing a new plug-in, you must uninstall the older plug-in.
To install a new Helm chart
- To uninstall an older plug-in, run the command:
helm uninstall <plugin-name> -n <namespace>
- To install a new plug-in, run the command:
helm install <plugin-name> <chart-path> -n <namespace>
Here is the Helm chart and tree structure layout:
netbackupkops-helm-chart ├── charts ├── Chart.yaml ├── templates │ └── deployment.yaml └── values.yaml
Directory structure:
tar --list -f netbackupkops-10.1.1.tar.gz veritas_license.txt netbackupkops-helm-chart/ netbackupkops-helm-chart/Chart.yaml netbackupkops-helm-chart/Values.yaml netbackupkops-helm-chart/.helmignore netbackupkops-helm-chart/templates netbackupkops-helm-chart/templates/development.yaml netbackupkops-helm-chart/Charts/
To deploy the NetBackup Kubernetes operator:
- Download the tar package from Veritas Support website: https://www.veritas.com/content/support
- Extract the package to the home directory. The
netbackupkops-helm-chart
folder should be in the home directory. - To list all cluster contexts, run the command: kubectl config get-contexts
- To switch to the cluster where you want to deploy the operator service, run the command:
kubectl config use-context <cluster-context-name>
- To change the current directory to your home directory, run the command: cd ~
- NetBackup supports any Container Image Repositories compiled to OCI standards. you can use any tools to push the operators and datamover images.
If you use a private docker registry, follow the instructions in this step to create a secret
nb-docker-cred
in NetBackup namespace. Otherwise, skip to the next step.To log on to the private docker registry, run the command: docker login -u <user name><repo-name>
After log in, the
config.json
file containing the authorization token is created or updated. To view theconfig.json
file, run the command: cat ~/.docker/config.jsonThe output looks like:
{ "auths": { "https://index.docker.io/v1/": { "auth": "c3R...zE2" } } }
To create a secret named as
netbackupkops-docker-cred
in the NetBackup namespace, run the command:kubectl create secret generic netbackupkops-docker-cred \
--from-file=.dockerconfigjson=.docker/config.json \
--type=kubernetes.io/dockerconfigjson -n netbackup
You can provide any namespace to create a secret.
To check if the secret
netbackupkops-docker-cred
is created in the NetBackup namespace, run the command:kubectl get secrets -n netbackup
To load the image to the docker cache and push the image to the docker image repository, run the 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 for image in the manager section, with your image name and tag repo-name/image-name:tag-name and then save the file. - To deploy the NetBackup Kubernetes operator service, run the command:
helm install <release name of the deployment> ./netbackupkops-helm-chart -n <namespace which runs NetBackup operator service>
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 and NetBackup is intended to run.
- To check the status of the deployment, run the command:
helm list -n <namespace which runs NetBackup operator service >
Example:
helm list -n netbackup
- To check the release history, run the command:
helm history veritas-netbackupkops -n
<namespace which runs NetBackup operator service>.
Example:
helm history veritas-netbackupkops -n netbackup