Skip to content

Commit c983bd1

Browse files
christarazitwpayne
authored andcommitted
examples, connectivity-check, test: Use even-numbered nodePort
Following the same logic as #15988, we want to use an even-numbered port to reduce the likelihood that the underlying kernel allocates a conflicting port for the nodePort. Fixes: #13071 Signed-off-by: Chris Tarazi <chris@isovalent.com>
1 parent 93b67da commit c983bd1

12 files changed

Lines changed: 33 additions & 33 deletions

examples/kubernetes/connectivity-check/connectivity-check-hostport.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/kubernetes/connectivity-check/connectivity-check-internal.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/kubernetes/connectivity-check/connectivity-check-proxy.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/kubernetes/connectivity-check/connectivity-check-quarantine.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/kubernetes/connectivity-check/connectivity-check-single-node.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/kubernetes/connectivity-check/connectivity-check.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/kubernetes/connectivity-check/echo-servers.cue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ deployment: "echo-b": _echoDeployment & {
2626
_serverPort: "8080"
2727
_exposeNodePort: true
2828
_exposeHeadless: true
29-
_nodePort: 31313
29+
_nodePort: 31414
3030

3131
metadata: labels: component: "services-check"
3232
spec: template: spec: containers: [{ports: [{_expose: true, containerPort: 8080, _portName: "http", hostPort: 40000}]}]

examples/kubernetes/connectivity-check/services.cue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ deployment: "pod-to-b-intra-node-hostport": _hostPortDeployment
4040
// NodePort checks
4141
_nodePortDeployment: {
4242
metadata: labels: component: "nodeport-check"
43-
_probeTarget: "echo-b-host-headless:31313"
43+
_probeTarget: "echo-b-host-headless:31414"
4444
}
4545
deployment: "pod-to-b-multi-node-nodeport": _nodePortDeployment
4646
deployment: "pod-to-b-intra-node-nodeport": _nodePortDeployment

examples/policies/host/lock-down-dev-vms-cidr-node.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ spec:
7070
name: pod-to-b-intra-node-nodeport
7171
toPorts:
7272
- ports:
73-
- port: "31313"
73+
- port: "31414"
7474
protocol: TCP
7575
- fromEndpoints:
7676
- matchLabels:
7777
name: pod-to-b-multi-node-nodeport
7878
toPorts:
7979
- ports:
80-
- port: "31313"
80+
- port: "31414"
8181
protocol: TCP
8282

8383

examples/policies/host/lock-down-dev-vms-remote-node.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ spec:
6464
name: pod-to-b-intra-node-nodeport
6565
toPorts:
6666
- ports:
67-
- port: "31313"
67+
- port: "31414"
6868
protocol: TCP
6969
- fromEndpoints:
7070
- matchLabels:
7171
name: pod-to-b-multi-node-nodeport
7272
toPorts:
7373
- ports:
74-
- port: "31313"
74+
- port: "31414"
7575
protocol: TCP
7676

7777

0 commit comments

Comments
 (0)