From 8384c09911465b2ec883997fbb66c2b1b5260e7c Mon Sep 17 00:00:00 2001 From: mw Date: Thu, 22 Dec 2022 17:13:29 +0100 Subject: [PATCH] reformat readme for easier copy+paste --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0a4e89c..81deeb1 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ free to use the supplied examples as starting point: ## Docker ``` -$ docker run -v $(pwd)/example_configs/fetchmailrc:/.fetchmailrc -v $(pwd)/example_configs/pmmlrc:/.pmmlrc -it pmml:0.1.4 +docker run -v $(pwd)/example_configs/fetchmailrc:/.fetchmailrc -v $(pwd)/example_configs/pmmlrc:/.pmmlrc -it pmml:0.1.4 ``` ## Kubernetes @@ -22,18 +22,21 @@ the pod executing pmml. First create the secrets: ``` -$ kubectl create secret generic pmml-pmmlrc --from-file example_configs/pmmlrc -n pmml -$ kubectl create secret generic pmml-fetchmailrc --from-file example_configs/fetchmailrc -n pmml +kubectl create secret generic pmml-pmmlrc --from-file example_configs/pmmlrc -n pmml +``` + +``` +kubectl create secret generic pmml-fetchmailrc --from-file example_configs/fetchmailrc -n pmml ``` Afterwards create the deployment: ``` -$ kubectl -n pmml apply -f example_configs/pmml_deployment.yml +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: ``` -$ kubectl -n pmml delete pod $(kubectl -n pmml get pods | tail -1 | awk '{print $1}') +kubectl -n pmml delete pod $(kubectl -n pmml get pods | tail -1 | awk '{print $1}') ```