Skip to content

Commit

Permalink
fix audit config format (#9970)
Browse files Browse the repository at this point in the history
  • Loading branch information
CaoShuFeng authored and k8s-ci-robot committed Nov 16, 2018
1 parent 1dd231b commit 28f02d5
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions content/en/docs/tasks/debug-application-cluster/audit.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,24 +329,22 @@ different users into different files.

1. create a [kubeconfig file](/docs/tasks/access-application-cluster/authenticate-across-clusters-kubeconfig/) for kube-apiserver webhook audit backend

```none
$ cat <<EOF > /etc/kubernetes/audit-webhook-kubeconfig
apiVersion: v1
clusters:
- cluster:
server: http://<ip_of_logstash>:8888
name: logstash
contexts:
- context:
cluster: logstash
user: ""
name: default-context
current-context: default-context
kind: Config
preferences: {}
users: []
EOF
```
$ cat <<EOF > /etc/kubernetes/audit-webhook-kubeconfig
apiVersion: v1
clusters:
- cluster:
server: http://<ip_of_logstash>:8888
name: logstash
contexts:
- context:
cluster: logstash
user: ""
name: default-context
current-context: default-context
kind: Config
preferences: {}
users: []
EOF

1. start kube-apiserver with the following options:

Expand Down

0 comments on commit 28f02d5

Please sign in to comment.