add platform.toml ConfigMap and mount in deployment

This commit is contained in:
stackops
2026-04-09 17:20:06 +03:00
parent af6696279c
commit 96065d8419
2 changed files with 21 additions and 1 deletions

View File

@@ -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