Installing Foresight Mobile Platform from External Repository

To install Foresight Mobile Platform from the external repository located at: https://fmp-registry.fsight.cloud on the cluster deployed on Deckhouse, execute the operations on the first main cluster node:

  1. Download the archive cluster_charts_v25.03.<version number>.zip and get access to the external repository.

NOTE. To get the archive and access to the repository, request technical support by sending an email to support@fsight.ru or technical support services that are available after registration at the website.

  1. Unpack the archive cluster_charts_v25.03.<version number>.zip and create the stackgres and fmp namespaces in the unpacked folder:

kubectl create namespace stackgres
kubectl create namespace fmp
kubectl create rolebinding serviceaccounts-view --namespace=stackgres --clusterrole=view --group=system:serviceaccounts:fmp
kubectl label ns fmp security.deckhouse.io/pod-policy-action=warn
kubectl label ns fmp security.deckhouse.io/pod-policy=restricted

  1. Change value of the storageClass parameter to longhorn in the ./fmp/values.production.yaml file contained in the unpacked archive:

...
data:
  replicaCount: 3
  persistence:
    size: 8Gi
    storageClass: longhorn
...
sgClusters:
  maindb:
    instanceProfile: "size-s"
    instances: 2
    pods:
      disableConnectionPooling: false
      disableMetricsExporter: false
      disablePostgresUtil: false
      persistentVolume:
        storageClass: longhorn
...
  cachedb:
    instanceProfile: "size-s"
    instances: 2
    pods:
      disableConnectionPooling: false
      disableMetricsExporter: false
      disablePostgresUtil: false
      persistentVolume:
        storageClass: longhorn
...

  1. Create a secret named stackgres-registry to store data of the StackGres operator:

kubectl create secret docker-registry stackgres-registry -n stackgres --docker-server=fmp-registry.fsight.cloud --docker-username=<user name> --docker-password=<password>

  1. Change the installation folder for StackGres used as a service for creating databases on mobile platform server. To do this, in the stackgres-operator/values.yaml file change value of the containerRegistry parameter to fmp-registry.fsight.cloud and specify name of the created secret in the imagePullSecrets parameter:

global:
  imagePullSecrets:
    - stackgres-registry

  1. Set the StackGres statement to provide mobile platform work in the cluster. Execute the command in the folder root of the unpacked archive:

helm install -n stackgres stackgres-operator ./stackgres-operator/stackgres-operator.tgz -f ./stackgres-operator/values.yaml

  1. Create a secret named fmp-registry to store mobile platform image data:

kubectl create secret docker-registry fmp-registry -n fmp --docker-server=fmp-registry.fsight.cloud --docker-username=<user name> --docker-password=<password>

  1. Open the fmp/values.production.yaml file and specify name of the created secret in the imagePullSecrets parameter:

global:
  imagePullSecrets:
    - fmp-registry

  1. Install Foresight Mobile Platform. Execute the command in the folder root of the unpacked archive:

helm install fmp ./fmp/chart -n fmp -f ./fmp/values.production.yaml --set django.deployment.image.registry=fmp-registry.fsight.cloud/fmp --set global.imageRegistry=fmp-registry.fsight.cloud/fmp --set django.deployment.image.tag=v25.03.<version number> --set celeryexporter.image.tag=v25.03.<version number> --set nginx.ingress.hostname=<mobile platform server host> --set fluentd.enabled=true --timeout 30m0s

In the <mobile platform server host> substitution specify name of the server, at which the mobile platform will be available.

If Foresight Mobile Platform is to be installed by a different ServiceAccount account, add the django.deployment.serviceAccountName parameter to the command:

--set django.deployment.serviceAccountName=<ServiceAccount name>

If a different account is used, the standard account and roles of ServiceAccount will not be created.

To set up additional parameters on installing Foresight Mobile Platform, see the sections:

After executing the operations, Foresight Mobile Platform is installed in the cluster and is available via the address specified in the nginx.ingress.hostname parameter.

See also:

Cluster Configuration | Preparation and Deployment of Fault-Tolerant Cluster Based on Deckhouse | Installing Foresight. Mobile Platform from Docker Image Local Storage