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
0afaeab9
Commit
0afaeab9
authored
Aug 12, 2016
by
Michael Taufen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only try to connect to docker if we're actually using the docker runtime
parent
f277205f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
server.go
cmd/kubelet/app/server.go
+8
-1
No files found.
cmd/kubelet/app/server.go
View file @
0afaeab9
...
...
@@ -124,12 +124,19 @@ func UnsecuredKubeletDeps(s *options.KubeletServer) (*kubelet.KubeletDeps, error
writer
=
&
kubeio
.
NsenterWriter
{}
}
var
dockerClient
dockertools
.
DockerInterface
if
s
.
ContainerRuntime
==
"docker"
{
dockerClient
=
dockertools
.
ConnectToDockerOrDie
(
s
.
DockerEndpoint
,
s
.
RuntimeRequestTimeout
.
Duration
)
}
else
{
dockerClient
=
nil
}
return
&
kubelet
.
KubeletDeps
{
Auth
:
nil
,
// default does not enforce auth[nz]
CAdvisorInterface
:
nil
,
// cadvisor.New launches background processes (bg http.ListenAndServe, and some bg cleaners), not set here
Cloud
:
nil
,
// cloud provider might start background processes
ContainerManager
:
nil
,
DockerClient
:
docker
tools
.
ConnectToDockerOrDie
(
s
.
DockerEndpoint
,
s
.
RuntimeRequestTimeout
.
Duration
),
// TODO(random-liu): Set RuntimeRequestTimeout for rkt.
DockerClient
:
docker
Client
,
KubeClient
:
nil
,
Mounter
:
mounter
,
NetworkPlugins
:
ProbeNetworkPlugins
(
s
.
NetworkPluginDir
),
...
...
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