This guide assumes a DB-less installation deployed with the kong/kong or kong/ingress Helm chart, and uses an HTTP listener on port 80.
The replacement gateway must be in the same namespace as the existing proxy Service.
If you use HTTPS or other protocols, adapt the listeners and validation requests.
You need the following tools and access:
- Administrative access to the cluster
- Bash
- Helm
kubectl
jq
- cert-manager
Before you start, back up your Kubernetes configuration and Helm values, and upgrade to Kong Ingress Controller 3.5.
Make sure the cluster has enough capacity to run both installations at the same time.
Set the following values for your installation.
To find the existing release name and chart version, run helm list.
Keep the current gateway image, and choose a replica count that can serve your traffic.
KO only deploys Kong Gateway 3.4.1 or later.
If your current image is older, upgrade it before you start.
export NAMESPACE=default
export RELEASE_NAME=kong
export KIC_CHART_VERSION='<installed-chart-version>'
export PROXY_SERVICE=kong-proxy
export GATEWAY_IMAGE='<current-image:tag>'
export GATEWAY_REPLICAS=2
export OLD_GATEWAY='<existing-gateway>'
export OLD_GATEWAY_CLASS='<existing-gateway-class>'
This guide names the new resources kong-migrated.
If that name is already in use, choose another name and use it throughout this guide.
The route examples assume that the routes and both Gateways are in $NAMESPACE.
If your routes are in other namespaces, set the namespace in the parent reference, and configure the replacement listener to allow routes from those namespaces.
If you use GitOps, update the route manifests so that reconciliation doesn’t revert the migration changes.