add platform.toml ConfigMap and mount in deployment
This commit is contained in:
@@ -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
|
||||
|
||||
12
06-stackops/platform.toml
Normal file
12
06-stackops/platform.toml
Normal file
@@ -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"
|
||||
Reference in New Issue
Block a user