@ -83,23 +83,22 @@ You must store your passwords and credentials as a K8s secrets.
### Node.js apps
### Node.js apps
Your Node.js applications must be deployed as a deployment and they must be scaled horizontally automatically, depending on CPU consumption.
This Node.js applications must be deployed as a deployment and they must be scaled horizontally automatically, depending on CPU consumption.
- `api-gateway`:
- `api-gateway`:
max replication: 3
max replication: 3
min replication: 1
min replication: 1
cpu percent trigger: 60%
cpu percent trigger: 60%
- `billing-app`:
max replication: 3
min replication: 1
cpu percent trigger: 60%
- `inventory-app`:
- `inventory-app`:
max replication: 3
max replication: 3
min replication: 1
min replication: 1
cpu percent trigger: 60%
cpu percent trigger: 60%
This Node.js application must be deployed as StatefulSet:
- `billing-app`
### Databases
### Databases
Your databases must be deployed as StatefulSet in your K3s cluster, and you must create volumes that enable containers to move across infrastructure without losing the data.
Your databases must be deployed as StatefulSet in your K3s cluster, and you must create volumes that enable containers to move across infrastructure without losing the data.