Skip to content

Commit 51fa973

Browse files
authored
network-policy: Use digit ports (#551)
Some CNIs does not support named ports (e.g.: ovn-kubernetes), hence use digit ports Signed-off-by: Or Mergi <ormergi@redhat.com>
1 parent 69630ba commit 51fa973

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

config/default/network-policy/allow-ingress-to-metrics-endpoint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ spec:
1212
ingress:
1313
- ports:
1414
- protocol: TCP
15-
port: metrics
15+
port: 8443

config/release/kubemacpool.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ metadata:
392392
spec:
393393
ingress:
394394
- ports:
395-
- port: metrics
395+
- port: 8443
396396
protocol: TCP
397397
podSelector:
398398
matchLabels:

config/test/kubemacpool.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,9 @@ metadata:
409409
spec:
410410
egress:
411411
- ports:
412-
- port: dns-tcp
412+
- port: 53
413413
protocol: TCP
414-
- port: dns
414+
- port: 53
415415
protocol: UDP
416416
to:
417417
- namespaceSelector:
@@ -447,7 +447,7 @@ metadata:
447447
spec:
448448
ingress:
449449
- ports:
450-
- port: metrics
450+
- port: 8443
451451
protocol: TCP
452452
podSelector:
453453
matchLabels:

config/test/network-policy/allow-egress-dns.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ spec:
2020
k8s-app: kube-dns
2121
ports:
2222
- protocol: TCP
23-
port: dns-tcp
23+
port: 53
2424
- protocol: UDP
25-
port: dns
25+
port: 53

0 commit comments

Comments
 (0)