Skip to content

Commit 83c5378

Browse files
authored
Merge pull request #9 from paraskuk/dev
add terraform logo
2 parents b4981cb + 6e2c51e commit 83c5378

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

README.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
![Rust_programming_language_black_logo.svg.png](img/Rust_programming_language_black_logo.svg.png)
2+
![Terraform_Logo.png](img/Terraform_Logo.png)
23
![Kubernetes_logo_without_workmark.svg.png](img/Kubernetes_logo_without_workmark.svg.png)
34
![Prometheus_software_logo.svg.png](img/Prometheus_software_logo.svg.png)
45
![Grafana_logo.svg.png](img/Grafana_logo.svg.png)
@@ -71,6 +72,35 @@ docker tag fibonacci_rust:latest ${DOCKER_USERNAME}/fibonacci_rust:v24
7172
docker push ${DOCKER_USERNAME}/fibonacci_rust:v24
7273
```
7374

75+
## 1. Deploying the Application to Kubernetes via Terraform
76+
> [!TIP]
77+
> This repository includes a simple Terraform module (in the terraform/ directory) that deploys the fibonacci container into Kubernetes. The key files are:
78+
> - main.tf – Terraform configuration.
79+
80+
### 1.1 Deploy the Application
81+
> [!TIP]
82+
> Navigate to the terraform/ directory and run the following commands to deploy the application:
83+
```sh
84+
terraform init
85+
```
86+
87+
```sh
88+
terraform validate
89+
```
90+
91+
```sh
92+
terraform apply
93+
```
94+
95+
- Once all resources are deployed you can start the minikube service to access the application.
96+
```sh
97+
minikube service fibonacci-service
98+
```
99+
100+
- You can go to this section to see about monitoring [2.5 Monitoring the Application with Prometheus and Grafana](#25-monitoring-the-application-with-prometheus-and-grafana)
101+
102+
103+
74104
## 2. Deploying the Application to Kubernetes
75105
### 2.1 Deploy via Helm Charts - Helm Chart Overview
76106
> [!TIP]
@@ -136,7 +166,7 @@ minikube service fibonacci-service
136166
kubectl exec -it <your-pod-name> -- /bin/sh
137167
cat fibonacci.log
138168
```
139-
2.5 Monitoring the Application with Prometheus and Grafana
169+
### 2.5 Monitoring the Application with Prometheus and Grafana
140170
> [!TIP]
141171
> You can monitor the application using Prometheus and Grafana.
142172

img/Terraform_Logo.png

5.31 KB
Loading

0 commit comments

Comments
 (0)