From 33b7dc2f620ee585c6dd4655d20a0439901d5a56 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Fri, 26 May 2023 12:31:46 +0200 Subject: [PATCH] [mirotlak] - update readme --- kubernetes/README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/kubernetes/README.md b/kubernetes/README.md index 2988c4b6..499cd4ac 100644 --- a/kubernetes/README.md +++ b/kubernetes/README.md @@ -1,14 +1,14 @@ -# Kubernetes deployment +# k8s deployment ![k8s](../public/images/k8s.png) ## TLDR; and do not care way ```bash -make -sed -i s/localhost/myshinydomain.tld/g env.txt -make prepare -make deploy +$ make +$ sed -i s/localhost/myshinydomain.tld/g env.txt +$ make prepare +$ make deploy ``` # Understanding way @@ -23,15 +23,15 @@ Bellow is explanation of files in this folder which will form one output file in Configuration file that is for now used to configure deployment you should copy `../.env.template` to current directory as `env.txt` and edit values inside to your liking -``` -cp ../.env.template env.txt +```bash +$ cp ../.env.template env.txt ``` Change values (if nothing else **HOST** variable must be changed so your ingress would recognize it and send requests to your deployed application), if you do not have public domain you can use free service called [nip.io](https://nip.io/) with domain like `p2p.192-168-1-1.nip.io` (or [sslip.io](https://sslip.io/)) -``` -sed -i s/localhost/myshinydomain.tld/g env.txt +```bash +$ sed -i s/localhost/myshinydomain.tld/g env.txt ``` ## p2p-deployment.yaml @@ -60,8 +60,8 @@ and deployment will create configMap from prepared `env.txt` file. Please run after reading all this: ```bash -make +$ make # edit env.txt or use sed as in TLDR section :) -make prepare -make deploy +$ make prepare +$ make deploy ```