apisix-hybrid-stack
by QuenchWorks
Apache APISIX in decoupled (hybrid) mode: a control plane that owns the Admin API, data planes that only proxy, a 3-member etcd they share over mutual TLS, and the APISIX Ingress Controller writing routes through the control plane. The stack generates the etcd CA, server and client certificates and keeps them across upgrades. All QuenchWorks images are nonroot, CVE-gated, pinned by digest and cosign-signed.
About this chart
Quenchworks apisix-hybrid-stack
Apache APISIX in decoupled (hybrid) mode, from QuenchWorks images (nonroot, CVE-gated at build, pinned by digest, cosign-signed):
| Component | Chart | Role |
|---|---|---|
| control plane | apisix (role: control_plane) | the Admin API on 9180; writes routes into etcd. ClusterIP only |
| data plane | apisix (role: data_plane) | the proxy on 9080 / 9443, 2 replicas; reads routes from etcd, runs no Admin API |
| etcd | etcd | 3 members; the client port requires a certificate signed by the stack's CA |
| ingress controller | apisix-ingress-controller | turns Ingress, ApisixRoute and HTTPRoute objects into Admin API calls on the control plane |
| Gateway API CRDs | gateway-api-crds | v1.6.1 standard channel; the controller needs them even for plain Ingress |
The data planes only need etcd. With the control plane down they keep serving, and a restarted data plane loads every route from etcd again.
Install
helm install gw oci://ghcr.io/quenchworks/charts/apisix-hybrid-stack -n apisix --create-namespace
Expose the proxy with dataPlane.service.type: LoadBalancer (or your own
Ingress or Gateway in front of apisix-data-plane). Keep the control plane
internal.
Values
| Key | Default | Notes |
|---|---|---|
etcdTLS.create | true | generate the etcd CA, server and client certificates once and keep them |
etcdTLS.validityDays | 3650 | lifetime of the generated CA and certificates |
etcd.replicaCount | 3 | odd numbers only; quorum is (N/2)+1 |
dataPlane.replicaCount | 3 | proxy replicas |
dataPlane.service.type | ClusterIP | LoadBalancer to take traffic from outside |
apisix-ingress-controller.enabled | true | IngressClass apisix |
gatewayAPICRDs.enabled | true | false when another release already owns the Gateway API CRDs |
Everything under controlPlane, dataPlane, etcd and
apisix-ingress-controller goes to that chart; see its README for the rest.
Notes
- Object names are fixed (
apisix-control-plane,apisix-data-plane,apisix-etcd) so the parts find each other without templating: install one stack per namespace. - The generated certificate Secrets (
apisix-etcd-server-tls,apisix-etcd-client-tls) carryhelm.sh/resource-policy: keep, sohelm uninstallleaves them behind. To rotate, delete both, runhelm upgrade, then restartapisix-etcd,apisix-control-planeandapisix-data-plane. - To bring your own certificates set
etcdTLS.create: falseand create both Secrets (tls.crt,tls.key,ca.crt). The server certificate must coverapisix-etcdand*.apisix-etcd-headless.<namespace>.svc, and allow client auth (the etcd probe presents it). - The admin key is generated into
apisix-control-plane-admin(keyadmin-key); the ingress controller reads it from there.
Deploy apisix-hybrid-stack with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has apisix-hybrid-stack on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartapisix-hybrid-stack is pinned at v0.0.12 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply