89 lines
4.8 KiB
Terraform
89 lines
4.8 KiB
Terraform
# =============================================================================
|
|
# locals.tf — все настраиваемые значения IOT_KAFKA_DEMO
|
|
# Kafka + ClickHouse + Superset + Flask (producer + consumer)
|
|
# =============================================================================
|
|
|
|
locals {
|
|
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
# Kafka
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
|
|
kafka_resource_name = "iot-kafka"
|
|
kafka_cpu = 500
|
|
kafka_memory = 1024
|
|
kafka_disk = 10
|
|
kafka_replicas = 1
|
|
kafka_version = "3.7"
|
|
kafka_timeout = "15m"
|
|
|
|
# Kafka — topic
|
|
kafka_topic_name = "iot-events"
|
|
kafka_topic_parts = 3
|
|
kafka_topic_repl = 1
|
|
|
|
# Kafka — user (общий для producer и consumer)
|
|
kafka_username = "iot-app"
|
|
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
# Flask — Producer
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
|
|
producer_resource_name = "iot-producer-v2"
|
|
producer_domain = "iotprod"
|
|
producer_git_path = "https://gitea.services.ngcloud.ru/Nail/tf-iot-producer.git"
|
|
producer_git_revision = "3b52098"
|
|
producer_cpu = 300
|
|
producer_memory = 256
|
|
producer_replicas = 1
|
|
producer_timeout = "11m"
|
|
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
# Flask — Consumer
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
|
|
consumer_resource_name = "iot-consumer-v2"
|
|
consumer_domain = "iotcons"
|
|
consumer_git_path = "https://gitea.services.ngcloud.ru/Nail/tf-iot-consumer.git"
|
|
consumer_git_revision = "3a9eef8"
|
|
consumer_cpu = 300
|
|
consumer_memory = 256
|
|
consumer_replicas = 1
|
|
consumer_timeout = "11m"
|
|
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
# Redis
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
|
|
redis_resource_name = "iot-redis"
|
|
redis_cpu = 300
|
|
redis_memory = 512
|
|
redis_disk = 5
|
|
redis_replicas = 1
|
|
redis_timeout = "11m"
|
|
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
# MongoDB
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
|
|
mongo_resource_name = "iot-mongo"
|
|
mongo_cpu = 300
|
|
mongo_memory = 512
|
|
mongo_disk = 5
|
|
mongo_replicas = 1
|
|
mongo_timeout = "11m"
|
|
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
# Node.js Dashboard
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
|
|
dashboard_resource_name = "iot-dashboard"
|
|
dashboard_domain = "iotdash"
|
|
dashboard_git_path = "https://gitea.services.ngcloud.ru/Nail/tf-iot-dashboard.git"
|
|
dashboard_git_revision = "42eb636"
|
|
dashboard_cpu = 300
|
|
dashboard_memory = 256
|
|
dashboard_replicas = 1
|
|
dashboard_timeout = "11m"
|
|
}
|