Skip to content

Commit fbfde92

Browse files
committed
fix: explicitly allow egress to coredns & nodelocal cache
Explicitly allow egress traffic to CoreDNS and NodeLocal DNS Cache.
1 parent bf0aca0 commit fbfde92

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

argo/app-of-apps/templates/argocd/application.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,31 @@ spec:
4545
enabled: true
4646
networkPolicy:
4747
enabled: true
48+
egressRules:
49+
- selectors:
50+
- ipBlock:
51+
cidr: 10.96.0.10/32
52+
- ipBlock:
53+
cidr: 169.254.169.254/32
54+
ports:
55+
- port: 53
56+
protocol: UDP
57+
- port: 53
58+
protocol: TCP
4859
haproxy:
4960
networkPolicy:
5061
enabled: true
62+
egressRules:
63+
- selectors:
64+
- ipBlock:
65+
cidr: 10.96.0.10/32
66+
- ipBlock:
67+
cidr: 169.254.169.254/32
68+
ports:
69+
- port: 53
70+
protocol: UDP
71+
- port: 53
72+
protocol: TCP
5173

5274
server:
5375
autoscaling:

argo/network-policies/templates/deny-all.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ spec:
1313
ingress: []
1414
egress:
1515
- to:
16-
- namespaceSelector:
17-
matchLabels:
18-
kubernetes.io/metadata.name: kube-system
16+
- ipBlock:
17+
cidr: 10.96.0.10/32
18+
- ipBlock:
19+
cidr: 169.254.169.254/32
1920
ports:
2021
- port: 53
2122
protocol: UDP

0 commit comments

Comments
 (0)