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
2c73d99f
Commit
2c73d99f
authored
May 16, 2018
by
Ashley Gau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test clusterip
parent
101dde0c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
59 additions
and
0 deletions
+59
-0
ingress.go
test/e2e/network/ingress.go
+16
-0
ing.yaml
test/e2e/testing-manifests/ingress/neg-clusterip/ing.yaml
+9
-0
rc.yaml
test/e2e/testing-manifests/ingress/neg-clusterip/rc.yaml
+19
-0
svc.yaml
test/e2e/testing-manifests/ingress/neg-clusterip/svc.yaml
+15
-0
No files found.
test/e2e/network/ingress.go
View file @
2c73d99f
...
@@ -539,6 +539,22 @@ var _ = SIGDescribe("Loadbalancing: L7", func() {
...
@@ -539,6 +539,22 @@ var _ = SIGDescribe("Loadbalancing: L7", func() {
jig
.
WaitForIngress
(
true
)
jig
.
WaitForIngress
(
true
)
})
})
It
(
"should be able to create a ClusterIP service [Unreleased]"
,
func
()
{
var
err
error
By
(
"Create a basic HTTP ingress using NEG"
)
jig
.
CreateIngress
(
filepath
.
Join
(
framework
.
IngressManifestPath
,
"neg-clusterip"
),
ns
,
map
[
string
]
string
{},
map
[
string
]
string
{})
jig
.
WaitForIngress
(
true
)
svcPorts
:=
jig
.
GetServicePorts
(
false
)
usingNEG
,
err
:=
gceController
.
BackendServiceUsingNEG
(
svcPorts
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
usingNEG
)
.
To
(
BeTrue
())
// ClusterIP ServicePorts have no NodePort
for
_
,
sp
:=
range
svcPorts
{
Expect
(
sp
.
NodePort
)
.
To
(
Equal
(
int32
(
0
)))
}
})
It
(
"should sync endpoints to NEG"
,
func
()
{
It
(
"should sync endpoints to NEG"
,
func
()
{
name
:=
"hostname"
name
:=
"hostname"
scaleAndValidateNEG
:=
func
(
num
int
)
{
scaleAndValidateNEG
:=
func
(
num
int
)
{
...
...
test/e2e/testing-manifests/ingress/neg-clusterip/ing.yaml
0 → 100644
View file @
2c73d99f
apiVersion
:
extensions/v1beta1
kind
:
Ingress
metadata
:
name
:
hostname
spec
:
backend
:
serviceName
:
hostname
servicePort
:
80
\ No newline at end of file
test/e2e/testing-manifests/ingress/neg-clusterip/rc.yaml
0 → 100644
View file @
2c73d99f
apiVersion
:
extensions/v1beta1
kind
:
Deployment
metadata
:
labels
:
run
:
hostname
name
:
hostname
spec
:
minReadySeconds
:
60
template
:
metadata
:
labels
:
run
:
hostname
spec
:
containers
:
-
image
:
gcr.io/kubernetes-e2e-test-images/serve-hostname-amd64:1.1
imagePullPolicy
:
IfNotPresent
name
:
hostname
terminationGracePeriodSeconds
:
120
\ No newline at end of file
test/e2e/testing-manifests/ingress/neg-clusterip/svc.yaml
0 → 100644
View file @
2c73d99f
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
hostname
annotations
:
alpha.cloud.google.com/load-balancer-neg
:
"
true"
spec
:
ports
:
-
port
:
80
protocol
:
TCP
targetPort
:
9376
selector
:
run
:
hostname
sessionAffinity
:
None
type
:
ClusterIP
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