Service 与端口
一张表放全部 Service:名字、端口、要不要公网、探针打哪条路径。
← 文档索引
所有 Service 都是 ClusterIP,对外端口统一 80,容器端口统一 3000——例外只有
tethys-shipping(.NET,缺省 8080,见下)。配置里填的 host 一律是 Service 名,
port 一律是 80(跨命名空间时用 <service>.<租户>.svc.cluster.local)。
| 服务 | 产品线 | 容器端口 | 对外 | 探针 / 健康路径 | 有状态 |
|---|---|---|---|---|---|
rhea-email |
rhea | 3000 | 仅集群内 | /api/v1/livez、/api/v1/readyz |
否 |
rhea-payment |
rhea | 3000 | 仅集群内(经网关) | /livez、/readyz |
PostgreSQL |
rhea-push |
rhea | 3000 | 仅集群内 | /api/v1/livez、/api/v1/readyz |
否 |
rhea-gateway |
rhea | 3000 | 公网域名 | /livez、/readyz |
否 |
rhea-web |
rhea | 3000 | 公网域名 | 无(TCP 3000) | 否 |
themis-auth |
themis | 3000 | 仅集群内(由网关转发) | /api/v1/livez、/api/v1/readyz |
PostgreSQL |
themis-gateway |
themis | 3000 | 公网域名(accounts.titanides.com) |
/livez、/readyz |
否 |
themis-web |
themis | 3000 | 公网域名(accounts.titanides.com) |
无(TCP 3000) | 否 |
thia-agent |
thia | 3000 | 仅集群内 | /livez、/readyz |
PostgreSQL(pgvector) |
thia-gateway |
thia | 3000 | 公网域名 | /livez、/readyz |
否 |
thia-web |
thia | 3000 | 公网域名 | 无(TCP 3000) | 否 |
mcp-vision |
thia | 3000 | 仅集群内 | 无(TCP 3000) | 否 |
mcp-perception |
thia | 3000 | 仅集群内 | 无(TCP 3000) | 否 |
mcp-motion |
thia | 3000 | 仅集群内 | 无(TCP 3000) | 否 |
mcp-fetch |
thia | 3000 | 仅集群内 | /health |
否 |
mcp-analysis |
thia | 3000 | 仅集群内 | /health |
否(只读连库) |
tethys-shipping |
tethys | 8080 | 仅集群内 | 无(TCP) | SQLite 文件(挂 PVC) |
tethys-gateway |
tethys | 3000 | 公网域名 | /livez、/readyz |
否 |
tethys-web |
tethys | 3000 | 公网域名 | 无(TCP 3000) | 否 |
thia-jobs-tick 不是 Service,是 CronJob:它每 5 分钟 POST 到
http://thia-agent/api/v1/jobs/tick,自己不监听任何端口。
三条容易踩的
探针路径不统一。 三种写法都存在,抄 YAML 时最容易错:
- 根路径:
thia-*、tethys-gateway、themis-gateway、rhea-gateway、rhea-payment; /api/v1下面:themis-auth、rhea-email、rhea-push;- 完全没有:四个 Web 站(
thia-web/themis-web/rhea-web/tethys-web)和mcp-vision/mcp-perception/mcp-motion。这些用 TCP 探针,别写httpGet /livez—— 404 会让 Pod 反复重启,而服务本身是好的。
只有两个 MCP 有健康路由。 mcp-fetch 与 mcp-analysis 提供 GET /health,另外三个没有。
tethys-shipping 的容器端口不是 3000。 .NET 镜像缺省 8080(--urls=http://*:${PORT:-8080}),
Service 把 80 指过去,targetPort 要写容器实际监听的端口。
对外暴露的边界
需要公网的是只读聚合的网关与站点:thia-gateway、thia-web、themis-gateway、themis-web、
rhea-gateway、rhea-web,以及可选的 tethys-gateway、tethys-web。
其余全部只挂 ClusterIP,因为它们在应用层不做鉴权、信任上游铸的身份头(thia-agent、mcp-*),
或者干脆没有鉴权(rhea-email、rhea-push、themis-auth 的管理接口)。能连上就等于能操作——
一张公网 Ingress 就能把这层边界抹掉。