Skip to content

ci(kubernetes): add setup script and deploy manifests with k3d - #18

Merged
aadil96 merged 1 commit into
mainfrom
ci/setup-k3d
Nov 27, 2025
Merged

ci(kubernetes): add setup script and deploy manifests with k3d#18
aadil96 merged 1 commit into
mainfrom
ci/setup-k3d

Conversation

@aadil96

@aadil96 aadil96 commented Nov 27, 2025

Copy link
Copy Markdown
Owner

No description provided.

@what-the-diff

what-the-diff Bot commented Nov 27, 2025

Copy link
Copy Markdown

PR Summary

  • Implement Configuration Set-Up for K3D Cluster: Introduced a k3d-config.yaml file which guides the establishment of a k3d cluster. It includes core settings such as a single server and agent while disabling Traefik.

  • Craft Backend Component Deployment Manifest: With backend/deployment.yaml we have defined how the backend component of the application should be deployed. This sets up a single replica, puts memory limits in place, and opens container port 22112.

  • Initiate Backend Component LoadBalancer Service: The backend/service.yaml provides instructions for setting up a LoadBalancer service that manages the backend component.

  • Establish Frontend Component Deployment Manifest: The frontend/deployment.yaml file depicts how to deploy our frontend component while also setting an environment variable API_URL to link it to the backend.

  • Set Up Frontend LoadBalancer Service: Via the frontend/service.yaml we've defined a LoadBalancer service that governs the behaviour of the frontend component.

  • Incorporate Kustomization Files for Backend and Frontend: These files offer an efficient way of controlling the deployments and services of these two core components.

  • Main Kustomization File Integration: This file is in the base and invites the resources of both the backend and frontend.

  • Development Structures and Environment Adjustments: With the 'dev' namespace and kustomization files, both backend and frontend deployments are effectively structured and adapted to the development environment.

  • Introduce Cluster Set-Up Script: The setup_cluster_local script presents an automated process for setting up a k3d cluster. Notable features include dependency checks, Docker image builds, application deployments, and error handling for service URL extraction.

  • Update to mise.toml: The file now includes dependencies for k3d and kubectl, plus introduces a new task for setting up the Kubernetes cluster.

@aadil96
aadil96 merged commit 9e9ee35 into main Nov 27, 2025
4 checks passed
@aadil96
aadil96 deleted the ci/setup-k3d branch November 27, 2025 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant