Actions
Every application you expose on a PHOENIQS Cloud cluster is reached through one shared API Gateway. This page shows how to publish an app with an HTTPRoute, how DNS records appear automatically, how to redirect old hostnames (301), and how to move an existing nginx ingress to the gateway without downtime.
Traffic destined for tenant workloads terminates on a single shared gateway built on the OpenShift Ingress Operator and OpenShift Service Mesh (OSSM) 3 / Istio:
The API Gateway replaces the unsupported nginx ingress (IngressClass external): the ingress-nginx project is retired upstream and no longer receives security fixes. All new exposure goes through the gateway, and everything still on nginx is being migrated over — see Background and roadmap.
Source contract: phoenix/openshift-config — docs/gateway-api/README.md.
Create one HTTPRoute per application, named after the app and carrying all hostnames the app answers on:
Conventions that make the route work:
spec.hostnames of this one route — do not create one route per hostname.parentRefs without sectionName. Always {name: public, namespace: openshift-ingress}. Only platform-owned routes that live inside openshift-ingress attach with sectionName: https; tenant routes must not set it.hostnames is mandatory and follows <app>-<namespace>.pub.<cluster domain>, e.g. echo-server-tenant-tpl.pub.basel.kvant.cloud. Exactly one DNS label may sit below pub — that is the scope of the wildcard certificate, so a deeper name never gets TLS. Never use *.apps.<cluster> hostnames: apps is the OpenShift router domain and is not served by the gateway.HTTPRoute manifest next to the HelmRelease in your GitOps repository — see phoenix/tenant-zabbix for the pattern.HTTPRoute and GRPCRoute only. There is no TLS passthrough (TLSRoute) and no TCPRoute.Declare the hostname in spec.hostnames and the DNS record appears by itself. For hostnames inside the delegated cluster zones
*.basel.kvant.cloud*.basel.phoeniqs.com*.hsm.kvant.cloud*.hsmtest.kvant.cloud*.basel.ai.sunrise.chexternal-dns creates the A record within about a minute, pointing at the VIP of the shared Gateway (185.250.226.205 on basel). Live examples of automatically created names: zabbix.pub.basel.kvant.cloud and echo-server-tenant-tpl.pub.basel.kvant.cloud.
The controller is external-dns v0.21.0 writing to CoreDNS via etcd, with sources: ingress, service, openshift-route, gateway-httproute, gateway-grpcroute, policy: sync and a 30-minute drift resync. There is no wildcard or template fallback: only hostnames you declare get a record.
Vanity domains outside these zones — e.g. *.phoeniqs.ch or console.phoeniqs.com — are not covered by the delegated zones. DNS for those is a manual CNAME to the .pub name of the app. Hostnames in the cluster zones need no CNAME.
To send an old hostname to a new one, use the RequestRedirect filter — one redirect route per source hostname (both spellings of one domain can share a route). This is the full worked example, the one shared with the teams:
Expect HTTP/2 301 with location: https://www.phoeniqs.com/news?x=1 — path and query preserved.
What to know before you flip a redirect on:
path in the filter. With path unset the Gateway preserves path and query automatically; setting it rewrites them.https URL. Note that a POST may be replayed as GET after that redirect.https listener terminates with default-ingress-tls, a wildcard certificate covering *.phoeniqs.com and *.kvant.cloud. A hostname outside those wildcard scopes needs its own certificate presented on the listener — create a cert-manager Certificate (Let's Encrypt) for it./.well-known/acme-challenge/ is more specific than the catch-all rule and should win, but confirm it. If the solver gets redirected after all, add a first rule that matches the challenge path and points at the solver Service:phoeniqs.ch / www.phoeniqs.ch are vanity domains outside the delegated zones, so DNS is a manual CNAME to the .pub name. For hostnames in the cluster zones no CNAME is needed — declare them and external-dns creates the record.To move an app from the nginx ingress (IngressClass external) to the gateway without dropping a single request:
HTTPRoute for the app ① and annotate the existing Ingress with external-dns.alpha.kubernetes.io/ingress-hostname-source: annotation-only. The DNS record now belongs to the route and points at the Gateway, while nginx keeps serving the clients that still have the old address cached.Accepted and ResolvedRefs, and that the DNS lookup resolves to the VIP of the Gateway.Ingress. Nobody noticed.The Gateway appends the client IP to X-Forwarded-For and passes X-Real-IP through — set to the last entry of X-Forwarded-For. Treat X-Forwarded-For as the source of truth and never trust X-Real-IP.
Features that have no Gateway API counterpart yet — CORS, rate limiting (the candidate here is a Kuadrant RateLimitPolicy), backend-protocol: HTTPS, basic auth and friends — keep the app on nginx until support lands.
Server-side apply does not apply removals from spec fields such as parentRefs, hostnames and listeners (kubernetes/kubernetes#133704). To remove an item, use a JSON patch that tests the item first:
The ingress-nginx project is retired upstream, so the platform team will open issues against all projects to migrate from the unsupported nginx ingress to the API gateway. Migration happens in waves, starting with the roughly 359 Ingress objects that carry no external-dns annotation yet.
Background and rationale: the story phoenix/openshift-config#165 — "[Story] Plan migration off ingress-nginx (retired upstream) to Gateway API or Routes", under the epic #436 — "[Epic] Openshift Clusters Hardening".
Note, so the next reader is not lost: the contract document docs/gateway-api/README.md cites "epic #437", but that issue does not exist (it 404s). The correct references are the story #165 and the epic #436 linked above.