This repository has been archived on 2026-05-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
irc/thelounge/networkpolicy.yaml
T
2026-01-17 20:22:39 -05:00

48 lines
1.0 KiB
YAML

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: thelounge
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:
- to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: irc
- to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: kube-system
podSelector:
matchLabels:
k8s-app: kube-dns
ports:
- protocol: UDP
port: 53
- protocol: TCP
port: 53
- to:
- ipBlock:
cidr: 0.0.0.0/0
except:
- 10.0.0.0/8
- 172.16.0.0/12
- 192.168.0.0/16