From 96065d8419bad1a37c894e71a701b8073b2088dc Mon Sep 17 00:00:00 2001 From: stackops Date: Thu, 9 Apr 2026 17:20:06 +0300 Subject: [PATCH] add platform.toml ConfigMap and mount in deployment --- 06-stackops/deployment.yaml | 10 +++++++++- 06-stackops/platform.toml | 12 ++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 06-stackops/platform.toml diff --git a/06-stackops/deployment.yaml b/06-stackops/deployment.yaml index 872e259..4913772 100644 --- a/06-stackops/deployment.yaml +++ b/06-stackops/deployment.yaml @@ -16,7 +16,7 @@ spec: serviceAccountName: stackops-api containers: - name: api - image: git.nodeup.ru/stackops/stackops-api:v1 + image: git.nodeup.ru/stackops/stackops-api:v8 imagePullPolicy: Always ports: - containerPort: 8080 @@ -30,9 +30,14 @@ spec: key: api-token - name: DB_PATH value: /data/stackops.db + - name: PLATFORM_CONFIG + value: /config/platform.toml volumeMounts: - name: data mountPath: /data + - name: platform + mountPath: /config + readOnly: true livenessProbe: httpGet: path: / @@ -49,6 +54,9 @@ spec: - name: data persistentVolumeClaim: claimName: stackops-data + - name: platform + configMap: + name: stackops-platform --- apiVersion: v1 kind: Service diff --git a/06-stackops/platform.toml b/06-stackops/platform.toml new file mode 100644 index 0000000..44c18d6 --- /dev/null +++ b/06-stackops/platform.toml @@ -0,0 +1,12 @@ +# Platform-level shared infrastructure config. +# Describes existing broker clusters — StackOps injects connection +# details as env vars into services that declare [messaging.*] in stackfile.toml. +# +# To add a new broker: add a section here, apply the ConfigMap, +# and restart stackops-api. + +[kafka.main] +brokers = "kafka.shared.svc:9092" + +[nats.default] +url = "nats://nats.shared.svc:4222"