How assmaalibakir/foodtrack-groupe-d works
FoodTrack’s repository defines and deploys its GCP/GKE platform: Terraform provisions network, compute, storage and GitHub identity federation; Kubernetes manifests describe the application and its dev, test and prod environments. The documented user-facing components are an API, quality portal and Redis cache. The README establishes the main module and deployment relationships, but source excerpts were limited to a standalone health-check script, so application-level calls and runtime data flows are not inferred.
Main entry points: kustomization.yaml Shared manifests · main.tf Terraform root · services.yaml Kubernetes services · deploy.yml Cluster deployment workflow
Components 20
GCP provisioning
- Terraform root
terraform/main.tf - VPC and networking
terraform/modules/reseau/main.tf - GKE and bastion
terraform/modules/compute/main.tf - Registry and buckets
terraform/modules/stockage/main.tf - GitHub federation
terraform/modules/wif-github/main.tf
Deployment and identity
- Cluster deployment workflow
.github/workflows/deploy.yml
Kubernetes platform
- GKE cluster
k8s/base/workloads.yaml - Shared manifests
k8s/base/kustomization.yaml - Environment overlays
k8s/overlays/dev/kustomization.yaml - Workloads and Redis
k8s/base/workloads.yaml - Kubernetes services
k8s/base/services.yaml - Ingress routing
k8s/base/ingress.yaml - Autoscaling policy
k8s/base/hpa.yaml
FoodTrack components
- Sensor API
k8s/base/workloads.yaml - Quality portal
k8s/base/workloads.yaml - Reading cache
k8s/base/workloads.yaml
Other components
- Platform operator
- Google Cloud
- GitHub Actions
- Portal/API user
Connections 25
- Platform operator → Terraform root: applies configuration
- Terraform root → VPC and networking: instantiates module
- Terraform root → GKE and bastion: instantiates module
- Terraform root → Registry and buckets: instantiates module
- Terraform root → GitHub federation: instantiates module
- VPC and networking → Google Cloud: provisions networking
- GKE and bastion → Google Cloud: provisions cluster
- Registry and buckets → Google Cloud: provisions storage
- GitHub federation → Google Cloud: configures federation
- GitHub Actions → GitHub federation: authenticates through
- GitHub Actions → Cluster deployment workflow: runs
- Cluster deployment workflow → Registry and buckets: publishes images
- Cluster deployment workflow → GKE cluster: deploys workloads
- Shared manifests → Workloads and Redis: includes manifests
- Shared manifests → Kubernetes services: includes manifests
- Shared manifests → Ingress routing: includes manifests
- Shared manifests → Autoscaling policy: includes manifests
- Environment overlays → Shared manifests: customizes base
- GKE cluster → Shared manifests: runs manifests
- Kubernetes services → Sensor API: exposes
- Kubernetes services → Quality portal: exposes
- Kubernetes services → Reading cache: exposes
- Ingress routing → Kubernetes services: routes traffic
- Portal/API user → Ingress routing: requests content
- Autoscaling policy → Workloads and Redis: scales replicas