JG-mirror/Kubernetes/NetworkPolicies/networkpolicy-ingress.yaml

17 lines
305 B
YAML
Raw Normal View History

2024-01-16 12:55:53 +00:00
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: restrict-internal
namespace: pihole
spec:
podSelector: {}
policyTypes:
- Ingress
ingress:
- from:
- ipBlock:
cidr: 0.0.0.0/0
except:
- 10.0.0.0/8
- 192.168.0.0/16
- 172.16.0.0/20