Backing up and restoring

You can back up and restore Suite License Service.

Procedure

  1. To back up Suite License Service, complete the following steps:
    1. Back up a snapshot of all MongoDB collections.
    2. Save the Suite License Service certificate authority (CA) key pair secret.
    3. Make a note of the licenseId and registrationKey by entering the following command:
      oc get -n ibm-sls licenseservice/sls
      
      NAME   VERSION   STATUS   INITIALIZED   LICENSEID      REGISTRATIONKEY                        AGE
      sls    3.4.1     Ready    Initialized   0242ac110002   0121e6f8-a9ac-5d84-825f-ac455803d3c4   28d
  2. To restore Suite License Service, complete the following steps:
    1. Restore the all MongoDB collections.
    2. Restore the Suite License Service CA keypair secret and set the ca.secretName value in the LicenseService CR.
    3. Create a secret that is called sls-bootstrap with the licenseId and registrationKey set:
      apiVersion: v1
      kind: Secret
      metadata:
        name: sls-bootstrap
      stringData:
        licensingId: 0242ac110002
        registrationKey: 0121e6f8-a9ac-5d84-825f-ac455803d3c4
    4. Reapply the LicenseService CR.
    5. Upload the license file again.
    6. Reregister application suites.