From 2d92ef013711d8107ed3c368c3eb11a18b90b560 Mon Sep 17 00:00:00 2001 From: mw Date: Thu, 22 Dec 2022 18:31:56 +0100 Subject: [PATCH] reformat readme --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 81deeb1..30a55d5 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ free to use the supplied examples as starting point: ## Docker -``` +```sh docker run -v $(pwd)/example_configs/fetchmailrc:/.fetchmailrc -v $(pwd)/example_configs/pmmlrc:/.pmmlrc -it pmml:0.1.4 ``` @@ -21,22 +21,22 @@ If using kubernetes the configuration files should be injected as secret into the pod executing pmml. First create the secrets: -``` +```sh kubectl create secret generic pmml-pmmlrc --from-file example_configs/pmmlrc -n pmml ``` -``` +```sh kubectl create secret generic pmml-fetchmailrc --from-file example_configs/fetchmailrc -n pmml ``` Afterwards create the deployment: -``` +```sh kubectl -n pmml apply -f example_configs/pmml_deployment.yml ``` ## Updating secrets After updating either of the supplied secrets you will need to restart the pmml pod: -``` +```sh kubectl -n pmml delete pod $(kubectl -n pmml get pods | tail -1 | awk '{print $1}') ```