Upgrading from Standalone MCP Gateway to the Kuadrant Operator (OLM)¶
This guide migrates an OLM-installed MCP Gateway from the standalone operator (its own OLM subscription) to the consolidated deployment, where the Kuadrant Operator owns the MCP Gateway CRDs and runs its controller. The migration is designed to be zero-downtime: the data plane keeps serving while ownership transfers.
Who this is for¶
You installed MCP Gateway (version <1.0>) via a standalone OLM Subscription and now want the
Kuadrant Operator to manage it instead. This is the model described
in RFC 0019.
The Kuadrant Operator runs the MCP Gateway controller; no Kuadrant CR is required for it to
start.
If you installed MCP Gateway with Helm rather than OLM, this guide does not apply — see Installing and Configuring MCP Gateway.
Prerequisites¶
- A Kubernetes or OpenShift cluster with OLM (OpenShift includes OLM by default).
- MCP Gateway installed via its own OLM subscription, with at least one
MCPGatewayExtensionReady and traffic flowing. - The Kuadrant Operator installed via OLM in the same namespace.
- A catalog source providing a Kuadrant Operator version that bundles MCP Gateway. Your administrator or the Kuadrant release notes will tell you which version and catalog to use.
Note: Throughout this guide,
mcp-systemis the namespace where the operators and theirOperatorGrouplive. Substitute your own namespace if different.
Why this works without downtime¶
The MCP Gateway data plane (the broker-router Deployment, its Service, the HTTPRoute, and
the EnvoyFilter) is managed by your MCPGatewayExtension, not by any operator's
ClusterServiceVersion (CSV). Removing or replacing an operator CSV never touches it, so the Envoy
routing path stays up throughout the migration.
Step 1: Record the current state¶
Record current state so you can verify the migration and roll back if needed.
# The MCP Gateway operator's controller
kubectl get deployment mcp-gateway-controller -n mcp-system
# The broker-router (data plane) — this must keep running throughout
kubectl get deployment mcp-gateway -n mcp-system
# Your extension(s) — must stay Ready
kubectl get mcpgatewayextension -A
# The standalone Subscription name, namespace, package, and installed CSV
kubectl get subscriptions -A \
-o custom-columns='NAMESPACE:.metadata.namespace,NAME:.metadata.name,PACKAGE:.spec.name,CSV:.status.installedCSV'
# Which CSV currently owns the MCP CRDs
kubectl get crd mcpgatewayextensions.mcp.kuadrant.io \
-o jsonpath='{.metadata.labels}{"\n"}'
Record the exact standalone Subscription name and namespace, and its status.installedCSV value,
before moving to Step 2. The latter is the CSV name that the cleanup commands must remove.
Step 2: Remove the standalone MCP Gateway subscription¶
OLM does not allow two operators to own the same CRDs. Removing the standalone subscription and its CSV relinquishes ownership of the MCP CRDs so the Kuadrant Operator can take them over.
Set these variables to the exact values recorded in Step 1:
STANDALONE_SUBSCRIPTION_NAME="<standalone-subscription-name>"
STANDALONE_NAMESPACE="<standalone-subscription-namespace>"
STANDALONE_CSV_NAME="<standalone-csv-name>"
kubectl delete subscription "$STANDALONE_SUBSCRIPTION_NAME" \
-n "$STANDALONE_NAMESPACE" --wait=true
kubectl delete csv "$STANDALONE_CSV_NAME" \
-n "$STANDALONE_NAMESPACE" --wait=true
The CSV deletion waits for the named CSV to be fully removed before ownership transfer continues.
Deleting the CSV removes the mcp-gateway-controller Deployment but not the broker-router. Confirm the data plane and
your resources survived:
kubectl get deployment -n mcp-system
# mcp-gateway-controller is gone; mcp-gateway (broker-router) is still 1/1
The MCP CRDs and your MCPGatewayExtension, MCPServerRegistration and MCPVirtualServer
resources are untouched — OLM does not delete CRDs when a CSV is removed.
Do not delete the
MCPGatewayExtensionduring this step. Its finalizer needs a running controller to clear; the Kuadrant Operator's controller (Step 3) handles it once it starts. Note: No MCP Gateway controller runs until the Kuadrant Operator's controller starts (Step 3/4). During this window, create/update/delete operations, finalizers, and status changes onMCPGatewayExtension,MCPServerRegistration, andMCPVirtualServerresources are not reconciled.
Step 3: Move the Kuadrant Operator to the version that bundles MCP Gateway¶
Upgrade the Kuadrant Operator to the version that includes the MCP Gateway controller. How this happens depends on how your catalog ships it:
- Same channel, newer version (typical production upgrade): if your subscription's channel
already offers the newer version, OLM upgrades automatically (for
installPlanApproval: Automatic) or presents an InstallPlan to approve.
If installPlanApproval is Manual, list the InstallPlans and approve the pending plan for the
Kuadrant Operator:
INSTALLPLAN_NAME="<installplan-name>"
kubectl get installplan -n mcp-system
kubectl patch installplan "$INSTALLPLAN_NAME" -n mcp-system \
-p '{"spec":{"approved":true}}' --type merge
Replace <installplan-name> with the InstallPlan created for this upgrade. When approval is
Automatic, OLM approves the plan without this step.
- Explicit version target: delete the existing Kuadrant subscription and CSV, then recreate
the subscription with
startingCSVset to the target version:
kubectl apply -f - <<EOF
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: kuadrant-operator
namespace: mcp-system
spec:
channel: <channel>
name: kuadrant-operator
source: <catalog-source>
sourceNamespace: <catalog-namespace>
startingCSV: kuadrant-operator.<target-version>
installPlanApproval: Automatic
EOF
Note:
<catalog-namespace>is the namespace of your catalog source:openshift-marketplaceon OpenShift,olmon most other OLM installs.
Wait for the new CSV to succeed:
kubectl wait csv/kuadrant-operator.<target-version> -n mcp-system \
--for=jsonpath='{.status.phase}'=Succeeded --timeout=5m
Step 4: Verify the Kuadrant Operator manages MCP Gateway¶
The Kuadrant Operator now manages the MCP CRDs at runtime and runs the controller; no Kuadrant
CR is required for it to start. (A Kuadrant CR is only needed later for AuthPolicy or
RateLimitPolicy.)
# The MCP CRDs remain established
kubectl get crd mcpgatewayextensions.mcp.kuadrant.io \
-o jsonpath='{.status.conditions[?(@.type=="Established")].status}{"\n"}'
# True
# The active Kuadrant CSV owns the MCP CRD
KUADRANT_CSV=$(kubectl get subscription kuadrant-operator -n mcp-system \
-o jsonpath='{.status.installedCSV}')
kubectl get csv "$KUADRANT_CSV" -n mcp-system \
-o jsonpath='{range .spec.customresourcedefinitions.owned[?(@.name=="mcpgatewayextensions.mcp.kuadrant.io")]}{.name}{"\n"}{end}'
# mcpgatewayextensions.mcp.kuadrant.io
# The controller is running again, now deployed by the Kuadrant Operator
kubectl get deployment mcp-gateway-controller -n mcp-system
# READY 1/1
# Your extension is still Ready
kubectl get mcpgatewayextension -A
# READY True
Note: If the new release pins a newer broker-router image, the controller rolls the pods behind the stable
Serviceas a rolling update: new pods become Ready before old ones are removed, so requests continue to be served. Restarting pods is expected; theDeployment,Service,HTTPRouteandEnvoyFilterare never deleted.
Step 5: Confirm traffic is being served¶
Set the endpoint values to match the Gateway listener. Use https with port 443 for a standard
HTTPS listener; use http with the configured listener port for an HTTP listener.
GATEWAY_SCHEME="https" # change to "http" for an HTTP listener
GATEWAY_HOST="your-gateway-hostname"
GATEWAY_PORT="443" # change to the Gateway listener port
MCP_ENDPOINT="${GATEWAY_SCHEME}://${GATEWAY_HOST}:${GATEWAY_PORT}/mcp"
curl -s -X POST "$MCP_ENDPOINT" \
-H "Content-Type: application/json" -D /tmp/hdr.txt -o /dev/null \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"post-upgrade","version":"1.0"}}}'
SID=$(grep -i mcp-session-id /tmp/hdr.txt | awk '{print $2}' | tr -d '\r\n')
curl -s -X POST "$MCP_ENDPOINT" \
-H "Content-Type: application/json" -H "mcp-session-id: $SID" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"<your-tool>","arguments":{}}}'
Note: This bare
curlassumes an unauthenticated listener. If you have anAuthPolicyon the route, verify with your normal authenticated client instead. A401/403confirms only that the gateway and authentication layer are reachable — the request was rejected before broker-router. To confirm broker-router is serving traffic, use an authenticated client and check for a successful response.
Rollback¶
If the migration fails, return the Kuadrant Operator to its previous version (via the same mechanism as Step 3), then recreate the MCP Gateway subscription:
kubectl apply -f - <<EOF
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: mcp-gateway
namespace: mcp-system
spec:
channel: <mcp-gateway-channel>
name: mcp-gateway
source: <mcp-gateway-catalog>
sourceNamespace: <catalog-namespace>
installPlanApproval: Automatic
EOF
The broker-router is unaffected by rollback — it is owned by your MCPGatewayExtension, not by
either operator's CSV.