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
f52628db
Commit
f52628db
authored
Dec 19, 2017
by
Rohit Agarwal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate the alpha Accelerators feature gate.
Encourage people to use DevicePlugins instead.
parent
8d24ce11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
kube_features.go
pkg/features/kube_features.go
+2
-0
kubelet.go
pkg/kubelet/kubelet.go
+1
-0
No files found.
pkg/features/kube_features.go
View file @
f52628db
...
@@ -64,6 +64,8 @@ const (
...
@@ -64,6 +64,8 @@ const (
// owner: @vishh
// owner: @vishh
// alpha: v1.6
// alpha: v1.6
//
//
// This is deprecated and will be removed in v1.11. Use DevicePlugins instead.
//
// Enables support for GPUs as a schedulable resource.
// Enables support for GPUs as a schedulable resource.
// Only Nvidia GPUs are supported as of v1.6.
// Only Nvidia GPUs are supported as of v1.6.
// Works only with Docker Container Runtime.
// Works only with Docker Container Runtime.
...
...
pkg/kubelet/kubelet.go
View file @
f52628db
...
@@ -875,6 +875,7 @@ func NewMainKubelet(kubeCfg *kubeletconfiginternal.KubeletConfiguration,
...
@@ -875,6 +875,7 @@ func NewMainKubelet(kubeCfg *kubeletconfiginternal.KubeletConfiguration,
klet
.
softAdmitHandlers
.
AddPodAdmitHandler
(
lifecycle
.
NewNoNewPrivsAdmitHandler
(
klet
.
containerRuntime
))
klet
.
softAdmitHandlers
.
AddPodAdmitHandler
(
lifecycle
.
NewNoNewPrivsAdmitHandler
(
klet
.
containerRuntime
))
if
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
Accelerators
)
{
if
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
Accelerators
)
{
if
containerRuntime
==
kubetypes
.
DockerContainerRuntime
{
if
containerRuntime
==
kubetypes
.
DockerContainerRuntime
{
glog
.
Warningln
(
"Accelerators feature is deprecated and will be removed in v1.11. Please use device plugins instead. They can be enabled using the DevicePlugins feature gate."
)
if
klet
.
gpuManager
,
err
=
nvidia
.
NewNvidiaGPUManager
(
klet
,
kubeDeps
.
DockerClientConfig
);
err
!=
nil
{
if
klet
.
gpuManager
,
err
=
nvidia
.
NewNvidiaGPUManager
(
klet
,
kubeDeps
.
DockerClientConfig
);
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
...
...
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