This repository contains the Kubernetes manifests required to deploy the Collateral API and Frontend services using Minikube and NGINX Ingress Controller.
Ensure the following tools are installed on your machine:
-
Enable Kubernetes via Docker Desktop settings.
-
Command-line tool for interacting with Kubernetes clusters.
-
Git Bash (for Windows users)
Required to run Linux-like commands such as
nohupandminikube tunnel.
To enable the NGINX ingress controller in your local Minikube cluster, run:
minikube addons enable ingressFrom the root of the project directory, apply all Kubernetes configurations:
kubectl apply -f .Once your pods are up and running:
kubectl patch svc ingress-nginx-controller -n ingress-nginx \
-p '{"spec": {"type": "LoadBalancer"}}'minikube tunnel🔒 Note: This command may require administrator privileges and will prompt for your password. It keeps running in the background to forward traffic properly.
Open C:\Windows\System32\drivers\etc\hosts as an administrator and add the following line:
127.0.0.1 collateral.local
💡 Tip: Use Notepad (Run as Administrator) or Git Bash with elevated permissions to edit this file.
After setup is complete:
- Frontend: http://collateral.local
- API Base URL: http://collateral.local/api/v1
If you encounter any issues:
- Check Pod Status
kubectl get pods- View Pod Logs
kubectl logs <pod-name>- Check Services
kubectl get svc- Check Ingress
kubectl get ingressThis project is licensed under the MIT License.