This guide provides a step-by-step process for setting up and configuring the Runtime Manager module, including database, Kafka, and OAuth2 authentication settings to manage runtime and build configurations.
Environment Variable | Description | Example Value |
---|---|---|
SPRING_APPLICATION_NAME | Service identifier used for service discovery and logging | runtime-manager |
application-manager -> must be changed to
runtime-manager (valid for < 4.7.5 releases).Starting with 4.7.5 version this property is no longer needed.Environment Variable | Description | Example Value |
---|---|---|
CONFIG_PROFILE | Spring configuration profiles to activate | k8stemplate_v2 |
FLOWX_ENVIRONMENT_NAME | Environment identifier (dev, staging, prod, etc.) | pr |
LOGGING_CONFIG_FILE | Path to logging configuration file | logback-spring.xml |
MULTIPART_MAX_FILE_SIZE | Maximum file size for uploads | 25MB |
MULTIPART_MAX_REQUEST_SIZE | Maximum total request size | 25MB |
Environment Variable | Description | Example Value |
---|---|---|
SPRING_DATASOURCE_URL | JDBC URL for PostgreSQL connection | jdbc:postgresql://postgresql:5432/app_manager |
SPRING_DATASOURCE_USERNAME | PostgreSQL username | flowx |
SPRING_DATASOURCE_PASSWORD | PostgreSQL password | sensitive |
Environment Variable | Description | Example Value |
---|---|---|
SPRING_DATA_MONGODB_URI | URI for MongoDB connection | mongodb://${DB_USERNAME}:${DB_PASSWORD}@mongodb-0.mongodb-headless,mongodb-1.mongodb-headless,mongodb-arbiter-0.mongodb-headless:27017/${DB_NAME}?retryWrites=false |
DB_NAME | MongoDB database name | app-runtime |
DB_USERNAME | MongoDB username | app-runtime |
DB_PASSWORD | MongoDB password | sensitive |
Environment Variable | Description | Example Value |
---|---|---|
SPRING_DATA_REDIS_HOST | Redis server hostname | redis-master |
SPRING_DATA_REDIS_PASSWORD | Redis password | sensitive |
SPRING_DATA_REDIS_PORT | Redis server port | 6379 |
SPRING_REDIS_TTL | Default Redis TTL in milliseconds | 5000000 |
Environment Variable | Description | Example Value |
---|---|---|
SPRING_KAFKA_BOOTSTRAPSERVERS | Kafka broker addresses | kafka-flowx-kafka-bootstrap:9092 |
KAFKA_TOPIC_NAMING_ENVIRONMENT | Environment prefix for Kafka topics |
Environment Variable | Description | Example Value |
---|---|---|
KAFKA_OAUTH_CLIENT_ID | OAuth client ID for Kafka | flowx-service-client |
KAFKA_OAUTH_CLIENT_SECRET | OAuth client secret for Kafka | flowx-service-client-secret |
KAFKA_OAUTH_TOKEN_ENDPOINT_URI | OAuth token endpoint for Kafka | {baseUrl}/auth/realms/kafka-authz/protocol/openid-connect/token |
Environment Variable | Description | Example Value |
---|---|---|
SECURITY_OAUTH2_BASE_SERVER_URL | OAuth2 server base URL | {baseUrl}/auth |
SECURITY_OAUTH2_REALM | OAuth2 realm name | flowx |
SECURITY_OAUTH2_CLIENT_CLIENT_ID | OAuth2 client ID | flowx-platform-authorize |
SECURITY_OAUTH2_CLIENT_CLIENT_SECRET | OAuth2 client secret | sensitive |
SECURITY_OAUTH2_SERVICE_ACCOUNT_ADMIN_CLIENT_SECRET | Admin service account secret | sensitive |
Environment Variable | Description | Example Value |
---|---|---|
APPLICATION_FILE_STORAGE_S3_SERVER_URL | S3-compatible storage server URL | http://minio:9000 |
APPLICATION_FILE_STORAGE_S3_ACCESS_KEY | S3 access key | sensitive |
APPLICATION_FILE_STORAGE_S3_SECRET_KEY | S3 secret key | sensitive |
Note: Replace placeholders in environment variables with the appropriate values for your environment before starting the service.