fix(cloudflared): netpols

This commit is contained in:
JJGadgets
2024-08-14 12:20:51 +08:00
parent 4fecf6f3d2
commit 8026c36134

View File

@@ -26,6 +26,14 @@ spec:
protocol: TCP
- port: "443"
protocol: UDP
# allow cloudflared to egress to pods that require ingress
- toEndpoints:
- matchExpressions:
- key: io.kubernetes.pod.namespace
operator: Exists
- key: ingress.home.arpa/cloudflare
operator: In
values: [allow]
# Headscale
- toEndpoints:
- matchLabels:
@@ -57,17 +65,6 @@ spec:
- ports:
- port: "7844"
protocol: UDP
# L7 DNS inspection & proxy
- toEndpoints:
- matchLabels:
io.kubernetes.pod.namespace: kube-system
k8s-app: kube-dns
toPorts:
- ports:
- port: "53"
rules:
dns:
- matchPattern: "*"
# allow Flux notification-controller ingress
- toEndpoints:
- matchLabels:
@@ -90,8 +87,6 @@ spec:
- ports:
- port: "59292"
protocol: TCP
- port: "80"
protocol: TCP
rules:
http:
- {}