Skip to content

Instantly share code, notes, and snippets.

@noqcks
Created March 31, 2018 19:44
Show Gist options
  • Save noqcks/4851836ce7ffd6a7611ee99c4f5a9789 to your computer and use it in GitHub Desktop.
Save noqcks/4851836ce7ffd6a7611ee99c4f5a9789 to your computer and use it in GitHub Desktop.
spec:
fileAssets:
— name: kubernetes-audit
path: /srv/kubernetes/audit.yaml
# which type of instances to appy the file
roles: [Master]
content: |
<audit policy here>
kubeAPIServer:
auditLogPath: /var/log/kube-apiserver-audit.log
auditLogMaxAge: 10 # num days
auditLogMaxBackups: 1 # the num of audit logs to retain
auditLogMaxSize: 100 # the max size in MB to retain
auditPolicyFile: /srv/kubernetes/audit.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment