Browse Source

chore(devops projects): run prettier

pull/2333/head^2
nprimo 1 year ago committed by MSilva95
parent
commit
b4db2b65e9
  1. 3
      subjects/devops/cloud-design/README.md
  2. 4
      subjects/devops/code-keeper/README.md
  3. 13
      subjects/devops/crud-master/README.md
  4. 19
      subjects/devops/crud-master/audit/README.md
  5. 7
      subjects/devops/orchestrator/README.md
  6. 14
      subjects/devops/orchestrator/audit/README.md
  7. 1
      subjects/devops/play-with-containers/README.md
  8. 19
      subjects/devops/play-with-containers/audit/README.md

3
subjects/devops/cloud-design/README.md

@ -19,7 +19,7 @@ monitoring, logging, and scaling to ensure that the application runs
efficiently. Implement security measures, such as securing the databases and
making private resources accessible only from the Amazon Virtual Private Cloud
(VPC). Incorporate managed authentication for publicly accessible applications
using *AWS Cognito* or a similar service. Optimize the application to handle
using _AWS Cognito_ or a similar service. Optimize the application to handle
varying workloads and unexpected events.
### Hints
@ -156,6 +156,7 @@ AWS ECS or EKS. Ensure that the services are load-balanced (consider using AWS
Elastic Load Balancer) and can communicate with each other securely.
<!--TODO: add link to solution for orchestrator-->
> Use [this solution]() to kick start you Kubernetes deployment.
### Monitoring and logging:

4
subjects/devops/code-keeper/README.md

@ -177,13 +177,13 @@ pipeline` has been completed. The pipeline should include the following stages:
`production environment`. This step should involve stakeholders and ensure
the application is ready for production.
- `Deploy to Production`: Deploy the application to the `production
environment`, ensuring zero downtime and a smooth rollout.
environment`, ensuring zero downtime and a smooth rollout.
> Each repository must have a pipeline!
> Any modification in the application's source code must rebuild and redeploy
> the new version to the `Staging Environment` and then to the `Production
> Environment` after manual approval.
Environment` after manual approval.
### Cybersecurity

13
subjects/devops/crud-master/README.md

@ -74,11 +74,10 @@ The message it receives should be a stringified JSON object as in this example:
```json
{
"user_id": "3",
"number_of_items": "5",
"total_amount": "180"
"user_id": "3",
"number_of_items": "5",
"total_amount": "180"
}
```
It will parse the message and create a new entry in the `orders` database.
@ -130,9 +129,9 @@ An example of POST request to `http://[API_GATEWAY_URL]:[API_GATEWAY_PORT]/api/b
```json
{
"user_id": "3",
"number_of_items": "5",
"total_amount": "180"
"user_id": "3",
"number_of_items": "5",
"total_amount": "180"
}
```

19
subjects/devops/crud-master/audit/README.md

@ -25,10 +25,11 @@
#### Inventory API Endpoints
##### 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
{
"title": "A new movie",
"description": "Very short description"
"title": "A new movie",
"description": "Very short description"
}
```
@ -55,11 +56,12 @@
#### 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`:
```json
{
"user_id": "20",
"number_of_items": "99",
"total_amount": "250"
"user_id": "20",
"number_of_items": "99",
"total_amount": "250"
}
```
@ -70,11 +72,12 @@
###### 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`:
```json
{
"user_id": "22",
"number_of_items": "10",
"total_amount": "50"
"user_id": "22",
"number_of_items": "10",
"total_amount": "50"
}
```

7
subjects/devops/orchestrator/README.md

@ -9,7 +9,7 @@ you will gain experience with key technologies and concepts such as Kubernetes
architecture, deployments, services, ingresses, and API gateways. Additionally,
this project will provide you with an opportunity to practice DevOps skills
such as containerization, continuous integration, and deployment (CI/CD), and
infrastructure as code (*IaC*) using Kubernetes manifests. By completing this
infrastructure as code (_IaC_) using Kubernetes manifests. By completing this
project, you will have a solid understanding of microservices architecture and
the tools and techniques used to deploy and manage such systems using
Kubernetes.
@ -48,6 +48,7 @@ consisting of the following components:
services, and it's accessible via port `3000`.
<!--TODO: add link to solution-->
> Use the Dockerfiles provided [here](...)
### The cluster
@ -111,11 +112,11 @@ must be scaled horizontally automatically, depending on CPU consumption.
- `inventory-app`: max replication: 3 min replication: 1 CPU percent trigger:
60%
The `billing-app` must be deployed as *StatefulSet*.
The `billing-app` must be deployed as _StatefulSet_.
### Databases
Your databases must be deployed as *StatefulSet* in your K3s cluster, and you
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.

14
subjects/devops/orchestrator/audit/README.md

@ -8,7 +8,6 @@ infrastructure.
###### Are all the required files present?
###### 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
@ -22,7 +21,6 @@ infrastructure.
└── Vagrantfile
```
##### Ask the following questions to the group or student
- What is container orchestration, and what are its benefits?
@ -67,7 +65,7 @@ $>
###### 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?
@ -133,7 +131,7 @@ user:~$
###### 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:
@ -147,17 +145,17 @@ user:~$
min replication: 1
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?
##### 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?
- What is scaling, and why do we use it?

1
subjects/devops/play-with-containers/README.md

@ -50,6 +50,7 @@ You have to implement this architecture:
![architecture](./resources/play-with-containers-py.png)
<!--TODO: add link to solution-->
You will use the services described in the `crud-master` project. [Here](...)
is a working solution that you can use to solve this project.

19
subjects/devops/play-with-containers/audit/README.md

@ -173,10 +173,11 @@ user:~$
#### Inventory API Endpoints
##### 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
{
"title": "A new movie",
"description": "Very short description"
"title": "A new movie",
"description": "Very short description"
}
```
@ -189,11 +190,12 @@ user:~$
#### 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`:
```json
{
"user_id": "20",
"number_of_items": "99",
"total_amount": "250"
"user_id": "20",
"number_of_items": "99",
"total_amount": "250"
}
```
@ -204,11 +206,12 @@ user:~$
###### 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`:
```json
{
"user_id": "22",
"number_of_items": "10",
"total_amount": "50"
"user_id": "22",
"number_of_items": "10",
"total_amount": "50"
}
```

Loading…
Cancel
Save