CertGrid CertGrid
Hands-on Lab·Certified Kubernetes Security Specialist

Enabling Kubernetes Audit Logging

Every guide before this one changed something and nothing wrote down who did it. This is the change that fixes that: a policy file, five flags on the apiserver, and an honest look at the volume it produces.

Monitoring and Runtime Guide 32 of 40 Advanced

apiserver v1.36.4 on a single-node kubeadm cluster. The policy is audit.k8s.io/v1, which has been stable since 1.12 and is what the exam uses.

cka8001 is a single untainted node, which is why the apiserver change on this page was made here and nowhere else.
Server NameIP AddressOSRolesCPURAMHDD
CKA8001192.168.0.56Ubuntu 26.04 LTSSingle Node (control plane, untainted)2 Core4 GB50 GB

This guide includes

Use this because nothing before it wrote down who did what. This matters because a kubeadm cluster records nothing by default - and the policy file, rather than the flag, is where the whole design lives.

Before you start

  1. What this cluster records today

  2. The policy, which is the whole design

  3. Turn it on

  4. The first thing it recorded

Official sources