NetBackup™ Web UI Kubernetes Administrator's Guide

Last Published:
Product(s): NetBackup (10.0)
  1. Introducing the NetBackup web user interface
    1.  
      About the NetBackup web UI
    2.  
      Terminology
    3.  
      Sign in to the NetBackup web UI
    4.  
      Sign out of the NetBackup web UI
  2. Monitoring NetBackup
    1.  
      The NetBackup dashboard
    2.  
      Job monitoring
    3.  
      Jobs: cancel, suspend, restart, resume, delete
    4.  
      Search for or filter jobs in the jobs list
  3. Overview of NetBackup for Kubernetes
    1.  
      Overview
    2.  
      Features of NetBackup support for Kubernetes
  4. Deploying and configuring the NetBackup Kubernetes operator
    1.  
      Deploy service package on NetBackup Kubernetes operator
    2.  
      Port requirements for Kubernetes operator deployment
    3.  
      Upgrade the NetBackup Kubernetes operator
    4.  
      Delete the NetBackup Kubernetes operator
    5.  
      Configure NetBackup Kubernetes datamover
    6.  
      Configure settings for NetBackup snapshot operation
    7.  
      Troubleshooting NetBackup servers with short names
    8. Managing image groups
      1.  
        About image expiration
      2.  
        About image copy
  5. Deploying certificates on NetBackup Kubernetes operator
    1.  
      Deploy certificates on the Kubernetes operator
    2.  
      Perform Host-ID-based certificate operations
    3.  
      Perform ECA certificate operations
    4.  
      Identify certificate types
  6. Managing Kubernetes assets
    1.  
      Add a Kubernetes cluster
    2.  
      Configure settings
    3.  
      Add protection to the assets
  7. Managing Kubernetes intelligent groups
    1.  
      About intelligent group
    2.  
      Create an intelligent group
    3.  
      Delete an intelligent group
    4.  
      Edit an intelligent group
  8. Protecting Kubernetes assets
    1.  
      Protect an intelligent group
    2.  
      Remove protection from an intelligent group
    3.  
      Configure backup schedule
    4.  
      Configure backup options
    5.  
      Configure backups
    6.  
      Configure storage units
  9. Recovering Kubernetes assets
    1.  
      Explore and validate recovery points
    2.  
      Restore from snapshot
    3.  
      Restore from backup copy
  10. Troubleshooting Kubernetes issues
    1.  
      Error during certificate deployment on the Kubernetes operator
    2.  
      Error during the primary server upgrade: NBCheck fails
    3.  
      Error during an old image restore: Operation fails
    4.  
      Error during persistent volume recovery API
    5.  
      Error during restore: Final job status shows partial failure
    6.  
      Error during restore on the same namespace
    7.  
      Datamover pods exceed the Kubernetes resource limit
    8.  
      Error during restore: Job fails on the highly loaded cluster
    9.  
      Custom Kubernetes role created for specific clusters cannot view the jobs

Configure settings for NetBackup snapshot operation

You need to configure snapshot operation on the Kubernetes operator deployment before you perform the actual backup from snapshot operations.

  1. Define a storage class pointing to the CSI plugin.

  2. Define a VolumeSnapshotClass class consisting of CSI driver details.

  3. Label the volume snapshot class for NetBackup usage. Add the following label netbackup.veritas.com/default-csi-volume-snapshot-class=true.

    Note:

    Snapshot of a namespace consisting of persistent volume fails with an error message: Failed to create snapshot of the Kubernetes namespace.

    The snapshot operation may fail due to multiple reasons, for example, a valid volume snapshot class for the driver with label volumesnapshotclass is not found.

  4. Sizing for metadata persistent volume is required. The default persistent volume size for Kubernetes operator is 10Gi. The persistent volume size is configurable.

    You can change the value for storage from 10Gi to a higher value before deploying the plugin. This leads to the nbukops pod have the size of the PVC mounted in the pod.

    Persistent Volume Claim looks like this:

    apiVersion: v1
    kind: PersistentVolumeClaim
    metadata:
      labels:
        component: netbackup
      name: {{ .Release.Namespace }}-netbackupkops
      namespace: {{ .Release.Namespace }}
    spec:
      accessModes:
      - ReadWriteOnce
      resources:
        requests:
          storage: 10Gi
    
    • During fresh installation while configuring the Helm Chart. You can modify the size of PVC storage in the deployment.yaml of the netbackupkops-helm-chart which leads to creation of the initial PVC size.

    • Post installation, updating the PVC size (dynamic volume expansion) is supported by few storage vendors. For more information, refer tohttps://kubernetes.io/docs/concepts/storage/persistent-volumes

Note:

The default size of persistent volume can be resized to larger value without losing the data. You are recommended to add the storage provider that supports volume expansion.

Note:

To get the configuration value, you can run the command: kubectl get configmaps <namespace>-backup-operator-configuration -n <namespace> -o yaml > {local.file}

Table: Kubernetes operators supported configuration parameters in <namespace>-backup-operator-configuration

Configuration

Description

Default value

Possible value

DaemonSets

A Daemonset is a dynamic object in Kubernetes which is managed by a controller. You can set the desired state that represents the specific pods that need to exist on every node. The pod compromise in the control loop can compare the current practical state with the desired state.

true

true, false

Deployments

Deployments for the Kubernetes workload.

true

true, false

Pods

A pod is the smallest execution unit in Kubernetes.

true

true, false

ReplicaSets

Replica Set ensures how many replicas of a pod should be running. It can be considered as a replacement of the replication controller.

true

true, false

Secrets

Secrets are the objects that contain sensitive data such as passwords, tokens, and credentials.

true

true, false

Services

Services offered in Kubernetes.

true

true, false

namespace

Kubernetes operator is deployed in the namespace.

Any name given to a namespace.

NetBackup namespace.

cleanStaleCRDurationMinutes

Time duration after a CR job is invoked to clean stale CRs. The interval after which stale custom resource cleanup job is triggered.

24 hours

1440 minutes

ttlCRDurationMinutes

TTL CR duration

minutes

30240 minutes

livesnessProbeInitialDelay

Probe initial delay period.

minutes

60 minutes

livenessProbePeriodSeconds

Probe period.

seconds

80 seconds

checkNbcertdaemonStatusDurationMinutes

NB certificate daemon status duration.

minutes

1440 minutes

collectDataMoverLogs

Due to high memory usage in datamover logs collection, it is recommended to enable the logs only when you are debugging, troubleshooting, or restarting the pods.

Before enabling the logs for datamover, ensure to increase the memory limits for NetBackup Kubernetes pod to at least 2 GB or more. After the debugging or troubleshooting is done, you can reset to the previous or the default value.

true

true, false

maxRetentionDataMoverLogsInHours

Maximum retention for datamover logs.

24 hours

72 hours

maxRetentionDataMoverInHours

It removes all the datamover resources that are older than the specified time.

24 hours

24 hours

cleanStaleCertFilesDurationMinutes

The interval after which stale certificate files cleanup job is triggered.

60 minutes

1440 minutes

maxRetentionInDiscoveryCacheHours

It is the time in hours that decides the time interval for keeping the discovery cache.

24 hours

48 hours

pollingTimeoutInMinutes

It is the timeout that keeps retrying till it expires and fails.

15 minutes

15 minutes

pollingFrequencyInSecs

Polling frequency.

seconds

5 seconds

nbcertPrerequisteDirectoryAndFiles

NBCA prerequisites.

Certificate name

Certificate name

Prerequisites for backup from snapshot and restore from backup operations
  1. Label a valid storage class for NetBackup usage, add the following label: netbackup.veritas.com/default-csi-storage-class=true. If NetBackup labeled storage class is not found, then backup from snapshot job for metadata image and restore jobs fail with the error message No eligible storage classes found.

  2. Label a valid volume snapshot class for NetBackup usage, add the following label: netbackup.veritas.com/default-csi-volume-snapshot-class=true. If the NetBackup labeled VolumeSnapshotClass class is not found, then backup from snapshot job for metadata image and restore jobs fails with an error message: Failed to create snapshot of the Kubernetes namespace.

  3. Each primary server which runs the backup from snapshot and restore from backup copy operations, needs to create a separate ConfigMap with the primary server's name.

    In the following configmap.yaml example,

    • backupserver.sample.domain.com and mediaserver.sample.domain.com are the hostnames of NetBackup primary and media server.

    • IP: 10.20.12.13 and IP: 10.21.12.13 are the IP addresses of NetBackup primary and media server.

    apiVersion: v1
    data: 
      datamover.hostaliases: "10.20.12.13=backupserver.sample.domain.com, 
    10.21.12.13=mediaserver.sample.domain.com"
      datamover.properties: "image=reg.domain.com/datamover/image:latest"
      version: "1"
    kind: ConfigMap
    metadata: 
      name: backupserver.sample.domain.com
      namespace: kops-ns
    
    • Copy the configmap.yaml file details.

    • Open the text editor and past the yaml file details.

    • Then, save it with the yaml file extension to the home directory from where the Kubernetes clusters are accessible.

  4. Specify datamover.properties: image=reg.domain.com/datamover/image:latest with correct datamover image.

  5. Specify datamover.hostaliases, if the primary server and the media servers connected to the primary server have short names and host resolution failing from datamover. Provide a mapping of all hostnames to IPs for primary and media servers.

  6. To create the configmap.yaml file, run the command: kubectl create -f configmap.yaml.

  7. If Kubernetes operator is not able to resolve the primary server based on short names

    • While fetching the certificates, if you get a message:EXIT STATUS 8500: Connection with the web service was not established. Then, verify the hostname resolution state from the nbcert logs.

    • If the hostname resolution fails, then do the following:

      Update the kops deployment.yaml and add the hostAliases in the deployment.

    • In the following hostAliases example,

      • backupserver.sample.domain.com and mediaserver.sample.domain.com are the hostnames of NetBackup primary and media server.

      • IP: 10.20.12.13 and IP: 10.21.12.13 are the IP addresses of NetBackup primary and media server.

      hostAliases:
      - hostnames:
        - backupserver.sample.domain.com
        ip: 10.20.12.13
      - hostnames:
        -  mediaserver.sample.domain.com
        ip: 10.21.12.13
      

      Copy, paste the hostAliases example details in the text editor and add to the hostAliases in the deployment.

  8. Create a secret with fingerprint and authorization token. For more information, refer to the NetBackup™ Security and Encryption Guide

  9. Create a backupservercert request to fetch certificates. For more information, refer to the NetBackup™ Security and Encryption Guide.

DTE client settings supported in Kubernetes workload

Kubernetes supports only automatic mode on the client DTE settings. While Kubernetes datamover always follow the global DTE settings.