# anasb7/tp_devopstp_kubernetes architecture

> Architecture diagram of the GitHub repository anasb7/tp_devopstp_kubernetes, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/anasb7/tp_devopstp_kubernetes
- Repository: https://github.com/anasb7/tp_devopstp_kubernetes

## Overview

This repository is a hands-on Kubernetes lesson for deploying a pre-existing Guestbook application, rather than the application itself. The workflow moves from preparing and exploring a local cluster to running a Pod, then a replicated Deployment exposed by a Service, and finally parameterizing those resources with Helm. The README also introduces Redis as the application’s database. Source excerpts were not provided, so relationships below rely only on the documented workflow; the Redis deployment details are not shown.

Main entry points: [`chart/values.yaml`](https://github.com/anasb7/tp_devopstp_kubernetes/blob/main/chart/values.yaml) (Chart values), [`pod.yaml`](https://github.com/anasb7/tp_devopstp_kubernetes/blob/main/pod.yaml) (Pod manifest), [`deployment.yaml`](https://github.com/anasb7/tp_devopstp_kubernetes/blob/main/deployment.yaml) (Deployment manifest), [`service.yaml`](https://github.com/anasb7/tp_devopstp_kubernetes/blob/main/service.yaml) (Service manifest)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_lesson["Learning workflow"]
  node_minikube["Minikube"]
  node_kubectl["kubectl"]
  node_cluster["Kubernetes cluster"]
end

subgraph group_workloads["Kubernetes workloads"]
  node_guestbook_image["Guestbook image"]
  node_pod_manifest["Pod manifest<br/>[pod.yaml]"]
  node_deployment_manifest["Deployment manifest<br/>[deployment.yaml]"]
  node_service_manifest["Service manifest<br/>[service.yaml]"]
  node_guestbook_workload["Guestbook workload"]
  node_guestbook_service["Guestbook Service"]
  node_redis[("Redis database")]
end

subgraph group_helm["Helm chart"]
  node_helm["Helm"]
  node_chart_values["Chart values<br/>[values.yaml]"]
  node_chart_deployment["Deployment template<br/>[deployment.yaml]"]
  node_chart_service["Service template<br/>[service.yaml]"]
  node_chart_metadata["Chart metadata<br/>[Chart.yaml]"]
end

node_learner(("Learner"))

node_learner -->|"starts cluster"| node_minikube
node_learner -->|"runs commands"| node_kubectl
node_kubectl -->|"inspects resources"| node_cluster
node_learner -->|"creates manifest"| node_pod_manifest
node_kubectl -->|"deploys"| node_pod_manifest
node_pod_manifest -->|"describes Pod"| node_guestbook_workload
node_guestbook_image -->|"runs in"| node_guestbook_workload
node_learner -->|"creates manifest"| node_deployment_manifest
node_kubectl -->|"deploys"| node_deployment_manifest
node_deployment_manifest -->|"describes replicas"| node_guestbook_workload
node_learner -->|"creates manifest"| node_service_manifest
node_kubectl -->|"deploys"| node_service_manifest
node_service_manifest -->|"describes access"| node_guestbook_service
node_guestbook_service -->|"selects pods"| node_guestbook_workload
node_learner -->|"deploys chart"| node_helm
node_helm -->|"reads values"| node_chart_values
node_helm -->|"renders template"| node_chart_deployment
node_helm -->|"renders template"| node_chart_service
node_chart_values -->|"parameterizes"| node_chart_deployment
node_chart_values -->|"parameterizes"| node_chart_service
node_chart_deployment -->|"describes replicas"| node_guestbook_workload
node_chart_service -->|"describes access"| node_guestbook_service
node_helm -->|"uses chart"| node_chart_metadata
node_learner -->|"adds database"| node_redis
node_redis -.->|"stores messages"| node_guestbook_workload

click node_pod_manifest "https://github.com/anasb7/tp_devopstp_kubernetes/blob/main/pod.yaml"
click node_deployment_manifest "https://github.com/anasb7/tp_devopstp_kubernetes/blob/main/deployment.yaml"
click node_service_manifest "https://github.com/anasb7/tp_devopstp_kubernetes/blob/main/service.yaml"
click node_chart_values "https://github.com/anasb7/tp_devopstp_kubernetes/blob/main/chart/values.yaml"
click node_chart_deployment "https://github.com/anasb7/tp_devopstp_kubernetes/blob/main/chart/templates/deployment.yaml"
click node_chart_service "https://github.com/anasb7/tp_devopstp_kubernetes/blob/main/chart/templates/service.yaml"
click node_chart_metadata "https://github.com/anasb7/tp_devopstp_kubernetes/blob/main/chart/Chart.yaml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_minikube,node_kubectl,node_cluster toneBlue
class node_guestbook_image,node_pod_manifest,node_deployment_manifest,node_service_manifest,node_guestbook_workload,node_guestbook_service,node_redis toneAmber
class node_helm,node_chart_values,node_chart_deployment,node_chart_service,node_chart_metadata toneMint
class node_learner toneIndigo
```

## Components

### Learning workflow

- **Minikube**
- **kubectl**
- **Kubernetes cluster**

### Kubernetes workloads

- **Guestbook image**
- [Pod manifest](https://github.com/anasb7/tp_devopstp_kubernetes/blob/main/pod.yaml): `pod.yaml`
- [Deployment manifest](https://github.com/anasb7/tp_devopstp_kubernetes/blob/main/deployment.yaml): `deployment.yaml`
- [Service manifest](https://github.com/anasb7/tp_devopstp_kubernetes/blob/main/service.yaml): `service.yaml`
- **Guestbook workload**
- **Guestbook Service**
- **Redis database**

### Helm chart

- **Helm**
- [Chart values](https://github.com/anasb7/tp_devopstp_kubernetes/blob/main/chart/values.yaml): `chart/values.yaml`
- [Deployment template](https://github.com/anasb7/tp_devopstp_kubernetes/blob/main/chart/templates/deployment.yaml): `chart/templates/deployment.yaml`
- [Service template](https://github.com/anasb7/tp_devopstp_kubernetes/blob/main/chart/templates/service.yaml): `chart/templates/service.yaml`
- [Chart metadata](https://github.com/anasb7/tp_devopstp_kubernetes/blob/main/chart/Chart.yaml): `chart/Chart.yaml`

### Other components

- **Learner**

## Connections

- Learner → Minikube: starts cluster (evidence: `README.md`)
- Learner → kubectl: runs commands (evidence: `README.md`)
- kubectl → Kubernetes cluster: inspects resources (evidence: `README.md`)
- Learner → Pod manifest: creates manifest (evidence: `README.md`)
- kubectl → Pod manifest: deploys (evidence: `README.md`)
- Pod manifest → Guestbook workload: describes Pod (evidence: `README.md`)
- Guestbook image → Guestbook workload: runs in (evidence: `README.md`)
- Learner → Deployment manifest: creates manifest (evidence: `README.md`)
- kubectl → Deployment manifest: deploys (evidence: `README.md`)
- Deployment manifest → Guestbook workload: describes replicas (evidence: `README.md`)
- Learner → Service manifest: creates manifest (evidence: `README.md`)
- kubectl → Service manifest: deploys (evidence: `README.md`)
- Service manifest → Guestbook Service: describes access (evidence: `README.md`)
- Guestbook Service → Guestbook workload: selects pods (evidence: `README.md`)
- Learner → Helm: deploys chart (evidence: `README.md`)
- Helm → Chart values: reads values (evidence: `README.md`)
- Helm → Deployment template: renders template (evidence: `README.md`)
- Helm → Service template: renders template (evidence: `README.md`)
- Chart values → Deployment template: parameterizes (evidence: `README.md`)
- Chart values → Service template: parameterizes (evidence: `README.md`)
- Deployment template → Guestbook workload: describes replicas (evidence: `README.md`)
- Service template → Guestbook Service: describes access (evidence: `README.md`)
- Helm → Chart metadata: uses chart (evidence: `README.md`)
- Learner → Redis database: adds database (evidence: `README.md`)
- Redis database → Guestbook workload: stores messages
