Files
ssw-mvp/scard/code/bin/k8s/30-admin.yaml
T
admin 3247e9fd15 init: ssw-mvp initial commit
- boot/ (Java/Maven, JNPF 7.0) — 移除旧的 boot/.git,源码直接纳入仓库
- web/ (Vue 3 + Vite + Ant Design Vue, pnpm)
- docs/, scard/, nax/
- refs/INDEX.md + refs/国标/(其余 refs/* 开源子仓库不纳入)
- 已忽略: connector_data/, jweb/, log/, web/{dist,node_modules,.pnpm}, boot/*/target/, .DS_Store, .idea, .vscode
2026-08-05 18:29:12 +08:00

92 lines
2.5 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ssw-admin jar 通过 hostPath 挂进 pod(macOS home 在 VM 内是真实路径)
# 因为 jar 385MB 频繁重建不适合 bake 进 image,hostPath 最灵活
apiVersion: apps/v1
kind: Deployment
metadata:
name: j7-admin
namespace: j7
labels:
app: j7-admin
spec:
replicas: 1
selector:
matchLabels:
app: j7-admin
template:
metadata:
labels:
app: j7-admin
spec:
containers:
- name: admin
image: crpi-yscq976uwza88qap.cn-shenzhen.personal.cr.aliyuncs.com/ssw188/liberica-openjre-rocky:21
imagePullPolicy: IfNotPresent
command: ["java"]
args:
- "-Xmx1500m"
- "-Dspring.profiles.active=j7node"
- "-DDB_HOST=j7-postgres.j7.svc.cluster.local"
- "-DDB_PORT=5432"
- "-DREDIS_HOST=j7-redis.j7.svc.cluster.local"
- "-DREDIS_PORT=6379"
- "-Dfile.encoding=UTF-8"
- "-jar"
- "/app/ssw-admin-7.0.0-RELEASE.jar"
ports:
- containerPort: 33000
resources:
requests:
cpu: 500m
memory: 1Gi
limits:
cpu: 2
memory: 2Gi
readinessProbe:
httpGet:
path: /api/oauth/Login
port: 33000
initialDelaySeconds: 60
periodSeconds: 10
failureThreshold: 6
livenessProbe:
httpGet:
path: /api/oauth/Login
port: 33000
initialDelaySeconds: 120
periodSeconds: 30
volumeMounts:
- name: jar
mountPath: /app/ssw-admin-7.0.0-RELEASE.jar
subPath: ssw-admin-7.0.0-RELEASE.jar
- name: config
mountPath: /config
- name: logs
mountPath: /app/logs
volumes:
- name: jar
hostPath:
path: /Users/xs/Desktop/ssw/boot/ssw-admin/target
type: Directory
- name: config
hostPath:
path: /Users/xs/Desktop/ssw/boot/ssw-admin/target/config
type: Directory
- name: logs
hostPath:
path: /var/log/j7node/admin
type: DirectoryOrCreate
---
# NodePort 让宿主机 / 外部可以访问 admin
apiVersion: v1
kind: Service
metadata:
name: j7-admin
namespace: j7
spec:
type: NodePort
selector:
app: j7-admin
ports:
- port: 33000
targetPort: 33000
nodePort: 31000