Skip to content

How to receive data in deffirent pods on the same node? #12254

Answered by wtchangdm
caibirdme asked this question in Q&A
Discussion options

You must be logged in to vote

Container logs are located in worker node's /var/log/containers/... (which actually are symbolic links to /var/log/pods/...).

Usually, when a log shipper (vector, fluentd or fluent-bit, etc) is deployed as DaemonSet, it mounts that hostPath and collects files from there (while observing things like file rotation).

You can check vector chart .

flowchart LR
  subgraph Node
    subgraph User Pod
      container
    end
    container -. "stdout/stderr" .-> container_runtime["CRI Container Runtime"]
    container_runtime -. write .-> files
    files["/var/log/pods/..."]
    subgraph Log Shipper Pod
      log_shipper_container["Log Shipper Container"]
    end
    files -. "Volume mounted as …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@spencergilbert
Comment options

Answer selected by spencergilbert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants