Restore data stores to a previous point in time or recover a lost cluster.

If you are recovering from a complete loss of the Kubernetes cluster, complete the following tasks before you begin.
  • Create a new cluster.
  • Install any drivers or controllers you had installed on the lost cluster.
  1. Open the Command Prompt and run the following commands to scale down Deployments and StatefulSets.

    kubectl scale --replicas=0 $(kubectl get deployment -o name -n NAMESPACE)

    kubectl scale --replicas=0 $(kubectl get statefulset -o name -n NAMESPACE)

    Where

    • NAMESPACE is the namespace created for the application.
  2. If necessary, reinstall Velero and ensure the backup configuration points to the backup storage location you used previously.
  3. Restore PostgreSQL, MongoDB and S3-compatible data stores. NI recommends restoring all data stores to a similar point in time.
  4. Use Velero to restore the Kubernetes objects. Refer to Restore Reference for more information.
    Note Restoring the Kubernetes objects also restores the following to the status at the time of the backup:
    • application configuration settings
    • the scale of your Deployments and StatefulSets

    Run the helm upgrade command with the updated values to reapply changes made since the time of the backup.