kubernetes/pkg/kubelet/kuberuntime
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
..
BUILD Generate bazel. 2016-10-26 17:37:37 -07:00
doc.go Kubelet: add garbage collection for new runtime API 2016-09-14 09:09:45 +08:00
fake_kuberuntime_manager.go Add oom score adj in new CRI implementation. 2016-09-26 11:39:02 -07:00
helpers_test.go kuberuntime: include container hash in backoff keys 2016-09-23 14:52:30 -07:00
helpers.go Merge pull request #35348 from Random-Liu/kuberuntime-container-logs 2016-11-01 20:47:20 -07:00
instrumented_services.go Implement streaming CRI methods in dockershim 2016-10-28 11:15:53 -07:00
kuberuntime_container_test.go * Refactor kuberuntime unit test 2016-10-24 00:03:34 -07:00
kuberuntime_container.go Merge pull request #35348 from Random-Liu/kuberuntime-container-logs 2016-11-01 20:47:20 -07:00
kuberuntime_gc_test.go CRI: Rename container/sandbox states 2016-11-01 13:18:21 -07:00
kuberuntime_gc.go CRI: Rename container/sandbox states 2016-11-01 13:18:21 -07:00
kuberuntime_image_test.go Implement temporary ImageStats in kuberuntime_manager, and 2016-10-03 22:56:25 -07:00
kuberuntime_image.go * Add docker pullable support. 2016-10-12 09:21:10 -07:00
kuberuntime_logs_test.go Add unit test for kuberuntime container logs. 2016-10-26 17:37:09 -07:00
kuberuntime_logs.go Add kuberuntime container logs support. 2016-10-26 17:37:09 -07:00
kuberuntime_manager_test.go CRI: Rename container/sandbox states 2016-11-01 13:18:21 -07:00
kuberuntime_manager.go CRI: Rename container/sandbox states 2016-11-01 13:18:21 -07:00
kuberuntime_sandbox_test.go Symlink docker logs to CRI defined log path. 2016-10-23 19:08:47 -07:00
kuberuntime_sandbox.go CRI: Rename container/sandbox states 2016-11-01 13:18:21 -07:00
labels_test.go Kubelet: implement labels for kuberuntime 2016-08-09 10:01:45 +08:00
labels.go Kubelet: implement GetPods for kuberuntime 2016-08-22 10:59:05 +08:00
legacy.go Add legacy container log location support. 2016-10-23 19:08:47 -07:00