feat(netpol): 锁定游戏服出站并为 registry 加入站围栏
This commit is contained in:
13 files changed
+620
-37
No files matched your search
@@ -89,10 +89,15 @@ func Objects(p Params) []Object {
|
||||
buildNP.TypeMeta = metav1.TypeMeta{APIVersion: "networking.k8s.io/v1", Kind: "NetworkPolicy"}
|
||||
objs = append(objs, buildNP)
|
||||
|
||||
// Minecraft-namespace ingress fence (default-deny + RCON + game).
|
||||
// Minecraft-namespace ingress fence (default-deny + RCON + game), the server
|
||||
// egress fence, and the registry's ingress fence.
|
||||
for _, np := range MinecraftNetworkPolicies(p) {
|
||||
objs = append(objs, np)
|
||||
}
|
||||
for _, np := range ServerEgressPolicies(p) {
|
||||
objs = append(objs, np)
|
||||
}
|
||||
objs = append(objs, RegistryIngressPolicy(p))
|
||||
|
||||
// The running control-plane the fence protects: felis-api/operator Deployments
|
||||
// (which bind the SAs to workloads and stamp the RCON-peer labels) and the
|
||||
|
||||
Reference in new issue
Block a user