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
f0f0d30c
Commit
f0f0d30c
authored
Sep 10, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13726 from gmarek/kubelet-changes
Auto commit by PR queue bot
parents
f867ba3b
44e6a566
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
2 deletions
+46
-2
integration.go
cmd/integration/integration.go
+46
-2
server.go
cmd/kubelet/app/server.go
+0
-0
No files found.
cmd/integration/integration.go
View file @
f0f0d30c
...
...
@@ -204,7 +204,29 @@ func startComponents(firstManifestURL, secondManifestURL string) (string, string
configFilePath
:=
makeTempDirOrDie
(
"config"
,
testRootDir
)
glog
.
Infof
(
"Using %s as root dir for kubelet #1"
,
testRootDir
)
fakeDocker1
.
VersionInfo
=
docker
.
Env
{
"ApiVersion=1.15"
}
kcfg
:=
kubeletapp
.
SimpleKubelet
(
cl
,
&
fakeDocker1
,
"localhost"
,
testRootDir
,
firstManifestURL
,
"127.0.0.1"
,
10250
,
api
.
NamespaceDefault
,
empty_dir
.
ProbeVolumePlugins
(),
nil
,
cadvisorInterface
,
configFilePath
,
nil
,
kubecontainer
.
FakeOS
{})
kcfg
:=
kubeletapp
.
SimpleKubelet
(
cl
,
&
fakeDocker1
,
"localhost"
,
testRootDir
,
firstManifestURL
,
"127.0.0.1"
,
10250
,
/* KubeletPort */
0
,
/* ReadOnlyPort */
api
.
NamespaceDefault
,
empty_dir
.
ProbeVolumePlugins
(),
nil
,
cadvisorInterface
,
configFilePath
,
nil
,
kubecontainer
.
FakeOS
{},
1
*
time
.
Second
,
/* FileCheckFrequency */
1
*
time
.
Second
,
/* HTTPCheckFrequency */
10
*
time
.
Second
,
/* MinimumGCAge */
3
*
time
.
Second
,
/* NodeStatusUpdateFrequency */
10
*
time
.
Second
/* SyncFrequency */
)
kubeletapp
.
RunKubelet
(
kcfg
,
nil
)
// Kubelet (machine)
// Create a second kubelet so that the guestbook example's two redis slaves both
...
...
@@ -212,7 +234,29 @@ func startComponents(firstManifestURL, secondManifestURL string) (string, string
testRootDir
=
makeTempDirOrDie
(
"kubelet_integ_2."
,
""
)
glog
.
Infof
(
"Using %s as root dir for kubelet #2"
,
testRootDir
)
fakeDocker2
.
VersionInfo
=
docker
.
Env
{
"ApiVersion=1.15"
}
kcfg
=
kubeletapp
.
SimpleKubelet
(
cl
,
&
fakeDocker2
,
"127.0.0.1"
,
testRootDir
,
secondManifestURL
,
"127.0.0.1"
,
10251
,
api
.
NamespaceDefault
,
empty_dir
.
ProbeVolumePlugins
(),
nil
,
cadvisorInterface
,
""
,
nil
,
kubecontainer
.
FakeOS
{})
kcfg
=
kubeletapp
.
SimpleKubelet
(
cl
,
&
fakeDocker2
,
"127.0.0.1"
,
testRootDir
,
secondManifestURL
,
"127.0.0.1"
,
10251
,
/* KubeletPort */
0
,
/* ReadOnlyPort */
api
.
NamespaceDefault
,
empty_dir
.
ProbeVolumePlugins
(),
nil
,
cadvisorInterface
,
""
,
nil
,
kubecontainer
.
FakeOS
{},
1
*
time
.
Second
,
/* FileCheckFrequency */
1
*
time
.
Second
,
/* HTTPCheckFrequency */
10
*
time
.
Second
,
/* MinimumGCAge */
3
*
time
.
Second
,
/* NodeStatusUpdateFrequency */
10
*
time
.
Second
/* SyncFrequency */
)
kubeletapp
.
RunKubelet
(
kcfg
,
nil
)
return
apiServer
.
URL
,
configFilePath
}
...
...
cmd/kubelet/app/server.go
View file @
f0f0d30c
This diff is collapsed.
Click to expand it.
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