In this lab, you will explore the principles of GitOps and Site Reliability Engineering (SRE). Follow the tasks below to complete the lab assignment.
Objective: Monitor system resources and manage disk space.
-
Monitor System Resources:
- Use commands like
htop
andiostat
to monitor CPU, memory, and I/O usage. - Identify and document the top 3 most consuming applications for CPU, memory, and I/O usage in a
submission5.md
file.
- Use commands like
-
Disk Space Management:
- Use
du
anddf
to manage disk space. - Identify and log the top 3 largest files in the
/var
directory in thesubmission5.md
file.
- Use
-
Documentation:
- Create a
submission5.md
file. - Provide the output and analysis of the monitored metrics and disk space management.
- Create a
Objective: Install Terraform and deploy an Nginx container.
-
Research and Installation:
- Read about Terraform.
- Install Terraform on your system by following the official instructions.
-
Nginx Deployment:
- Follow the tutorial steps to build, change, and destroy infrastructure.
- Define variables and query data with outputs.
- Document your process.
-
Publish Configuration Files:
- Create a
lab5
folder in your repository. - Include all Terraform configuration files used in the tutorial in this folder.
- Create a
-
Documentation:
- Create a Markdown file named
TerraformAndNginx.md
in thelab5
folder. - Include the following details:
- The version number of Terraform installed.
- Steps followed to install Terraform.
- Commands executed to initialize and apply the Terraform configuration.
- Observations or challenges encountered during the installation and deployment process.
- Create a Markdown file named
- Use proper Markdown formatting and structure for the documentation files.
- Organize the files within the lab folder using appropriate naming conventions.
- Create a Pull Request to the main branch of the repository with your completed lab assignment.
Note: Actively explore SRE metrics and SLAs to understand their importance in measuring system reliability. Additionally, gain hands-on experience with Terraform by provisioning infrastructure and deploying an Nginx container.