Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples, connectivity-check, test: Use even-numbered nodePort #16158

Merged
merged 1 commit into from
May 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions examples/kubernetes/connectivity-check/connectivity-check.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/kubernetes/connectivity-check/echo-servers.cue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ deployment: "echo-b": _echoDeployment & {
_serverPort: "8080"
_exposeNodePort: true
_exposeHeadless: true
_nodePort: 31313
_nodePort: 31414

metadata: labels: component: "services-check"
spec: template: spec: containers: [{ports: [{_expose: true, containerPort: 8080, _portName: "http", hostPort: 40000}]}]
Expand Down
2 changes: 1 addition & 1 deletion examples/kubernetes/connectivity-check/services.cue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ deployment: "pod-to-b-intra-node-hostport": _hostPortDeployment
// NodePort checks
_nodePortDeployment: {
metadata: labels: component: "nodeport-check"
_probeTarget: "echo-b-host-headless:31313"
_probeTarget: "echo-b-host-headless:31414"
}
deployment: "pod-to-b-multi-node-nodeport": _nodePortDeployment
deployment: "pod-to-b-intra-node-nodeport": _nodePortDeployment
4 changes: 2 additions & 2 deletions examples/policies/host/lock-down-dev-vms-cidr-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ spec:
name: pod-to-b-intra-node-nodeport
toPorts:
- ports:
- port: "31313"
- port: "31414"
protocol: TCP
- fromEndpoints:
- matchLabels:
name: pod-to-b-multi-node-nodeport
toPorts:
- ports:
- port: "31313"
- port: "31414"
protocol: TCP


Expand Down
4 changes: 2 additions & 2 deletions examples/policies/host/lock-down-dev-vms-remote-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ spec:
name: pod-to-b-intra-node-nodeport
toPorts:
- ports:
- port: "31313"
- port: "31414"
protocol: TCP
- fromEndpoints:
- matchLabels:
name: pod-to-b-multi-node-nodeport
toPorts:
- ports:
- port: "31313"
- port: "31414"
protocol: TCP


Expand Down
4 changes: 2 additions & 2 deletions examples/policies/host/lock-down-gke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ spec:
name: pod-to-b-intra-node-nodeport
toPorts:
- ports:
- port: "31313"
- port: "31414"
protocol: TCP
- fromEndpoints:
- matchLabels:
name: pod-to-b-multi-node-nodeport
toPorts:
- ports:
- port: "31313"
- port: "31414"
protocol: TCP


Expand Down
10 changes: 5 additions & 5 deletions test/k8sT/manifests/policy-stress-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ spec:
- "5"
- -o
- /dev/null
- echo-b-host-headless:31313/public
- echo-b-host-headless:31414/public
livenessProbe:
exec:
command:
Expand All @@ -745,7 +745,7 @@ spec:
- "5"
- -o
- /dev/null
- echo-b-host-headless:31313/public
- echo-b-host-headless:31414/public
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
Expand Down Expand Up @@ -798,7 +798,7 @@ spec:
- "5"
- -o
- /dev/null
- echo-b-host-headless:31313/public
- echo-b-host-headless:31414/public
livenessProbe:
exec:
command:
Expand All @@ -809,7 +809,7 @@ spec:
- "5"
- -o
- /dev/null
- echo-b-host-headless:31313/public
- echo-b-host-headless:31414/public
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
Expand Down Expand Up @@ -883,7 +883,7 @@ metadata:
spec:
ports:
- port: 80
nodePort: 31313
nodePort: 31414
type: NodePort
selector:
name: echo-b
Expand Down