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
e16b1fdc
Commit
e16b1fdc
authored
Jun 08, 2018
by
Łukasz Osipiuk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add cluster autoscaler w/NAP test involving GPUs
parent
1a3820d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
cluster_size_autoscaling.go
test/e2e/autoscaling/cluster_size_autoscaling.go
+23
-0
No files found.
test/e2e/autoscaling/cluster_size_autoscaling.go
View file @
e16b1fdc
...
...
@@ -312,6 +312,29 @@ var _ = SIGDescribe("Cluster size autoscaling [Slow]", func() {
})
}
// TODO consider moving to [Feature:ClusterSizeAutoscalingGpu] as soon as NAP goes out of beta. Currently
// project needed to run the NAP tests require whitelisting for NAP alpha
It
(
"NAP should add a pool with GPUs if unschedulable POD which require GPU exists [Feature:ClusterSizeAutoscalingScaleWithNAP]"
,
func
()
{
framework
.
SkipUnlessProviderIs
(
"gke"
)
installNvidiaDriversDaemonSet
()
framework
.
ExpectNoError
(
enableAutoprovisioning
(
`
"resource_limits":{"name":"nvidia-tesla-k80", "minimum":0, "maximum": 3},
"resource_limits":{"name":"cpu", "minimum":0, "maximum":64},
"resource_limits":{"name":"memory", "minimum":0, "maximum":1000000000000}`
))
By
(
"Schedule a pod which requires GPU and wait until it is started"
)
framework
.
ExpectNoError
(
scheduleGpuPod
(
f
,
"gpu-pod-rc"
))
defer
framework
.
DeleteRCAndWaitForGC
(
f
.
ClientSet
,
f
.
Namespace
.
Name
,
"gpu-pod-rc"
)
By
(
"Verify cluster size increased"
)
framework
.
ExpectNoError
(
WaitForClusterSizeFunc
(
f
.
ClientSet
,
func
(
size
int
)
bool
{
return
size
==
nodeCount
+
1
},
scaleUpTimeout
))
By
(
"Check if NAP group was created"
)
Expect
(
getNAPNodePoolsNumber
())
.
Should
(
Equal
(
1
))
})
It
(
"should increase cluster size if pending pods are small and one node is broken [Feature:ClusterSizeAutoscalingScaleUp]"
,
func
()
{
framework
.
TestUnderTemporaryNetworkFailure
(
c
,
"default"
,
getAnyNode
(
c
),
func
()
{
simpleScaleUpTest
(
1
)
})
...
...
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