NBServerMigrator Update: rename operation - when Kuberentes is configured

Article: 100072031
Last Published: 2024-11-11
Ratings: 0 0
Product(s): NetBackup & Alta Data Protection, Appliances

Description

Steps to perform in rename, when Kubernetes is configured in the environment with NetBackup version 10.3 and above:

A. Make replicaset to 0:
    1. kubectl get deployment -n <namespace>         -> Select <namespace>-controller-manager
    2. kubectl edit deployment/<namespace>-controller-manager -n <namespace> 
    3. Change from `replicas: 1` to `replicas: 0` under `spec:` section.
    4. Save file using `:wq!`
    
B. Add hostalises in deployment 
    1. kubectl get deployment -n <namespace>         -> Select <namespace>-controller-manager
    2. kubectl edit deployment/<namespace>-controller-manager -n <namespace> 
    3. Add hostalises referring to Kubernetes admin guide.
    
C. Add hostalises in configmap
    1. Find config map : kubectl get cm -n <namespace>
    2. Select config map and copy its data into new yaml file     :  kubectl get cm/<old-primary-server-name> -n <namespace> -o yaml > <new-primary-server-name>.yaml
    3. Edit <new-primary-server-name>.yaml with below details - 
        Add hostalises in data: section referring to NetBackup Kubernetes datamover admin guide 
        Update `Name:` from `metadata:` section with new primary server name. 

D. Make replicaset to 1
    1. kubectl get deployment -n <namespace>         -> Select <namespace>-controller-manager
    2. kubectl edit deployment/<namespace>-controller-manager -n <namespace> 
    3. Change from `replicas: 0` to `replicas: 1` under `spec:` section.
    4. Save file using `:wq!`
    
E. Exec into controller pod 
    1. kubectl exec -it pod/<controller-pod-name> -n <namespace> -- bash
    2. Copy SHA256 from NetBackup Primary server and copy it in /tmp/fp.txt. 
        echo "<fingerprint>" > /tmp/fp.txt
        example: echo "74:BA:91:AF:FF:24:64:45:D8:66:29:B0:56:11:D6:0F:B0:B9:B9:13:86:5B:02:2A:3F:96:E5:FD:E1:A7:67:67" > /tmp/fp.txt
        
    3. Run command to get CACertificate 
        /nbcertcmdtool/nbcertcmdtool -atLibPath /nbcertcmdtool -getcacertificate -server <new-netbackup-primary-name> -file /tmp/fp.txt
    4. Get reissue token from NetBackup Primary Server
    5. Run command to get Certificate 
        /nbcertcmdtool/nbcertcmdtool -atLibPath /nbcertcmdtool -getcertificate -server <new-netbackup-primary-name> -token <reissue-token> -force

Was this content helpful?