Skip to content

Commit 894c9c5

Browse files
authored
Merge pull request #1 from lexxnsk/task_5
Task 5
2 parents 66cbbc5 + c3267f8 commit 894c9c5

File tree

5 files changed

+68
-4
lines changed

5 files changed

+68
-4
lines changed

PR_descriptions/task_5.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Task 4 - Pull Request description
2+
1. Task: [CLICK ME](https://github.com/rolling-scopes-school/tasks/blob/master/devops/modules/3_ci-configuration/task_5.md)
3+
2. Screenshots (if needed): Check ./screenshots/ folder
4+
3. Code: [CLICK ME](https://github.com/lexxnsk/rsschool-devops-course-tasks-application/tree/task_5)
5+
4. Done 2024-11-09 19:00 / deadline 2024-11-11 00:59
6+
5. Score: 100 / 100
7+
8+
###### Evaluation Criteria (100 points for covering all criteria)
9+
10+
1. **Helm Chart Creation (40 points)**
11+
12+
- [+] A Helm chart for the WordPress application is created.
13+
14+
2. **Application Deployment (30 points)**
15+
16+
- [+] The application is deployed using the Helm chart.
17+
- [+] The application is accessible from the internet.
18+
19+
3. **Repository Submission (5 points)**
20+
21+
- [+] A new repository is created with the WordPress and Helm chart.
22+
23+
4. **Verification (5 points)**
24+
25+
- [+] The application is verified to be running and accessible.
26+
27+
5. **Additional Tasks (20 points)**
28+
- **CI/CD Pipeline (10 points)**
29+
- [+] A CI/CD pipeline is set up to automate the deployment of the application.
30+
- **Documentation (10 points)**
31+
- [+] The application setup and deployment process are documented in a README file.

README.md

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ This repository contains all necessary resources and configurations to deploy an
1111
├── screenshots/
1212
├── .gitignore
1313
├── README.md
14-
├── jenkins-sa.yaml
15-
├── jenkins-values.yaml
16-
├── jenkins-volume.yaml
1714
```
1815

1916
### Directory & File Overview
@@ -135,4 +132,40 @@ sudo python3 -m http.server 32000
135132

136133
---
137134
## Task 5 clarifications:
138-
**XXXXXXXXXXXXXXXXXXXXXXx:**
135+
**Helm Chart file structure description:**
136+
WordPress Helm Chart has next file structure:
137+
```
138+
tree helm-charts/wordpress
139+
helm-charts/wordpress
140+
├── Chart.yaml
141+
├── templates
142+
│ ├── deployment-mariadb.yaml
143+
│ ├── deployment-wordpress.yaml
144+
│ ├── service-mariadb.yaml
145+
│ └── service-wordpress.yaml
146+
├── values.yaml
147+
├── wordpress-deployment.yaml
148+
└── wordpress-service.yaml
149+
```
150+
151+
- **```Chart.yaml```**:
152+
This is the metadata file for the Helm chart. It contains essential information about the chart, such as its name, version, description, and dependencies.
153+
- **```templates/deployment-mariadb.yaml```**:
154+
This file defines the Kubernetes deployment for the MariaDB database. It specifies how the MariaDB container should be deployed, the replica count, container image, and other configurations specific to the database.
155+
- **```templates/deployment-wordpress.yaml```**:
156+
This file defines the Kubernetes deployment for the WordPress application. It specifies how the WordPress container should be deployed, including settings such as replicas, container images, and environment variables like the database connection.
157+
- **```templates/service-mariadb.yaml```**:
158+
This file defines the Kubernetes service for MariaDB, allowing communication between the WordPress application and the database. It exposes MariaDB internally within the cluster to other services, such as WordPress.
159+
- **```templates/service-wordpress.yaml```**:
160+
This file defines the Kubernetes service for WordPress. It exposes the WordPress application to external traffic and allows access to the application from outside the Kubernetes cluster.
161+
- **```values.yaml```**:
162+
This file contains the default configuration values for the Helm chart. It provides values for various parameters like image versions, replica counts, database credentials, and other configurable aspects of the WordPress and MariaDB deployments. These values can be overridden during the Helm installation or upgrade process.
163+
## How to Use it manually:
164+
**Helm CLI:**
165+
```
166+
kubectl create namespace wordpress
167+
helm install wordpress helm-charts/wordpress --namespace wordpress
168+
```
169+
## How to Use it automatically:
170+
**GitHub Actions:**
171+
Before committing, check the ```.github/workflows/deploy-wordpress.yaml.yml``` file and update the branch name to trigger the GitHub workflow automatically.​

helm-charts/wordpress/wordpress-deployment.yaml

Whitespace-only changes.

helm-charts/wordpress/wordpress-service.yaml

Whitespace-only changes.
Loading

0 commit comments

Comments
 (0)