kwokctl
Auditing
#
This document walks you through how to enable
Audit policy on a kwokctl
cluster
Setup Audit Policy #
cat <<EOF > audit-policy.yaml
apiVersion: audit.k8s.io/v1
kind: Policy
rules:
- level: Metadata
EOF
Create a cluster with audit policy #
kwokctl create cluster --kube-audit-policy audit-policy.yaml
Get audit logs #
kwokctl logs audit