Mohammad Samiullah:
I can’t seem to apply the audit policy and getting this error in the lab section for use audit logs " error: unable to recognize “prod-audit.yaml”: no matches for kind “Policy” in version “http://audit.k8s.io/v1|audit.k8s.io/v1”
Vijin Palazhi:
Are you trying to use kubectl create/apply to create this object? If so, that is incorrect. You should enable this file within the kube-apiserver
1 Like
Oh man - I was dead set on running k apply/create, and getting super frustrated by not getting this to run correctly. Great tip here!
Yeah, it’s not a “resource” in the usual sense. It’s just the format of a config file that kube-apiserver knows about.