Updating Cluster Configuration of Foresight Mobile Platform

To update cluster configuration of Foresight Mobile Platform:

  1. Make sure that the Helm package manager is installed.

  2. Create a backup of the system using the make_cluster_backup.sh script contained in the archive cluster_charts_v25.03.<version number>.zip:

./make_cluster_backup.sh

After this, the cluster_backup_<date and time of backup creation> folder is created in the folder with the script, containing backup files of PostgreSQL databases and the MinIO local file storage.

  1. Create a backup of technical logs using the make_cluster_logs_backup.sh script contained in the archive cluster_charts_v25.03.<version number>.zip:

./make_cluster_logs_backup.sh

After this the logs_files folder is created in the folder with the script containing Elasticsearch technical log files.

  1. Delete the current version of Foresight Mobile Platform and the StackGres operator:

helm uninstall fmp -n ${CLUSTER_NAMESPACE} --timeout 30m0s
kubectl delete pvc -n ${CLUSTER_NAMESPACE} --all
kubectl delete job -n ${CLUSTER_NAMESPACE} --all
kubectl delete deployment -n ${CLUSTER_NAMESPACE} --all
kubectl delete secrets -n ${CLUSTER_NAMESPACE} --all
helm uninstall -n stackgres stackgres-operator
kubectl get crds -oname | grep "stackgres.io" | xargs kubectl delete
kubectl delete ns fmp stackgres ongres fmp-monitoring

  1. Install the latest product version from external repository at: https://fmp-registry.fsight.cloud, based on one of the orchestration systems:

NOTE. To access the repository, contact technical support by sending a request to support@fsight.ru or technical support services that are available after registration at the website.

  1. Restore the system from backup using the restore_cluster_backup.sh script contained in the archive cluster_charts_v25.03.<version number>.zip:

./restore_cluster_backup.sh

  1. Restore technical logs from backup using the restore_cluster_logs_backup.sh script contained in the archive cluster_charts_v25.03.<version number>.zip:

./restore_cluster_logs_backup.sh

  1. Execute the script:

NAMESPACE=fmp
DASHBOARD_POD=$(kubectl -n ${NAMESPACE} get pod -l app=dashboard -o jsonpath="{.items[0].metadata.name}")
kubectl exec -i -t -n ${NAMESPACE} $DASHBOARD_POD -c dashboard -- init.sh

After executing the operations, Foresight Mobile Platform is updated.

See also:

Installing and Setting Up Foresight Mobile Platform | Cluster Configuration