Search code examples
kubernetesgoogle-kubernetes-engineaudit-logging

How do I enable audit logging for Google Container Engine?


Running a GKE cluster with 1.8.1 - when I look at /logs/kube-apiserver-audit.log, it's completely empty. I've taken actions like creating deployments and deleting pods that have been visible in audit logs for clusters I've provisioned outside of GKE.

Is there a better way to view or access these kinds of events with GKE?


Solution

  • That would be because Container Engine 1.8 release does not enable the audit logging feature yet. From Release Notes:

    KNOWN ISSUE: Audit Logging, a beta feature in Kubernetes 1.8, is currently not enabled on Container Engine.

    It will probably be enabled at some point in the future, I’d keep an eye on the Release Notes.