我们在 kube v1.13.10 上。我们在集群中有大约 500 个节点。最近,我开始从大师那里收到有关 DiskPressure 的警报。经过一番检查,我们发现原因是 kube-scheduler 日志。它们的大小增加到每个约 20GB,并且可以有 5 个。而主实例只有 80GB 的磁盘空间。
Logrotate 配置为每小时运行一次,延迟压缩(默认 kops 设置)。日志大多充满了这样的消息
E0929 00:34:27.778731 1 predicates.go:1277] Node not found, ip-10-0-0-1.ec2.internal
E0929 00:34:27.778734 1 predicates.go:1277] Node not found, ip-10-0-0-1.ec2.internal
E0929 00:34:27.778738 1 predicates.go:1277] Node not found, ip-10-0-0-1.ec2.internal
E0929 00:34:27.778742 1 predicates.go:1277] Node not found, ip-10-0-0-1.ec2.internal
E0929 00:34:27.782052 1 predicates.go:1277] Node not found, ip-10-0-0-1.ec2.internal
E0929 00:34:27.782068 1 predicates.go:1277] Node not found, ip-10-0-0-1.ec2.internal
E0929 00:34:27.782073 1 predicates.go:1277] Node not found, ip-10-0-0-1.ec2.internal
E0929 00:34:27.782079 1 predicates.go:1277] Node not found, ip-10-0-0-1.ec2.internal
E0929 00:34:27.782083 1 predicates.go:1277] Node not found, ip-10-0-0-1.ec2.internal
我增加了 master 的磁盘大小。但是为什么会有这么多错误信息?它在 1 小时内生成了 20GB 的日志,我认为这有点极端。我怎样才能避免它?