2.0 KiB
2.0 KiB
Configuration
Environment Variables
| Variable | Description | Default |
|---|---|---|
APP_ENV |
Application environment | local |
LOG_LEVEL |
Logging level | INFO |
Configuration Files
Configuration files are mounted at /etc/onlinesales/config/schedulerService/.
schedulerService.cfg
Main service configuration file.
LOG_CONFIG_FILE=/etc/onlinesales/config/schedulerService/log.cfg
DB_CONFIG_FILE=/etc/onlinesales/config/schedulerService/hibernate.cfg.xml
authConfig.cfg
Authentication configuration for ACL.
{
"authEnable": false,
"authServiceUrl": "http://hades-service/hades/authorize"
}
hibernate.cfg.xml
Database connection configuration (injected via secrets).
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.driver_class">com.mysql.cj.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://HOST:PORT/os_scheduling_db</property>
<property name="connection.username">USERNAME</property>
<property name="connection.password">PASSWORD</property>
<property name="dialect">org.hibernate.dialect.MySQL5Dialect</property>
</session-factory>
</hibernate-configuration>
Helm Values
Production (values.yaml)
- Replicas: 2
- Resource limits enabled
- Autoscaling enabled
- PDB enabled
- MySQL subchart disabled (external DB)
Local (values-local.yaml)
- Replicas: 1
- No resource limits
- Autoscaling disabled
- Ingress enabled for local access
- MySQL subchart enabled
Database Configuration
| Parameter | Production | Local |
|---|---|---|
| Host | External MySQL | schedulerservice-mysql |
| Port | 3306 | 3306 |
| Database | os_scheduling_db |
os_scheduling_db |
| User | (from secret) | scheduler_user |
| Password | (from secret) | localpassword |