This commit is contained in:
marcel-dempers 2020-09-27 11:48:18 +10:00 committed by Marcel Dempers
parent 19289fd9cf
commit 6508a2ad22

View File

@ -89,7 +89,7 @@ This is intentional to demonstrate a busy network.
<br/>
## Full architecture
## Full application architecture
<hr/>
<br/>
@ -106,6 +106,30 @@ This is intentional to demonstrate a busy network.
| | | |
+------------+ +-----------+
```
## Adding an Ingress Controller
Adding an ingress controller allows us to route all our traffic. </br>
We setup a `host` file with entry `demo.com 127.0.0.1`
And `port-forward` to the `ingress-controller`
```
demo.com/home --> videos-web
demo.com/api/playlists --> playlists-api
+-------------------+ demo.com/home +------------+ +---------------+ +--------------+
|ingress-nginx +----------------->+ videos+web +---->+ playlists+api +--->+ playlists+db |
|Ingress controller | | | | | | |
+---------+---------+ +------------+ +-----+---------+ +--------------+
| |
| v
| demo.com api/playlists +-----+------+ +-----------+
+---------------------------------------------> | videos+api +------>+ videos+db |
| | | |
+------------+ +-----------+
```
<br/>