Infrastructure update

Wodby infrastructure 4.0.0: app-level routing

Wodby infrastructure 4.0.0 separates the routing of an application from the releases of its services. A change to domains, redirects, TLS certificates, HTTP authentication, or route policies is now deployed on its own, and the application is not restarted.

One shared Envoy Gateway connecting app-environment ListenerSets to application routes and services

Infrastructure 2.0.0 replaced Ingress NGINX with Envoy Gateway and the Kubernetes Gateway API, which describes routes, redirects, and published ports as resources of their own. Infrastructure 4.0.0 goes one step further: all routing of an app environment is now deployed together, as one release.

Until now each app service created its routing resources in its own Helm release. But a route belongs to the app more than to one service: a hostname can become the main route, point to another service, share the authentication of the app, and use a certificate that is renewed on its own schedule. With the resources spread over service releases, it was unclear which release was responsible for a route, and a change to routing alone needed a service deployment.

One shared Gateway, one routing release per app environment

The cluster still has one shared Gateway, managed by Envoy Gateway, behind its public load balancer. With Gateway API ListenerSets, each regular app environment adds its own listeners to that Gateway and keeps the rest of its routing in a release of its own. The controller of Envoy Gateway turns these resources into the configuration of the Envoy proxies that handle the traffic.

1

Shared cluster entrypoint

One Gateway configures the Envoy data plane behind the cluster load balancer.

2

App-environment ListenerSet

Each regular app environment adds its own listeners to the shared Gateway.

3

Routes and policies

HTTPRoutes, TLS, HTTP auth, redirects, and route policies describe how traffic reaches the app.

4

Application services

Routes forward traffic to Kubernetes Services. The workloads are released separately.

The release of an app service still contains its Deployments, StatefulSets, Kubernetes Services, configuration, and other runtime resources. Routing can now change while the application containers stay exactly as they are.

What changes for you

Routing changes without a redeploy

Add a domain, change a redirect, update route settings, or edit HTTP auth, and the app services are not redeployed.

Automatic certificate updates

A new or renewed certificate is applied to the routing of the app directly. It no longer waits for a service deployment.

One release for all routing of an app

The routes, listeners, TLS, auth, and routing policies of an app environment are in one release, so service releases cannot conflict over them.

A routing deployment updates all routing of one app environment. If several routing changes arrive while one deployment is running, Wodby combines them and runs another deployment only if one is still needed. The app can show Updating routing, whether or not it also needs a rebuild or a redeploy.

A routing deployment is an ordinary background task, with logs and a failed state when it fails. Automatic work, such as applying a renewed certificate, therefore appears in the task history, and you can find out what went wrong without opening a service deployment.

How existing applications are migrated

When you upgrade a cluster to infrastructure 4.0.0, Wodby moves the routing of every eligible active app environment to the new release automatically. It does not create a second, competing set of routing resources.

1

Check the cluster

Wodby upgrades Envoy Gateway and checks that the cluster supports stable Gateway API ListenerSets before it changes anything in the apps.

2

Remove routing from the service releases

Each eligible app environment gets a full deployment that removes the routing resources from its app-service releases.

3

Create the routing release

Wodby creates one routing release for the app environment. The work is recorded as a task you can see.

During this one-time migration an existing app environment can show Migrating routing. A paused app environment stays paused and is migrated at its first full deployment after it resumes. A new app on infrastructure 4.0.0 starts with the new routing release and needs no migration.

HTTP and HTTPS are required, TCP and UDP optional

Infrastructure 4.0.0 checks for stable ListenerSet support before the migration. TCPRoute and UDPRoute are optional parts of the Gateway API, so a cluster can use the new routing for HTTP and HTTPS even when it cannot publish ports over one of those protocols. Wodby shows what it detected before you publish a port.

How to get it

New Wodby clusters start on infrastructure 4.0.0. For an existing cluster, open its Infrastructure page to see the available version, the Gateway API capabilities Wodby detected, and the upgrade task.

The infrastructure 4.0.0 documentation and the routing deployment reference describe the upgrade and the routing deployments in full. The infrastructure 2.0.0 Envoy Gateway announcement covers the release this one builds on.

To upgrade a cluster, open the Wodby dashboard.