Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
3d0fb31f
Commit
3d0fb31f
authored
Oct 07, 2016
by
bprashanth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove onlyLocal NodePort e2e till pr #33957
parent
21188cad
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
service.go
test/e2e/service.go
+3
-11
No files found.
test/e2e/service.go
View file @
3d0fb31f
...
@@ -1101,8 +1101,6 @@ var _ = framework.KubeDescribe("Services", func() {
...
@@ -1101,8 +1101,6 @@ var _ = framework.KubeDescribe("Services", func() {
jig
.
SanityCheckService
(
svc
,
api
.
ServiceTypeLoadBalancer
)
jig
.
SanityCheckService
(
svc
,
api
.
ServiceTypeLoadBalancer
)
svcTcpPort
:=
int
(
svc
.
Spec
.
Ports
[
0
]
.
Port
)
svcTcpPort
:=
int
(
svc
.
Spec
.
Ports
[
0
]
.
Port
)
framework
.
Logf
(
"service port : %d"
,
svcTcpPort
)
framework
.
Logf
(
"service port : %d"
,
svcTcpPort
)
tcpNodePort
:=
int
(
svc
.
Spec
.
Ports
[
0
]
.
NodePort
)
framework
.
Logf
(
"TCP node port: %d"
,
tcpNodePort
)
ingressIP
:=
getIngressPoint
(
&
svc
.
Status
.
LoadBalancer
.
Ingress
[
0
])
ingressIP
:=
getIngressPoint
(
&
svc
.
Status
.
LoadBalancer
.
Ingress
[
0
])
framework
.
Logf
(
"TCP load balancer: %s"
,
ingressIP
)
framework
.
Logf
(
"TCP load balancer: %s"
,
ingressIP
)
healthCheckNodePort
:=
int
(
service
.
GetServiceHealthCheckNodePort
(
svc
))
healthCheckNodePort
:=
int
(
service
.
GetServiceHealthCheckNodePort
(
svc
))
...
@@ -1110,18 +1108,12 @@ var _ = framework.KubeDescribe("Services", func() {
...
@@ -1110,18 +1108,12 @@ var _ = framework.KubeDescribe("Services", func() {
if
healthCheckNodePort
==
0
{
if
healthCheckNodePort
==
0
{
framework
.
Failf
(
"Service HealthCheck NodePort was not allocated"
)
framework
.
Failf
(
"Service HealthCheck NodePort was not allocated"
)
}
}
nodeIP
:=
pickNodeIP
(
jig
.
Client
)
// TODO(33957): test localOnly nodePort Services.
By
(
"hitting the TCP service's NodePort on "
+
nodeIP
+
":"
+
fmt
.
Sprintf
(
"%d"
,
tcpNodePort
))
jig
.
TestReachableHTTP
(
nodeIP
,
tcpNodePort
,
kubeProxyLagTimeout
)
By
(
"hitting the TCP service's service port, via its external VIP "
+
ingressIP
+
":"
+
fmt
.
Sprintf
(
"%d"
,
svcTcpPort
))
By
(
"hitting the TCP service's service port, via its external VIP "
+
ingressIP
+
":"
+
fmt
.
Sprintf
(
"%d"
,
svcTcpPort
))
jig
.
TestReachableHTTP
(
ingressIP
,
svcTcpPort
,
kubeProxyLagTimeout
)
jig
.
TestReachableHTTP
(
ingressIP
,
svcTcpPort
,
kubeProxyLagTimeout
)
By
(
"reading clientIP using the TCP service's NodePort"
)
content
:=
jig
.
GetHTTPContent
(
nodeIP
,
tcpNodePort
,
kubeProxyLagTimeout
,
"/clientip"
)
clientIP
:=
content
.
String
()
framework
.
Logf
(
"ClientIP detected by target pod using NodePort is %s"
,
clientIP
)
By
(
"reading clientIP using the TCP service's service port via its external VIP"
)
By
(
"reading clientIP using the TCP service's service port via its external VIP"
)
content
=
jig
.
GetHTTPContent
(
ingressIP
,
svcTcpPort
,
kubeProxyLagTimeout
,
"/clientip"
)
content
:
=
jig
.
GetHTTPContent
(
ingressIP
,
svcTcpPort
,
kubeProxyLagTimeout
,
"/clientip"
)
clientIP
=
content
.
String
()
clientIP
:
=
content
.
String
()
framework
.
Logf
(
"ClientIP detected by target pod using VIP:SvcPort is %s"
,
clientIP
)
framework
.
Logf
(
"ClientIP detected by target pod using VIP:SvcPort is %s"
,
clientIP
)
By
(
"checking if Source IP is preserved"
)
By
(
"checking if Source IP is preserved"
)
if
strings
.
HasPrefix
(
clientIP
,
"10."
)
{
if
strings
.
HasPrefix
(
clientIP
,
"10."
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment