← 返回列表

Kubernetes audit log volume

单站 Graham Helton 发布 2025-03-09T00:00:00.000Z 入库 2026-11-18T05:21:09

In case you’re wondering the volume of logs you get from a 2 node kubernetes cluster with only 1 control plane node and 1 worker node running…. Back of the napkin math is \~500 requests/minute.

If you’re logging the at the minimum level (metadata) for the request and response (Technically the RequestReceived and ResponseComplete), this is roughly the volume of logs you’re getting per request. Note, sometimes you don’t need both.

A single request/response at the metadata level

This minimal logging equates to about 1.3KB of data per RequestRecieved/ResponseComplete pair

Some data for an empty minikube cluster with one control plane node and one worker node:

kubectl get nodes ; kubectl get all

So rounding up, you can expect \~1GB of logs per 24 hours in an EMPTY cluster without any tuning of logging. using a SUPER basic log everything approach.

sample audit policy

原文链接:https://grahamhelton.com/blog/kubernetes-audit-log-volume.html