[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)
## 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
```