Changing registry deployment mode
🌐 This document is available in both English and Ukrainian. Use the language toggle in the top right corner to switch between versions. |
1. Overview
Deployment mode is a parameter that indicates the environment in which the registry regulations are deployed. It allows distinguishing between the production environment and the development environment, as well as configuring the settings according to the needs of each. The registry Platform supports two deployment modes: development
and production
.
The development mode
The development
mode involves deployment with settings for convenience in development and debugging.
The production
mode involves optimized deployment for maximum productivity, stability, and security. It excludes additional debugging tools, provides optimal configuration and settings for real-world operation on target clusters.
In the production mode, the following components involved in the registry development processes are not deployed:
|
Registry development component |
Production use |
Public Endpoint (Route) |
---|---|---|
|
Depends on configuration |
Available |
|
Available |
Not available |
|
Not available |
Not available |
|
Not available |
Not available |
|
Not available |
Not available |
|
Not available |
Not available |
|
Not available |
Not available |
|
Not available |
Not available |
|
Not available |
Not available |
|
Available |
Not available |
|
Not available |
Not available |
|
Available |
Not available |
This table provides recommendations for using components and their deployment availability in a production environment. Services such as |
2. Configuration
To change the registry deployment mode — deploymentMode
— from production
to development
, follow these steps:
-
Open the OpenShift console, find the Control Plane project, and navigate to the
gerrit
component.Central Gerrit link:https://gerrit-control-plane.<dns-wildcard>
-
Find the repository with your registry and open the deploy-templates/values.yaml file.
-
Locate the
deploymentMode: production
variable and change its value todeploymentMode: development
.The deployment mode settings appear as follows:
deploy-templates/values.yamlglobal: deploymentMode: development
-
(Optional) If you need to deploy the registry without a specific portal (for example, Citizen portal), exclude it from the settings as follows:
deploy-templates/values.yamlglobal: excludePortals: ['citizen']
By default, the
excludePortals
variable is absent, which indicates the deploying of all portals:deploy-templates/values.yamlglobal: excludePortals: ['']
When excluding the Citizen portal from the deployment process, the following services are also not deployed:
-
citizen-portal
-
ddm-notification-service
-
user-service-api
-
user-service-persistence
-
-
Commit the changes with
git commit
, apply the changes to themaster
branch, and initiate the registry deployment.