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/znc/networkpolicy.yaml
T
Chris Farhood 9a6c78680b fix: correct YAML indentation and add missing newlines
- Fix indentation in service.yaml files (thelounge and znc)
- Fix indentation in statefulset.yaml (thelounge)
- Add missing newlines at end of files
- Resolves yamllint errors from CI/CD workflows

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-02-08 10:52:50 -05:00

56 lines
1.2 KiB
YAML

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: znc
spec:
podSelector:
matchLabels:
app.kubernetes.io/name: znc
policyTypes:
- Ingress
- Egress
ingress:
### Allow intra-namespace communication
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: irc
###
### Allow traffic from gateways
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: istio-system
###
egress:
### Allow DNS resolution
- to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: kube-system
podSelector:
matchLabels:
k8s-app: kube-dns
ports:
- protocol: UDP
port: 53
- protocol: TCP
port: 53
###
### Allow intra-namespace communication
- to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: irc
###
### Allow outbound to the world
- to:
- ipBlock:
cidr: 0.0.0.0/0
except:
- 10.0.0.0/8
- 172.16.0.0/12
- 192.168.0.0/16
###