network policy: remove 2222 from traefik public ingress
All checks were successful
/ continuous-deploy (push) Successful in 18s
All checks were successful
/ continuous-deploy (push) Successful in 18s
This commit is contained in:
@@ -25,7 +25,7 @@ spec:
|
|||||||
|
|
||||||
ingress:
|
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:
|
- fromEndpoints:
|
||||||
- matchLabels:
|
- matchLabels:
|
||||||
@@ -39,7 +39,22 @@ spec:
|
|||||||
toPorts:
|
toPorts:
|
||||||
- ports:
|
- ports:
|
||||||
- port: "3000"
|
- port: "3000"
|
||||||
|
|
||||||
protocol: TCP
|
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:
|
- ports:
|
||||||
- port: "2222"
|
- port: "2222"
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
Reference in New Issue
Block a user