Is it enabled by default? How could I set up an example audit log?
I've tried:
minikube start --extra-config=apiserver.Authorization.Mode=RBAC --extra-config=apiserver.Audit.LogOptions.Path=/var/log/apiserver/audit.log --extra-config=apiserver.Audit.LogOptions.MaxAge=30 --extra-config=apiserver.Audit.LogOptions.MaxSize=100 --extra-config=apiserver.Audit.LogOptions.MaxBackups=5
I'm also busy reading through (trying out all the options might take a while as minikube start ...
is not a quick process): https://github.com/kubernetes/minikube/issues/1609
As far as I know and as per all available information: There is no way no enable audit log on minikube. Its under implementation right now and lets hope kube team will shortly release this feature.
来源:https://stackoverflow.com/questions/51602129/how-do-i-enable-an-audit-log-on-minikube