Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

Commit 6c0e9fd

Browse files
committed
Kimi minimal: add station folio-spec + SA
1 parent c957964 commit 6c0e9fd

2 files changed

Lines changed: 136 additions & 0 deletions

File tree

gitops/apps/nldoc/kimi-minimal/deployments.yaml

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,6 +1125,137 @@ items:
11251125
- name: tmp
11261126
emptyDir: {}
11271127

1128+
# Station: folio-spec
1129+
- apiVersion: apps/v1
1130+
kind: Deployment
1131+
metadata:
1132+
name: kimi-station-folio-spec
1133+
labels:
1134+
app.kubernetes.io/name: kimi
1135+
app.kubernetes.io/instance: kimi
1136+
app.kubernetes.io/component: station.folio-spec
1137+
spec:
1138+
replicas: 1
1139+
selector:
1140+
matchLabels:
1141+
app.kubernetes.io/name: kimi
1142+
app.kubernetes.io/instance: kimi
1143+
app.kubernetes.io/component: station.folio-spec
1144+
template:
1145+
metadata:
1146+
labels:
1147+
app.kubernetes.io/name: kimi
1148+
app.kubernetes.io/instance: kimi
1149+
app.kubernetes.io/component: station.folio-spec
1150+
spec:
1151+
serviceAccountName: kimi-station--folio-spec
1152+
automountServiceAccountToken: false
1153+
securityContext:
1154+
fsGroup: 1001
1155+
fsGroupChangePolicy: Always
1156+
containers:
1157+
- name: station
1158+
image: registry.gitlab.com/logius/nldoc/worker/stations:13.0.1
1159+
imagePullPolicy: IfNotPresent
1160+
env:
1161+
- name: NODE_TLS_REJECT_UNAUTHORIZED
1162+
value: "0"
1163+
- name: AMQP_HOST
1164+
value: rabbitmq.nldoc.svc.cluster.local
1165+
- name: AMQP_PROTOCOL
1166+
value: amqp
1167+
- name: AMQP_PORT
1168+
value: "5672"
1169+
- name: AMQP_USER
1170+
valueFrom:
1171+
secretKeyRef:
1172+
name: rabbitmq-default-user
1173+
key: username
1174+
- name: AMQP_USERNAME
1175+
valueFrom:
1176+
secretKeyRef:
1177+
name: rabbitmq-default-user
1178+
key: username
1179+
- name: AMQP_PASS
1180+
valueFrom:
1181+
secretKeyRef:
1182+
name: rabbitmq-default-user
1183+
key: password
1184+
- name: AMQP_PASSWORD
1185+
valueFrom:
1186+
secretKeyRef:
1187+
name: rabbitmq-default-user
1188+
key: password
1189+
- name: STATION_CONFIGURATION
1190+
value: |
1191+
{"input":{"aggregation":{"countAttribute":"pageCount","indexing":"one-based"},"requiredAttributes":[{"behavior":"await_all","name":"content"}],"type":"folio"},"output":{"type":"spec"},"workerResult":"fileWorkerResult"}
1192+
- name: POSTGRES_HOST
1193+
value: nldoc-postgres.nldoc.svc.cluster.local
1194+
- name: POSTGRES_PORT
1195+
value: "5432"
1196+
- name: POSTGRES_DB
1197+
value: nldoc
1198+
- name: POSTGRES_USER
1199+
valueFrom:
1200+
secretKeyRef:
1201+
name: nldoc.nldoc-postgres.credentials.postgresql.acid.zalan.do
1202+
key: username
1203+
- name: POSTGRES_PASSWORD
1204+
valueFrom:
1205+
secretKeyRef:
1206+
name: nldoc.nldoc-postgres.credentials.postgresql.acid.zalan.do
1207+
key: password
1208+
- name: POSTGRES_SCHEMA
1209+
value: public
1210+
- name: POSTGRES_SSL
1211+
value: require
1212+
- name: PGSSLMODE
1213+
value: require
1214+
- name: POSTGRES_POOL_SIZE
1215+
value: "20"
1216+
- name: S3_HOST
1217+
value: minio.nldoc.svc.cluster.local
1218+
- name: S3_PORT
1219+
value: "9000"
1220+
- name: S3_BUCKET_NAME
1221+
value: files
1222+
- name: S3_USE_SSL
1223+
value: "false"
1224+
- name: S3_SCHEME
1225+
value: http
1226+
- name: S3_FORCE_PATH_STYLE
1227+
value: "true"
1228+
- name: POSTGRESQL_USERNAME
1229+
valueFrom:
1230+
secretKeyRef:
1231+
name: nldoc.nldoc-postgres.credentials.postgresql.acid.zalan.do
1232+
key: username
1233+
- name: POSTGRESQL_PASSWORD
1234+
valueFrom:
1235+
secretKeyRef:
1236+
name: nldoc.nldoc-postgres.credentials.postgresql.acid.zalan.do
1237+
key: password
1238+
resources:
1239+
requests:
1240+
cpu: 100m
1241+
memory: 128Mi
1242+
limits:
1243+
cpu: 150m
1244+
memory: 192Mi
1245+
securityContext:
1246+
allowPrivilegeEscalation: false
1247+
readOnlyRootFilesystem: true
1248+
runAsNonRoot: true
1249+
runAsUser: 1001
1250+
runAsGroup: 1001
1251+
volumeMounts:
1252+
- name: tmp
1253+
mountPath: /tmp
1254+
subPath: tmp-dir
1255+
volumes:
1256+
- name: tmp
1257+
emptyDir: {}
1258+
11281259
# Station: page-content
11291260
- apiVersion: apps/v1
11301261
kind: Deployment

gitops/apps/nldoc/kimi-minimal/sa.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ items:
2626
metadata:
2727
name: kimi-station--pdf-folio
2828
namespace: nldoc
29+
- apiVersion: v1
30+
kind: ServiceAccount
31+
metadata:
32+
name: kimi-station--folio-spec
33+
namespace: nldoc
2934
- apiVersion: v1
3035
kind: ServiceAccount
3136
metadata:

0 commit comments

Comments
 (0)