⚡️ Minikube¶
- Install Minikube and kubectl (Docker or Podman driver required).
- Start a local cluster with Ingress and DNS addons.
- Load the
ghcr.io/ibm/mcp-context-forge:1.0.0-RC-2image into Minikube. - Deploy with the Helm chart (
charts/mcp-stack). - Access the Gateway at http://gateway.local or
127.0.0.1:80via NGINX Ingress.
Minikube provides a self-contained environment, enabling you to replicate production features like persistent volumes and TLS on your local machine.
📋 Prerequisites¶
| Requirement | Notes |
|---|---|
| CPU / RAM | Minimum 2 vCPU + 2 GiB; recommended 4 vCPU / 6 GiB for smoother operation. |
| Disk | At least 20 GiB of free space. |
| Container driver | Docker 20.10+ or Podman 4.7+; Docker is the simplest choice on macOS and Windows. |
| kubectl | Automatically configured by minikube start; alternatively, use minikube kubectl -- ... if not installed. |
Architecture¶
┌─────────────────────────────┐
│ NGINX Ingress │
└──────────┬───────────┬──────┘
│/ │/
┌──────────────▼─────┐ ┌────▼───────────┐
│ ContextForge │ │ PgAdmin (opt.) │
└─────────┬──────────┘ └────┬───────────┘
│ │
┌────────────▼──────┐ ┌────────▼────────────┐
│ PostgreSQL │ │ Redis Commander(opt)│
└────────┬──────────┘ └────────┬────────────┘
│ │
┌─────▼────┐ ┌─────▼────┐
│ PV │ │ Redis │
└──────────┘ └──────────┘
🚀 Step 1 - Install Minikube and kubectl¶
Make target
This target checks for existing installations of minikube and kubectl. If missing, it installs them using:
- Homebrew on macOS
- The official binary on Linux
- Chocolatey on Windows
Manual installation (optional)
### macOS (Homebrew) ### Linux (Generic binary)# Minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube && rm minikube-linux-amd64
# kubectl (latest stable)
curl -LO "https://dl.k8s.io/release/$(curl -sL https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl && sudo mv kubectl /usr/local/bin/
⚙️ Step 2 - Start the cluster¶
Make target
Equivalent manual command
--driver=dockeravoids nested virtualization on macOS and Windows Home.ingressprovides an NGINX LoadBalancer on localhost.ingress-dnsresolves*.localdomains when you add the Minikube IP to your OS DNS list.--cpusand--memorycan be set tomaxto utilize all available resources.
Check cluster status:
🏗 Step 3 - Load the Gateway image¶
Make target
This target builds the ghcr.io/ibm/mcp-context-forge:1.0.0-RC-2 image and loads it into Minikube.
Alternative methods¶
- Pre-cache a remote image:
- Load a local tarball:
📄 Step 4 - Deploy with Helm¶
Make target
This deploys the full stack (ContextForge, PostgreSQL, Redis) using the charts/mcp-stack Helm chart.
Manual Helm install¶
The chart defaults to ingress.enabled: true with className: nginx and host: gateway.local, which works out of the box with the Minikube Ingress addon enabled in Step 2.
To customise values (e.g. disable ingress or change the host):
See charts/mcp-stack/values.yaml for the full list of configurable values.
SSRF settings for in-cluster fast-time / fast-test registration¶
If you enable Helm testing registrations (testing.fastTime.register.enabled=true, testing.fastTest.register.enabled=true), the gateway URLs use in-cluster services:
http://<release>-mcp-fast-time-server:80/httphttp://<release>-fast-test-server:8880/mcp
Strict SSRF defaults block private destinations, which can cause registration jobs to fail with 422.
Use one of the following:
# Preferred: explicit cluster CIDR allowlist
mcpContextForge:
config:
SSRF_ALLOW_PRIVATE_NETWORKS: "false"
SSRF_ALLOWED_NETWORKS: '["10.96.0.0/12"]' # example Service CIDR, adjust for your minikube setup
# Local-only shortcut for benchmark/testing
mcpContextForge:
config:
SSRF_ALLOW_PRIVATE_NETWORKS: "true"
Note: Minikube automatically configures the kubectl context upon cluster creation. If not, set it manually:
🧪 Step 5 - Verify deployment status¶
Before hitting your endpoint, confirm the application is up and healthy.
🔍 Check pod status¶
Expect output like:
NAME READY STATUS RESTARTS AGE
mcp-stack-postgres-5b66bdf445-rp8kl 1/1 Running 0 15s
mcp-stack-redis-668976c4f9-2hljd 1/1 Running 0 15s
mcp-stack-mcpcontextforge-6d87f8c5d8-nnmgx 1/1 Running 0 10s
📜 Check logs (optional)¶
This can help diagnose startup errors or missing dependencies (e.g. bad env vars, Postgres connection issues).
🚥 Wait for rollout (optional)¶
If the pod gets stuck in CrashLoopBackOff, run:
And:
✅ Confirm Ingress is live¶
Should show something like:
NAME CLASS HOSTS ADDRESS PORTS AGE
mcp-stack-mcpgateway-ingress nginx gateway.local 192.168.49.2 80 1m
If ADDRESS is empty, the ingress controller may still be warming up.
You may want to add this to /etc/hosts. Ex:
🌐 Step 6 - Test access¶
# Via NodePort:
curl $(minikube service mcp-stack-mcpgateway --url)/health
# Via DNS:
curl http://gateway.local/health
🧹 Cleaning up¶
| Action | Make target | Manual command |
|---|---|---|
| Uninstall Helm release | - | helm uninstall mcp-stack |
| Pause cluster | make minikube-stop | minikube stop -p mcpgw |
| Delete cluster | make minikube-delete | minikube delete -p mcpgw |
| Remove cached image | - | minikube cache delete ghcr.io/ibm/mcp-context-forge:1.0.0-RC-2 |
🛠 Non-Make cheatsheet¶
| Task | Command |
|---|---|
| Start with Podman driver | minikube start --driver=podman --network-plugin=cni |
| Open dashboard | minikube dashboard |
| SSH into node | minikube ssh |
| Enable metrics-server | minikube addons enable metrics-server |
| Upgrade Minikube (macOS) | minikube delete && brew upgrade minikube |
📚 Further reading¶
-
Minikube Quick Start guide (official) https://minikube.sigs.k8s.io/docs/start/
-
Minikube Docker driver docs https://minikube.sigs.k8s.io/docs/drivers/docker/
-
Enable NGINX Ingress in Minikube https://kubernetes.io/docs/tasks/access-application-cluster/ingress-minikube/
-
Load / cache images inside Minikube https://minikube.sigs.k8s.io/docs/handbook/pushing/
-
Using Minikube's built-in kubectl https://minikube.sigs.k8s.io/docs/handbook/kubectl/
-
Allocate max CPU/RAM flags https://minikube.sigs.k8s.io/docs/faq/#how-can-i-allocate-maximum-resources-to-minikube
-
Ingress-DNS addon overview https://minikube.sigs.k8s.io/docs/handbook/addons/ingress-dns/
-
Stack Overflow: loading local images into Minikube https://stackoverflow.com/questions/42564058/how-can-i-use-local-docker-images-with-minikube
Minikube gives you the fastest, vendor-neutral sandbox for experimenting with ContextForge-and everything above doubles as CI instructions for self-hosted GitHub runners or ephemeral integration tests.