Skip to content

Commit 9b88f8c

Browse files
authored
set endPort as default in the netpols examples (#1963)
* set endPort as default
1 parent cc7a165 commit 9b88f8c

File tree

1 file changed

+4
-28
lines changed

1 file changed

+4
-28
lines changed

docs/examples/network-policies/allow-inter-node-traffic.yaml

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,10 @@ spec:
1919
ports:
2020
- port: 4369 # epmd
2121
- port: 6000 # stream replication, if streams are being used
22-
endPort: 6500 # if your cluster version is below 1.22 (see below) you should use a helm loop or something similar
22+
endPort: 6500
2323
- port: 25672 # clustering
2424
- port: 35672 # CLI tooling
25-
- port: 35673 # CLI tooling
26-
- port: 35674 # CLI tooling
27-
- port: 35675 # CLI tooling
28-
- port: 35676 # CLI tooling
29-
- port: 35677 # CLI tooling
30-
- port: 35678 # CLI tooling
31-
- port: 35679 # CLI tooling
32-
- port: 35680 # CLI tooling
33-
- port: 35681 # CLI tooling
34-
- port: 35682 # CLI tooling
35-
# If using the k8s feature gate NetworkPolicyEndPort (enabled by default 1.22+), the last 11 entries can be simplified to:
36-
# - port: 35672 # CLI tooling
37-
# endPort: 35682
25+
endPort: 35682
3826
ingress:
3927
- from:
4028
- podSelector:
@@ -44,19 +32,7 @@ spec:
4432
ports:
4533
- port: 4369 # epmd
4634
- port: 6000 # stream replication, if streams are being used
47-
endPort: 6500 # if your cluster version is below 1.22 (see below) you should use a helm loop or something similar
35+
endPort: 6500
4836
- port: 25672 # clustering
4937
- port: 35672 # CLI tooling
50-
- port: 35673 # CLI tooling
51-
- port: 35674 # CLI tooling
52-
- port: 35675 # CLI tooling
53-
- port: 35676 # CLI tooling
54-
- port: 35677 # CLI tooling
55-
- port: 35678 # CLI tooling
56-
- port: 35679 # CLI tooling
57-
- port: 35680 # CLI tooling
58-
- port: 35681 # CLI tooling
59-
- port: 35682 # CLI tooling
60-
# If using the k8s feature gate NetworkPolicyEndPort (enabled by default 1.22+), the last 11 entries can be simplified to:
61-
# - port: 35672 # CLI tooling
62-
# endPort: 35682
38+
endPort: 35682

0 commit comments

Comments
 (0)