NetBackup™ Deployment Guide for Kubernetes Clusters
- Introduction
- Section I. Configurations
- Prerequisites
- Recommendations and Limitations
- Configurations
- Configuration of key parameters in Cloud Scale deployments
- Section II. Deployment
- Section III. Monitoring and Management
- Monitoring NetBackup
- Monitoring Snapshot Manager
- Monitoring MSDP Scaleout
- Managing NetBackup
- Managing the Load Balancer service
- Managing PostrgreSQL DBaaS
- Performing catalog backup and recovery
- Managing MSDP Scaleout
- Section IV. Maintenance
- MSDP Scaleout Maintenance
- PostgreSQL DBaaS Maintenance
- Patching mechanism for Primary and Media servers
- Upgrading
- Cloud Scale Disaster Recovery
- Uninstalling
- Troubleshooting
- Troubleshooting AKS and EKS issues
- Troubleshooting AKS-specific issues
- Troubleshooting EKS-specific issues
- Troubleshooting AKS and EKS issues
- Appendix A. CR template
Upgrade NetBackup from previous versions
Ensure that all the steps mentioned for data migration in the section are performed before upgrading to the latest NetBackup or installing the latest :
See Preparing the environment for NetBackup installation on Kubernetes cluster.
User must have deployed NetBackupon Azure with
Azure disks
as its storage class.While upgrading to latest NetBackup, data migration would happen only if existing storage class has been changed. The existing catalog data of primary server will be migrated (copied) from
Azure disks
toAzure premium files
. Also new data volume would be created onAzure disks
for NetBackup database. If is changed for log, migration from azure disk NetBackupto azure disk will be triggered for logs.Fresh deployment: If user is deploying NetBackup for the first time, then
Azure premium files
will be used for primary server's catalog andAzure disks
will be used for log and data volume for any backup and restore operation.
(AKS-specific) Perform the following steps when upgrading NetBackup from version 10.2 or lower on AKS cluster version 1.25
- Pause the primary and media server spec by setting the value as paused: true in primaryServer and mediaServer sections in environment CR using the following command:
Kubectl edit environments -n <namespace>
- Change the value of primary and server statefulset to 0 using the following command:
kubectl scale statefulsets <stateful-set-name> --replicas=0 -n <namespace>
- Change the value of media server statefulset to 0 using the following command:
kubectl scale statefulsets <stateful-set-name> --replicas=0 -n <namespace>
- Delete the revertfix yaml file using the following command:
kubectl delete -f <revertfix_yaml>
- Restart the AKS cluster or set the scale node to 0 and rescale it.
- Upgrade to the latest versions of NetBackup and MSDP operator.
- Un pause the primary and media server spec by changing the value as paused: falsein primaryServer and mediaServer sections in environment CR using the following command:
kubectl edit environments -n <namespace>
- Change the imageTag to the latest imageTag for primary and media servers together and save it.
Ensure that all the steps mentioned for data migration in the following section are performed before upgrading to the latest NetBackup or installing the latest :
See Preparing the environment for NetBackup installation on Kubernetes cluster.
User must have deployed NetBackup on AWS with
EBS
as its storage class.While upgrading to latest NetBackup, the existing catalog data of primary server will be migrated (copied) from
EBS
toAmazon elastic files
.Fresh NetBackup deployment: If user is deploying NetBackup for the first time, then
Amazon elastic files
will be used for primary server's catalog volume for any backup and restore operations.
(EKS-specific) Perform the following steps when upgrading NetBackup from version 10.1
- Make primary environment controller paused to true as follows:
Edit the environment custom resource using the kubectl edit Environment <environmentCR_name> -n <namespace> command.
To pause the reconciler of the particular custom resource, change the paused: false value to paused: true in the primaryServer or mediaServer section and save the changes.
Scale down the primary server using the following commands:
To get statefulset name: kubectl get sts -n <namespace>
To scale down the STS: kubectl scale sts --replicas=0 < STS name of primary server> -n <Namespace>
- Upgrade the MSDP with new build and image tag. Apply the following command to MSDP:
./kubectl-msdp init --image <Image name:Tag> --storageclass <Storage Class Name> --namespace <Namespace>
- Edit the
sample/environment.yaml
file from new build and perform the following changes:Add the
tag: <new_tag_of_upgrade_image>
tag separately under primary sections.Provide the EFS ID for storageClassName of catalog volume in primary section.
Note:
The provided EFS ID for storageClassName of catalog volume must be same as previously used EFS ID to create PV and PVC.
Use the following command to retrieve the previously used EFS ID from PV and PVC:
kubectl get pvc -n <namespace>
From the output, copy the name of catalog PVC which is of the following format:
catalog-<resource name prefix>-primary-0
Describe catalog PVC using the following command:
kubectl describe pvc <pvc name> -n <namespace>
Note down the value of Volume field from the output.
Describe PV using the following command:
kubectl describe pv <value of Volume obtained from above step>
Note down the value of VolumeHandle field from the output which is the previously used EFS ID.
For data and logs volume, provide the storageClassNameand then apply
environment.yaml
file using the following command and ensure that the primary server is upgraded successfully:kubectl apply -f environment.yaml
Upgrade the MSDP Scaleout by updating the new image tag in msdpscaleout section in
environment.yaml
file.Apply
environment.yaml
file using the following command and ensure that MSDP is deployed successfully:kubectl apply -f environment.yaml
Edit the
environment.yaml
file and update the image tag for Media Server in mediaServer section.Apply
environment.yaml
file using the following command and ensure that the Media Server is deployed successfully:kubectl apply -f environment.yaml