87 lines
1.9 KiB
YAML
87 lines
1.9 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: modelrt-config
|
|
data:
|
|
config.yaml: |
|
|
postgres:
|
|
host: "192.168.1.101"
|
|
port: 5432
|
|
database: "demo"
|
|
user: "postgres"
|
|
password: "" # injected via env POSTGRES_PASSWORD
|
|
|
|
rabbitmq:
|
|
ca_cert_path: "/app/configs/certs/ca_certificate.pem"
|
|
client_key_path: "/app/configs/certs/modelrt_client_key.pem"
|
|
client_key_password: ""
|
|
client_cert_path: "/app/configs/certs/modelrt_client_cert.pem"
|
|
insecure_skip_verify: false
|
|
server_name: "rabbitmq-server"
|
|
user: ""
|
|
password: ""
|
|
host: "rabbitmq-service"
|
|
port: 5671
|
|
|
|
logger:
|
|
mode: "production"
|
|
level: "info"
|
|
filepath: ""
|
|
maxsize: 100
|
|
maxbackups: 5
|
|
maxage: 30
|
|
compress: false
|
|
loki:
|
|
endpoint: "" # Promtail handles log collection in K8s, direct push disabled
|
|
|
|
otel:
|
|
endpoint: "jaeger:4318"
|
|
insecure: true
|
|
|
|
ants:
|
|
parse_concurrent_quantity: 10
|
|
rtd_receive_concurrent_quantity: 10
|
|
|
|
async_task:
|
|
worker_pool_size: 10
|
|
queue_consumer_count: 2
|
|
max_retry_count: 3
|
|
retry_initial_delay: 1s
|
|
retry_max_delay: 5m
|
|
health_check_interval: 30s
|
|
|
|
locker_redis:
|
|
addr: "redis-service:6379"
|
|
password: ""
|
|
db: 1
|
|
poolsize: 50
|
|
dial_timeout: 10
|
|
read_timeout: 10
|
|
write_timeout: 10
|
|
|
|
storage_redis:
|
|
addr: "redis-service:6379"
|
|
password: ""
|
|
db: 0
|
|
poolsize: 50
|
|
dial_timeout: 10
|
|
read_timeout: 10
|
|
write_timeout: 10
|
|
|
|
base:
|
|
grid_id: 1
|
|
zone_id: 1
|
|
station_id: 1
|
|
|
|
service:
|
|
service_addr: ":8080"
|
|
service_name: "modelRT"
|
|
secret_key: "" # injected via env SERVICE_SECRET_KEY
|
|
deploy_env: "production"
|
|
|
|
dataRT:
|
|
host: "http://127.0.0.1"
|
|
port: 8888
|
|
polling_api: "datart/getPointData"
|
|
polling_api_method: "GET"
|