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
08945a9b
Commit
08945a9b
authored
Aug 11, 2016
by
Dominika Hodovska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add note: kubelet manages only k8s containers.
bug 1328441 Bugzilla link
https://bugzilla.redhat.com/show_bug.cgi?id=1328441
parent
ea69570f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
server.go
cmd/kubelet/app/server.go
+2
-1
docker.go
pkg/kubelet/dockertools/docker.go
+1
-1
No files found.
cmd/kubelet/app/server.go
View file @
08945a9b
...
@@ -101,7 +101,8 @@ func NewKubeletCommand() *cobra.Command {
...
@@ -101,7 +101,8 @@ func NewKubeletCommand() *cobra.Command {
node. The kubelet works in terms of a PodSpec. A PodSpec is a YAML or JSON object
node. The kubelet works in terms of a PodSpec. A PodSpec is a YAML or JSON object
that describes a pod. The kubelet takes a set of PodSpecs that are provided through
that describes a pod. The kubelet takes a set of PodSpecs that are provided through
various mechanisms (primarily through the apiserver) and ensures that the containers
various mechanisms (primarily through the apiserver) and ensures that the containers
described in those PodSpecs are running and healthy.
described in those PodSpecs are running and healthy. The kubelet doesn't manage
containers which were not created by Kubernetes.
Other than from an PodSpec from the apiserver, there are three ways that a container
Other than from an PodSpec from the apiserver, there are three ways that a container
manifest can be provided to the Kubelet.
manifest can be provided to the Kubelet.
...
...
pkg/kubelet/dockertools/docker.go
View file @
08945a9b
...
@@ -396,7 +396,7 @@ func GetKubeletDockerContainers(client DockerInterface, allContainers bool) ([]*
...
@@ -396,7 +396,7 @@ func GetKubeletDockerContainers(client DockerInterface, allContainers bool) ([]*
// Skip containers that we didn't create to allow users to manually
// Skip containers that we didn't create to allow users to manually
// spin up their own containers if they want.
// spin up their own containers if they want.
if
!
strings
.
HasPrefix
(
container
.
Names
[
0
],
"/"
+
containerNamePrefix
+
"_"
)
{
if
!
strings
.
HasPrefix
(
container
.
Names
[
0
],
"/"
+
containerNamePrefix
+
"_"
)
{
glog
.
V
(
3
)
.
Infof
(
"Docker Container: %s is not managed by kubelet."
,
container
.
Names
[
0
])
glog
.
V
(
5
)
.
Infof
(
"Docker Container: %s is not managed by kubelet."
,
container
.
Names
[
0
])
continue
continue
}
}
result
=
append
(
result
,
container
)
result
=
append
(
result
,
container
)
...
...
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