Updating navigation API services
You can update navigation services together with its data or without it. To download data only, you need to update the Navi-Castle service only. In other cases, update all required navigation services.
Update Navi-Castle service
-
Fetch new installation artifacts.
- To update only the service image, add the
--only-apps
flag after thepull
command. - To update only data, add the
--only-data
flag after thepull
command. - To update both service and data, run the command without flags above.
To get artifacts for the navigation services only, add
--services=navi
after thepull
command with any of the following values:--services=navi
to get artifacts for navigation services--services=navi,navi-restrictions
to get artifacts for navigation services and road closures data (if Restrictions API is not installed)--services=navi-restrictions
to get road closures data only (if Restrictions API is not installed)
Without this parameter artifacts for all services will be fetched by default. See the reference of DGCLI command-line arguments.
- To update only the service image, add the
-
Copy the path to a new manifest file from the command output and set it as a value to the
dgctlStorage.manifest
parameter in thevalues-castle.yaml
configuration file. For more information, see the service installation instructions.Important
You can configure the process of importing new data for Navi-Castle. Use the
importer
settings group of the configuration file. If during a regular update of the navigation services you do not want to import new data, specify the manifest used for the previous import. In other cases, using a new manifest is recommended. -
Check out breaking changes. If necessary, update other settings in the
values-castle.yaml
configuration file. -
Run the command to update the service:
helm upgrade --version=1.21.0 --atomic --values ./values-castle.yaml navi-castle 2gis-on-premise/navi-castle
Update Navi-Back service
Do the following steps for each Navi-Back instance installed:
-
Fetch new installation artifacts.
To get artifacts for the navigation services only, add
--services=navi
after thepull
command. Without this parameter artifacts for all services will be fetched by default.See the reference of DGCLI command-line arguments.
-
Check out breaking changes. If necessary, update settings in the
values-back.yaml
configuration file. For more information, see the service installation instructions. -
Run the command to update the service:
helm upgrade --version=1.21.0 --atomic --values ./values-back.yaml navi-back 2gis-on-premise/navi-back
Update Navi-Router service
-
Fetch new installation artifacts.
To get artifacts for the navigation services only, add
--services=navi
after thepull
command. Without this parameter artifacts for all services will be fetched by default.See the reference of DGCLI command-line arguments.
-
Check out breaking changes. If necessary, update settings in the
values-router.yaml
configuration file. For more information, see the service installation instructions. -
Run the command to update the service:
helm upgrade --version=1.21.0 --atomic --values ./values-router.yaml navi-router 2gis-on-premise/navi-router
Update Navi-Front service
-
Fetch new installation artifacts.
To get artifacts for the navigation services only, add
--services=navi
after thepull
command. Without this parameter artifacts for all services will be fetched by default.See the reference of DGCLI command-line arguments.
-
Check out breaking changes. If necessary, update settings in the
values-front.yaml
configuration file. For more information, see the service installation instructions. -
Run the command to update the service:
helm upgrade --version=1.21.0 --atomic --values ./values-front.yaml navi-front 2gis-on-premise/navi-front
Update Distance Matrix Async API service
-
Fetch new installation artifacts.
To get artifacts for the navigation services only, add
--services=navi
after thepull
command. Without this parameter artifacts for all services will be fetched by default.See the reference of DGCLI command-line arguments.
-
Check out breaking changes. If necessary, update settings in the
values-navi-async-matrix.yaml
configuration file. For more information, see the service installation instructions. -
Run the command to update the service:
helm upgrade --version=1.21.0 --atomic --values ./values-navi-async-matrix.yaml navi-async-matrix 2gis-on-premise/navi-async-matrix
Update Restrictions API service
-
(Recommended) Back up data used by the service.
-
Fetch new installation artifacts.
To get artifacts for the navigation services only, add
--services=navi
after thepull
command. Without this parameter artifacts for all services will be fetched by default.See the reference of DGCLI command-line arguments.
-
Check out breaking changes. If necessary, update settings in the
values-restrictions.yaml
configuration file. For more information, see the service installation instructions. -
Run the command to update the service:
helm upgrade --version=1.21.0 --atomic --values ./values-restrictions.yaml navi-restrictions 2gis-on-premise/navi-restrictions