From 87dc5567484032c91add40b80585679b6e0bf6b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Mon, 30 Mar 2026 00:29:50 +0000 Subject: [PATCH] modified: deploy/infra/network-policies.yaml --- deploy/infra/network-policies.yaml | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/deploy/infra/network-policies.yaml b/deploy/infra/network-policies.yaml index 0ef28ac..8319a04 100644 --- a/deploy/infra/network-policies.yaml +++ b/deploy/infra/network-policies.yaml @@ -12,6 +12,25 @@ spec: values: - git-limbosolutions-com + +--- + +apiVersion: cilium.io/v2 +kind: CiliumNetworkPolicy +metadata: + name: allow-ssh-to-gitea +spec: + endpointSelector: + matchLabels: + app.kubernetes.io/name: gitea + + ingress: + - fromCIDRSet: + - cidr: 0.0.0.0/0 + toPorts: + - ports: + - port: "2222" + protocol: TCP --- apiVersion: cilium.io/v2 @@ -40,13 +59,3 @@ spec: - port: "3000" protocol: TCP - # ------------------------------------------------------------- - # Allow SSH (2222) - # ------------------------------------------------------------- - - fromCIDRSet: - - cidr: 0.0.0.0/0 - toPorts: - - ports: - - port: "2222" - protocol: TCP -