network policy: remove 2222 from traefik public ingress
All checks were successful
/ continuous-deploy (push) Successful in 18s

This commit is contained in:
Márcio Fernandes
2026-04-12 13:21:30 +00:00
parent 0599b3d41a
commit 20360ff1dc

View File

@@ -25,7 +25,7 @@ spec:
ingress:
# -------------------------------------------------------------
# Allow Traefik (in kube-system) to reach Gitea on port 3000 and 2222
# Allow Traefik (internal and public) to reach Gitea on port 3000 (web)
# -------------------------------------------------------------
- fromEndpoints:
- matchLabels:
@@ -39,7 +39,22 @@ spec:
toPorts:
- ports:
- port: "3000"
protocol: TCP
# -------------------------------------------------------------
# Allow Traefik (internal) to reach Gitea on port 3000 (ssh)
# -------------------------------------------------------------
- fromEndpoints:
- matchLabels:
app.kubernetes.io/name: traefik
matchExpressions:
- key: k8s:io.kubernetes.pod.namespace
operator: In
values:
- traefik
toPorts:
- ports:
- port: "2222"
protocol: TCP