Ajout Network policies Ingress & CoreDNS

This commit is contained in:
Fabrice Didon 2024-09-27 23:50:32 +02:00
parent 161b4c6d58
commit 990ee38a3a
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,18 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: gse-coredns-allow
namespace: gse
spec:
podSelector: {}
policyTypes:
- Egress
egress:
- to:
- namespaceSelector: {}
podSelector:
matchLabels:
k8s-app: kube-dns
ports:
- port: 53
protocol: UDP

View File

@ -0,0 +1,18 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: gse-coredns-allow
namespace: gse
spec:
podSelector: {}
policyTypes:
- Egress
egress:
- to:
- namespaceSelector: {}
podSelector:
matchLabels:
k8s-app: kube-dns
ports:
- port: 53
protocol: UDP