我们在 Google Cloud Platform Kubernetes 集群中有一个 pod,将 JsonFormatted 写入 StdOut。这是 Stackdriver 开箱即用的。但是,我们看到 pod 的磁盘使用量一直在增长,我们无法理解如何在 Deployment 上设置最大大小以进行日志轮换。
Google Cloud 和 Kubernetes 上的文档对此不清楚。
这只是最后一个小时:
logging log-rotation google-cloud-platform kubernetes kubernetes-pod