Commit 08945a9b authored by Dominika Hodovska's avatar Dominika Hodovska

Add note: kubelet manages only k8s containers.

parent ea69570f
...@@ -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.
......
...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment