Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Mount audit log file to disk (#3335)
Browse files Browse the repository at this point in the history
  • Loading branch information
kichristensen authored and Cecile Robert-Michon committed Jul 13, 2018
1 parent 81cf27c commit bdebc29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions parts/k8s/manifests/kubernetesmaster-kube-apiserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ spec:
readOnly: true
- name: "sock"
mountPath: "/opt"
- name: "auditlog"
mountPath: "/var/log/kubeaudit"
volumes:
- name: "etc-kubernetes"
hostPath:
Expand All @@ -36,3 +38,6 @@ spec:
- name: "sock"
hostPath:
path: "/opt"
- name: "auditlog"
hostPath:
path: "/var/log/kubeaudit"
2 changes: 1 addition & 1 deletion pkg/acsengine/defaults-apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func setAPIServerConfig(cs *api.ContainerService) {
"--advertise-address": "<kubernetesAPIServerIP>",
"--allow-privileged": "true",
"--anonymous-auth": "false",
"--audit-log-path": "/var/log/audit.log",
"--audit-log-path": "/var/log/kubeaudit/audit.log",
"--insecure-port": "8080",
"--secure-port": "443",
"--service-account-lookup": "true",
Expand Down

0 comments on commit bdebc29

Please sign in to comment.