Upgrading Snapshot Manager
Edit the field in the CR to upgrade Snapshot Manager using environment CR. MODIFY event will be sent to Snapshot Manager operator which will trigger upgrade workflow.
To upgrade Snapshot Manager
- Update the variables appropriately:
NB_VERSION=10.1.0 OPERATOR_NAMESPACE="netbackup-operator-system" ENVIRONMENT_NAMESPACE="ns-155" NB_DIR=/home/azureuser/VRTSk8s-netbackup-${NB_VERSION}/ - Edit the
operator/kustomization.yamlfile as follows:KUSTOMIZE_FILE=${NB_DIR}operator/kustomization.yaml nano $KUSTOMIZE_FILE
Update the newName and newTag under
cloudpointoperator. - Upgrade the operator using the following command:
cd $NB_DIR kubectl apply -k operator sleep 20s
- Check (Wait for) if the operator is upgraded and running:
kubectl describe pod $(kubectl get pods -n $OPERATOR_NAMESPACE | grep flexsnap-operator | awk '{printf $1" " }') | grep Image: kubectl get all -n $OPERATOR_NAMESPACE
- Once the operator is upgraded successfully and it is running, update the cpServer.tag in
environment.yamlfile as follows:nano ${NB_DIR}environment.yaml
- Apply
environment.yamlfile to start upgrading Snapshot Manager services using the following command:kubectl apply -f ${NB_DIR}environment.yaml -n $ENVIRONMENT_NAMESPACE
- Check upgrade logs in flexsnap-operator using the following command:
kubectl logs -f $(kubectl get pods -n $OPERATOR_NAMESPACE | grep flexsnap-operator | awk '{printf $1" " }')
- Check Snapshot Manager status using the following command:
kubectl get cpserver -n $ENVIRONMENT_NAMESPACE