- j7node: k3s+3Pod(j7-postgres/j7-redis/j7-admin) 业务栈实测通过, admin/123456 登录 + 真实 tdc/sswflow 端点全绿; VM_DEPLOY.md 据实测校正 (IP 192.168.139.95、§3.1 库初始化、§8 验收矩阵、400 假象澄清) - TDS Bridge: 新增 TdsBridgeInternalController + SSWFLOW_BINDING.md(V0~V1.5 胶水) - TDC 去耦: 新增 TdcTdsClient/Noop/Http 抽象、K8sSandboxClient、audit、 TdcAdminApplication; 各 Controller 改走客户端 - TDS: License/Cert/Quota 分页 SQL bug 修复 - 其他: NaxComputeEngine 富化、pom 调整、AGENTS.md、.gitignore 排除 boot/dist
74 lines
1.9 KiB
YAML
74 lines
1.9 KiB
YAML
# Postgres 16-alpine(VM j7node 的 SSWFlow 数据平面)
|
||
# 监听 0.0.0.0:5432,供 ns j7 内 admin pod 通过 service 访问
|
||
apiVersion: apps/v1
|
||
kind: StatefulSet
|
||
metadata:
|
||
name: j7-postgres
|
||
namespace: j7
|
||
spec:
|
||
serviceName: j7-postgres
|
||
replicas: 1
|
||
selector:
|
||
matchLabels:
|
||
app: j7-postgres
|
||
template:
|
||
metadata:
|
||
labels:
|
||
app: j7-postgres
|
||
spec:
|
||
containers:
|
||
- name: postgres
|
||
image: crpi-yscq976uwza88qap.cn-shenzhen.personal.cr.aliyuncs.com/ssw188/postgres:16-alpine
|
||
imagePullPolicy: IfNotPresent
|
||
ports:
|
||
- containerPort: 5432
|
||
env:
|
||
- name: POSTGRES_USER
|
||
value: dacli
|
||
- name: POSTGRES_PASSWORD
|
||
value: dacli123
|
||
- name: POSTGRES_DB
|
||
value: j7_node1
|
||
- name: PGDATA
|
||
value: /var/lib/postgresql/data/pgdata
|
||
resources:
|
||
requests:
|
||
cpu: 200m
|
||
memory: 1Gi
|
||
limits:
|
||
cpu: 2
|
||
memory: 3Gi
|
||
readinessProbe:
|
||
exec:
|
||
command: ["pg_isready", "-U", "dacli", "-d", "j7_node1"]
|
||
initialDelaySeconds: 10
|
||
periodSeconds: 5
|
||
volumeMounts:
|
||
- name: data
|
||
mountPath: /var/lib/postgresql/data
|
||
- name: init-dbs
|
||
mountPath: /docker-entrypoint-initdb.d/00-create-dbs.sql
|
||
subPath: 00-create-dbs.sql
|
||
volumes:
|
||
- name: data
|
||
persistentVolumeClaim:
|
||
claimName: j7-pg-data
|
||
- name: init-dbs
|
||
configMap:
|
||
name: j7-pg-init
|
||
items:
|
||
- key: 00-create-dbs.sql
|
||
path: 00-create-dbs.sql
|
||
---
|
||
apiVersion: v1
|
||
kind: Service
|
||
metadata:
|
||
name: j7-postgres
|
||
namespace: j7
|
||
spec:
|
||
type: ClusterIP
|
||
selector:
|
||
app: j7-postgres
|
||
ports:
|
||
- port: 5432
|
||
targetPort: 5432 |