##### Open Postman and make a `POST` request to `http://[GATEWAY_IP]:[GATEWAY_PORT]/api/movies/` address with the following body as `Content-Type: application/json`:
##### Open Postman and make a `POST` request to `http://[GATEWAY_IP]:[GATEWAY_PORT]/api/movies/` address with the following body as `Content-Type: application/json`:
```json
```json
{
{
"title": "A new movie",
"title": "A new movie",
@ -55,6 +56,7 @@
#### Billing API Endpoints
#### Billing API Endpoints
##### Open Postman and make a `POST` request to `http://[GATEWAY_IP]:[GATEWAY_PORT]/api/billing/` address with the following body as `Content-Type: application/json`:
##### Open Postman and make a `POST` request to `http://[GATEWAY_IP]:[GATEWAY_PORT]/api/billing/` address with the following body as `Content-Type: application/json`:
```json
```json
{
{
"user_id": "20",
"user_id": "20",
@ -70,6 +72,7 @@
###### Can you confirm the `billing_app` API was correctly stopped?
###### Can you confirm the `billing_app` API was correctly stopped?
##### Open Postman and make a `POST` request to `http://[GATEWAY_IP]:[GATEWAY_PORT]/api/billing/` address with the following body as `Content-Type: application/json`:
##### Open Postman and make a `POST` request to `http://[GATEWAY_IP]:[GATEWAY_PORT]/api/billing/` address with the following body as `Content-Type: application/json`:
###### Does the project as a structure similar to the one below? If not, can the student provide a justification for the chosen project structure?
###### Does the project as a structure similar to the one below? If not, can the student provide a justification for the chosen project structure?
```console
```console
@ -22,7 +21,6 @@ infrastructure.
└── Vagrantfile
└── Vagrantfile
```
```
##### Ask the following questions to the group or student
##### Ask the following questions to the group or student
- What is container orchestration, and what are its benefits?
- What is container orchestration, and what are its benefits?
@ -67,7 +65,7 @@ $>
###### Was the cluster created by a Vagrantfile?
###### Was the cluster created by a Vagrantfile?
###### Does the cluster contain two nodes (*master* and *agent*)?
###### Does the cluster contain two nodes (_master_ and _agent_)?
###### Are the nodes connected and ready for usage?
###### Are the nodes connected and ready for usage?
@ -133,7 +131,7 @@ user:~$
###### Are all the required applications deployed?
###### Are all the required applications deployed?
- Databases must be deployed as *StatefulSet*, and volumes that enable containers to move across infrastructure without losing the data must be created.
- Databases must be deployed as _StatefulSet_, and volumes that enable containers to move across infrastructure without losing the data must be created.
- The following applications must be deployed as a deployment, and they must be scaled horizontally automatically, depending on CPU consumption:
- The following applications must be deployed as a deployment, and they must be scaled horizontally automatically, depending on CPU consumption:
@ -147,17 +145,17 @@ user:~$
min replication: 1
min replication: 1
CPU percent trigger: 60%
CPU percent trigger: 60%
The `billing-app` must be deployed as *StatefulSet*.
The `billing-app` must be deployed as _StatefulSet_.
###### Do all apps deploy with the correct configuration?
###### Do all apps deploy with the correct configuration?
##### Ask the following questions to the group or student
##### Ask the following questions to the group or student
- What is *StatefulSet* in K8s?
- What is _StatefulSet_ in K8s?
- What is *deployment* in K8s?
- What is _deployment_ in K8s?
- What is the difference between *deployment* and *StatefulSet* in K8s?
- What is the difference between _deployment_ and _StatefulSet_ in K8s?
##### Open Postman and make a `POST` request to `http://[GATEWAY_IP]:[GATEWAY_PORT]/api/movies/` address with the following body as `Content-Type: application/json`:
##### Open Postman and make a `POST` request to `http://[GATEWAY_IP]:[GATEWAY_PORT]/api/movies/` address with the following body as `Content-Type: application/json`:
```json
```json
{
{
"title": "A new movie",
"title": "A new movie",
@ -189,6 +190,7 @@ user:~$
#### Billing API Endpoints
#### Billing API Endpoints
##### Open Postman and make a `POST` request to `http://[GATEWAY_IP]:[GATEWAY_PORT]/api/billing/` address with the following body as `Content-Type: application/json`:
##### Open Postman and make a `POST` request to `http://[GATEWAY_IP]:[GATEWAY_PORT]/api/billing/` address with the following body as `Content-Type: application/json`:
```json
```json
{
{
"user_id": "20",
"user_id": "20",
@ -204,6 +206,7 @@ user:~$
###### Can you confirm the `billing-app` container was correctly stopped?
###### Can you confirm the `billing-app` container was correctly stopped?
##### Open Postman and make a `POST` request to `http://[GATEWAY_IP]:[GATEWAY_PORT]/api/billing/` address with the following body as `Content-Type: application/json`:
##### Open Postman and make a `POST` request to `http://[GATEWAY_IP]:[GATEWAY_PORT]/api/billing/` address with the following body as `Content-Type: application/json`: