k3s/pkg/kubelet/server
Kubernetes Submit Queue 479ff417b8 Merge pull request #35348 from Random-Liu/kuberuntime-container-logs
Automatic merge from submit-queue

CRI: Add kuberuntime container logs

Based on https://github.com/kubernetes/kubernetes/pull/34858.

The first 2 commits are from #34858. And the last 2 commits are new.

This PR added kuberuntime container logs support and add unit test for it.

I've tested all the functions manually, and I'll send another PR to write a node e2e test for container log.

**_Notice: current implementation doesn't support log rotation**_, which means that:
- It will not retrieve logs in rotated log file.
- If log rotation happens when following the log:
  - If the rotation is using create mode, we'll still follow the old file.
  - If the rotation is using copytruncate, we'll be reading at the original position and get nothing.

To solve these issues, kubelet needs to rotate the log itself, or at least kubelet should be able to control the the behavior of log rotator. These are doable but out of the scope of 1.5 and will be addressed in future release.

@yujuhong @feiskyer @yifan-gu 
/cc @kubernetes/sig-node
2016-11-01 20:47:20 -07:00
..
portforward Refactor PortForward server methods into the portforward package 2016-10-25 12:08:35 -07:00
remotecommand autogenerated 2016-10-21 17:32:32 -07:00
stats deal with nil inodes and inodesfree 2016-10-31 12:10:23 -07:00
streaming Implement streaming CRI methods in dockershim 2016-10-28 11:15:53 -07:00
BUILD Merge pull request #34381 from liggitt/kubelet-auth 2016-10-25 17:40:27 -07:00
auth.go Wire kubelet authn/authz 2016-10-25 03:40:09 -04:00
auth_test.go Wire kubelet authn/authz 2016-10-25 03:40:09 -04:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
server.go Add kuberuntime container logs support. 2016-10-26 17:37:09 -07:00
server_test.go Merge pull request #34381 from liggitt/kubelet-auth 2016-10-25 17:40:27 -07:00