feat(platform): 渲染 k3s 内的 felis-postgres 及其入站隔离

This commit is contained in:
Lemon-miaow committed 2026-09-26 12:03:23 +08:00
1 parent a20840e7d8
commit 659127b271
9 files changed
+770 -15

No files matched your search

+6 -3
View File
@@ -243,9 +243,10 @@ func InternalAPIBaseURL(controlNamespace string) string {
return fmt.Sprintf("http://%s.%s.svc.cluster.local:%d", APIInternalServiceName, controlNamespace, apiInternalPort)
}
// Workloads renders the running control-plane: the felis-api Deployment, the
// felis-operator Deployment, and the in-cluster registry (Deployment + Service +
// PVC), the world-archive PVC when p.BackupPVC names it (it backs the
// Workloads renders the running control-plane: the database (Deployment +
// Service, postgres.go), the felis-api Deployment, the felis-operator
// Deployment, and the in-cluster registry (Deployment + Service + PVC), the
// world-archive PVC when p.BackupPVC names it (it backs the
// backup/restore Jobs and the reaper), plus the reaper CronJob when
// reaperEnabled(p). Every pod template carries the built-in
// system-cluster-critical PriorityClass (controlPlanePriorityName), the
@@ -254,6 +255,8 @@ func InternalAPIBaseURL(controlNamespace string) string {
func Workloads(p Params) []Object {
p = p.withDefaults()
objs := []Object{
postgresDeployment(p),
postgresService(p),
APIDeployment(p),
apiService(p),
apiInternalService(p),