Securing k3s deployment

This commit is contained in:
Adrien Reslinger 2024-09-01 14:36:15 +02:00
parent 3fd4c7dee0
commit 5717cca04d
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
7 changed files with 153 additions and 6 deletions

View file

@ -0,0 +1,17 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-network-dns-policy
namespace: <NAMESPACE>
spec:
ingress:
- ports:
- port: 53
protocol: TCP
- port: 53
protocol: UDP
podSelector:
matchLabels:
k8s-app: kube-dns
policyTypes:
- Ingress