Skip to content

Commit 8b9bd88

Browse files
committed
Pin point extra DNS request
1 parent 45de6c2 commit 8b9bd88

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

charts/adminer/templates/networkpolicy.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,3 @@ spec:
1818
destination:
1919
ports:
2020
- 5432
21-
# allow dns requests to public dns servers
22-
- action: Allow
23-
protocol: UDP
24-
destination:
25-
ports:
26-
- 53

charts/calico-configuration/templates/globalpolicy.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,23 @@ spec:
2222
selector: 'k8s-app == "kube-dns"'
2323
ports:
2424
- 53
25+
# nodelocaldns: https://github.com/kubernetes/kubernetes/blob/master/cluster/addons/dns/nodelocaldns/README.md#nodelocal-dns-cache
26+
# IP from https://github.com/kubernetes-sigs/kubespray/blob/v2.24.1/roles/kubespray-defaults/defaults/main/main.yml#L108
27+
- action: Allow
28+
protocol: UDP
29+
nets:
30+
- 169.254.25.10/32
31+
ports:
32+
- 53
2533
- action: Allow
2634
protocol: TCP
2735
destination:
2836
selector: 'k8s-app == "kube-dns"'
2937
ports:
3038
- 53
39+
- action: Allow
40+
protocol: TCP
41+
nets:
42+
- 169.254.25.10/32
43+
ports:
44+
- 53

charts/simcore-charts/resource-usage-tracker/templates/networkpolicy.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ spec:
1313
ports:
1414
- {{ .Values.service.port }}
1515
egress:
16-
# allow dns requests to public dns servers
17-
- action: Allow
18-
protocol: UDP
19-
destination:
20-
# allow DNS requests to public DNS servers
21-
ports:
22-
- 53
2316
- action: Allow
2417
protocol: TCP
2518
destination:

0 commit comments

Comments
 (0)