all done?

This commit is contained in:
2026-01-17 12:27:44 -05:00
parent ef4a0c19ef
commit 877696c827
3 changed files with 38 additions and 1 deletions
-1
View File
@@ -3,6 +3,5 @@ kind: Kustomization
resources:
# Uncomment if storing configuration in the repo
# - configmap.yaml
- networkpolicy.yaml
- ./thelounge
- ./znc
+38
View File
@@ -0,0 +1,38 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: thelounge
namespace: irc
spec:
podSelector:
matchLabels:
app.kubernetes.io/name: thelounge
policyTypes:
- Ingress
- Egress
ingress:
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: irc
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: istio-system
egress:
# namespace-local
- to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: irc
# public internet only
- to:
- ipBlock:
cidr: 0.0.0.0/0
except:
- 10.0.0.0/8
- 172.16.0.0/12
- 192.168.0.0/16