When you delete an application and delete the namespace the volume is still recoverable.
This will only work when a
nfs-provisioner-retain
StorageClass is chosen.
- Navigate to the cluster level
- Click "Storage" and then "Persistent Volumes"
- Search for the name of the application e.g. "gemtc"
- Copy the volume Name
- On the cluster level you can fire up a terminal using
Launch kubectl
- Execute
kubectl patch pv #volume-name# -p '{"spec":{"claimRef": null}}'
Use the copied volume name, not volume claim name
- Navigate to the project you want to deploy into
- Navigate to "Resources" then "Workloads" then "Volumes"
- Click on "Add Volume", give it a Name, select the correct Namespace and select Use existigin persistent volume
- Search for the volume name and select it
- Then redeploy the instance with an existing volume claim pointing to the one you just created.
IMPORTANT: be sure you save the database password! You will need it when you redeploy the instance. Copy the backup dump to the container.
rancher kubectl cp ~/backups/2022-01-13_test_jena_es_backup.n4.gz addis-jena-es:/tmp/. -n addis
Shell into the pod
rancher kubectl exec -it pod/addis-jena-es bash -n addis
Drop the existing database
dropdb database -U rootUser
Fill password for postgres root-user
Create the database again
createdb database -U applicationUser
Fill in password for application user and load the dump.
psql database -U applicationUser < /tmp/database-dump.sql
Apache Jena 2.13 is needed Copy the backup dump to the container.
rancher kubectl cp ~/backups/2022-01-13_test_jena_es_backup.n4.gz addis-jena-es:/tmp/. -n addis
Shell into the pod
rancher kubectl exec -it pod/addis-jena-es bash -n addis
Get Apache Jena
wget http://archive.apache.org/dist/jena/binaries/apache-jena-2.13.0.zip
Unzip the archive
unzip apache-jena-2.13.0.zip
Remove the lock and cd to /
rm -rf /DB/
mkdir /DB/
cd /
To recover Jena you need the tdbloader command
/#jena-path#/bin/tdbloader --loc=DB /#backup-path#/$(date +%Y-%m-%d)_test_jena_es_backup.n4.gz
The --loc=DB is sub-directory location where you at.
You can add a a registry to each project to be able to use the imagePullSecret
value in the chart. This is needed for the Enterprise edition of the Addis platform.
- Click on "Resources"
- Click on "Secrets"
- Click on "Registry secrets"
- Select "Custom"
- Fill in "https://registry.molgenis.org/repository/helm"
- Fill in "Username" and "Password"