You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Collect the log files in container even if the pod is not mounting any volumes. So Loggie need to find the path in the node via the log files in the container.
enable
Enable this feature by just set rootFsCollectionEnabled to true, see below:
discovery:
enabled: true
kubernetes:
# can be "" or "docker" or "containerd"
containerRuntime: "docker"
rootFsCollectionEnabled: true
When setting the containerRuntime field to null, Loggie will get the container runtime by cri.version dynamically which is like crictl version.
But we still recommend setting it to a specific value, such as docker or containerd base on your kubernetes cluster.
docker runtime
When setting thecontainerRuntime field to docker, add volumeMount/volume of Loggie daemonset for docker sock.
Usually the socket path is /run/containerd/containerd.sock, which you can also find by checking the kubelet --container-runtime-endpoint args.
Don't forget to add hostPID: true in template.spec of Loggie daemonset, otherwise Loggie won't be able to read the /proc/<pid>/root in the node.
Describe the feature
Collect the log files in container even if the pod is not mounting any volumes. So Loggie need to find the path in the node via the log files in the container.
enable
Enable this feature by just set
rootFsCollectionEnabled
to true, see below:containerRuntime
field to null, Loggie will get the container runtime by cri.version dynamically which is likecrictl version
.But we still recommend setting it to a specific value, such as
docker
orcontainerd
base on your kubernetes cluster.docker runtime
When setting the
containerRuntime
field todocker
, add volumeMount/volume of Loggie daemonset for docker sock.In addition,make sure the there is
mountPropagation: HostToContainer
in docker volumeMount:containerd runtime
When setting the
containerRuntime
field tocontainerd
, add volumeMount/volume of Loggie daemonset for containerd sock.Usually the socket path is
/run/containerd/containerd.sock
, which you can also find by checking the kubelet--container-runtime-endpoint
args.Don't forget to add
hostPID: true
in template.spec of Loggie daemonset, otherwise Loggie won't be able to read the/proc/<pid>/root
in the node.The text was updated successfully, but these errors were encountered: