From 58dcb32e325f131d7c4a896f0e1d80a6548c758a Mon Sep 17 00:00:00 2001 From: makocchi Date: Tue, 2 Apr 2019 01:20:35 +0900 Subject: [PATCH] remove command prompts (#13418) --- .../docs/tasks/debug-application-cluster/audit.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/content/en/docs/tasks/debug-application-cluster/audit.md b/content/en/docs/tasks/debug-application-cluster/audit.md index 87b7f5ef5e..d4f1de7928 100644 --- a/content/en/docs/tasks/debug-application-cluster/audit.md +++ b/content/en/docs/tasks/debug-application-cluster/audit.md @@ -275,8 +275,8 @@ Fluent-plugin-forest and fluent-plugin-rewrite-tag-filter are plugins for fluent 1. create a config file for fluentd - ```none - $ cat <<'EOF' > /etc/fluentd/config + ``` + cat <<'EOF' > /etc/fluentd/config # fluentd conf runs in the same host with kube-apiserver @type tail @@ -331,7 +331,7 @@ Fluent-plugin-forest and fluent-plugin-rewrite-tag-filter are plugins for fluent 1. start fluentd ```shell - $ fluentd -c /etc/fluentd/config -vv + fluentd -c /etc/fluentd/config -vv ``` 1. start kube-apiserver with the following options: @@ -349,10 +349,11 @@ we will use logstash to collect audit events from webhook backend, and save even different users into different files. 1. install [logstash][logstash_install_doc] + 1. create config file for logstash - ```none - $ cat < /etc/logstash/config + ``` + cat < /etc/logstash/config input{ http{ #TODO, figure out a way to use kubeconfig file to authenticate to logstash @@ -384,12 +385,12 @@ different users into different files. 1. start logstash ```shell - $ bin/logstash -f /etc/logstash/config --path.settings /etc/logstash/ + bin/logstash -f /etc/logstash/config --path.settings /etc/logstash/ ``` 1. create a [kubeconfig file](/docs/tasks/access-application-cluster/authenticate-across-clusters-kubeconfig/) for kube-apiserver webhook audit backend - $ cat < /etc/kubernetes/audit-webhook-kubeconfig + cat < /etc/kubernetes/audit-webhook-kubeconfig apiVersion: v1 clusters: - cluster: