Merge pull request 'Ajout Network policies Ingress & CoreDNS' (#10) from master into prod

Reviewed-on: #10
This commit is contained in:
Fabrice Didon 2024-09-27 23:52:27 +02:00
commit ca42316abd
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