diff --git a/content/docs/configuration/extensions/tailer-webhook.md b/content/docs/configuration/extensions/tailer-webhook.md index 5165d1f24..08af39765 100644 --- a/content/docs/configuration/extensions/tailer-webhook.md +++ b/content/docs/configuration/extensions/tailer-webhook.md @@ -23,7 +23,54 @@ Cons: ## Enable webhooks in Logging operator {#enable-webhooks} -> We recommend using `cert-manager` to manage your certificates. Since using `cert-manager` is not part of this article, we assume you already have valid certs. +> We recommend using `cert-manager` to manage your certificates. Below is a really simple command that bootstraps generates the required resources for the `tailer-webhook`. +### Issuing certificates using `cert-manager` {#issue-certificate-cert-manager} + +Follow the [official installation guide](https://cert-manager.io/docs/installation/). + +Once installed the following commands should allow you to create the required certificate for the webhook. + +```bash +kubectl apply -f - <> /var/log/date; - sleep 1; - done - - image: debian - name: sample-container2 -... + name: sample-container + command: ["/bin/sh", "-c"] + args: + - while true; do + date >> /var/log/date; + sleep 1; + done ``` After you have created the pod with the required annotation, make sure that the `test-pod` contains two containers by running `kubectl get pod` @@ -201,15 +246,15 @@ Expected output: ```bash [ - "test", - "legacy-logs-date-log" + "sample-container", + "sample-container-var-log-date" ] ``` Check the logs of the `test` container. Since it writes the logs into a file, it does not produce any logs on stdout. ```bash -kubectl logs test-pod test; echo $? +kubectl logs test-pod sample-container; echo $? ``` Expected output: