Browse Source

chore(devops projects): run prettier

pull/2333/head^2
nprimo 10 months ago committed by MSilva95
parent
commit
b4db2b65e9
  1. 3
      subjects/devops/cloud-design/README.md
  2. 2
      subjects/devops/code-keeper/README.md
  3. 1
      subjects/devops/crud-master/README.md
  4. 3
      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. 3
      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 efficiently. Implement security measures, such as securing the databases and
making private resources accessible only from the Amazon Virtual Private Cloud making private resources accessible only from the Amazon Virtual Private Cloud
(VPC). Incorporate managed authentication for publicly accessible applications (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. varying workloads and unexpected events.
### Hints ### 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. Elastic Load Balancer) and can communicate with each other securely.
<!--TODO: add link to solution for orchestrator--> <!--TODO: add link to solution for orchestrator-->
> Use [this solution]() to kick start you Kubernetes deployment. > Use [this solution]() to kick start you Kubernetes deployment.
### Monitoring and logging: ### Monitoring and logging:

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

@ -183,7 +183,7 @@ pipeline` has been completed. The pipeline should include the following stages:
> Any modification in the application's source code must rebuild and redeploy > Any modification in the application's source code must rebuild and redeploy
> the new version to the `Staging Environment` and then to the `Production > the new version to the `Staging Environment` and then to the `Production
> Environment` after manual approval. Environment` after manual approval.
### Cybersecurity ### Cybersecurity

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

@ -78,7 +78,6 @@ The message it receives should be a stringified JSON object as in this example:
"number_of_items": "5", "number_of_items": "5",
"total_amount": "180" "total_amount": "180"
} }
``` ```
It will parse the message and create a new entry in the `orders` database. It will parse the message and create a new entry in the `orders` database.

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

@ -25,6 +25,7 @@
#### Inventory API Endpoints #### 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`: ##### 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`:
```json ```json
{ {
"user_id": "22", "user_id": "22",

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, architecture, deployments, services, ingresses, and API gateways. Additionally,
this project will provide you with an opportunity to practice DevOps skills this project will provide you with an opportunity to practice DevOps skills
such as containerization, continuous integration, and deployment (CI/CD), and 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 project, you will have a solid understanding of microservices architecture and
the tools and techniques used to deploy and manage such systems using the tools and techniques used to deploy and manage such systems using
Kubernetes. Kubernetes.
@ -48,6 +48,7 @@ consisting of the following components:
services, and it's accessible via port `3000`. services, and it's accessible via port `3000`.
<!--TODO: add link to solution--> <!--TODO: add link to solution-->
> Use the Dockerfiles provided [here](...) > Use the Dockerfiles provided [here](...)
### The cluster ### 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: - `inventory-app`: max replication: 3 min replication: 1 CPU percent trigger:
60% 60%
The `billing-app` must be deployed as *StatefulSet*. The `billing-app` must be deployed as _StatefulSet_.
### Databases ### 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 must create volumes that enable containers to move across infrastructure
without losing the data. without losing the data.

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

@ -8,7 +8,6 @@ infrastructure.
###### Are all the required files present? ###### 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? ###### 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?
- What is scaling, and why do we use it? - 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) ![architecture](./resources/play-with-containers-py.png)
<!--TODO: add link to solution--> <!--TODO: add link to solution-->
You will use the services described in the `crud-master` project. [Here](...) You will use the services described in the `crud-master` project. [Here](...)
is a working solution that you can use to solve this project. is a working solution that you can use to solve this project.

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

@ -173,6 +173,7 @@ user:~$
#### Inventory API Endpoints #### 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`: ##### 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`:
```json ```json
{ {
"user_id": "22", "user_id": "22",

Loading…
Cancel
Save