[mirotlak] - update readme

This commit is contained in:
Miroslav Pejic
2023-05-26 12:31:46 +02:00
parent 3c1f3fee0a
commit 33b7dc2f62
+12 -12
View File
@@ -1,14 +1,14 @@
# Kubernetes deployment # k8s deployment
![k8s](../public/images/k8s.png) ![k8s](../public/images/k8s.png)
## TLDR; and do not care way ## TLDR; and do not care way
```bash ```bash
make $ make
sed -i s/localhost/myshinydomain.tld/g env.txt $ sed -i s/localhost/myshinydomain.tld/g env.txt
make prepare $ make prepare
make deploy $ make deploy
``` ```
# Understanding way # 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 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 you should copy `../.env.template` to current directory as `env.txt` and edit values inside to your liking
``` ```bash
cp ../.env.template env.txt $ 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), 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/)) 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/))
``` ```bash
sed -i s/localhost/myshinydomain.tld/g env.txt $ sed -i s/localhost/myshinydomain.tld/g env.txt
``` ```
## p2p-deployment.yaml ## p2p-deployment.yaml
@@ -60,8 +60,8 @@ and deployment will create configMap from prepared `env.txt` file.
Please run after reading all this: Please run after reading all this:
```bash ```bash
make $ make
# edit env.txt or use sed as in TLDR section :) # edit env.txt or use sed as in TLDR section :)
make prepare $ make prepare
make deploy $ make deploy
``` ```