apisix-hybrid-stack

by QuenchWorks

Helm chartv0.0.12App 3.19.0Apache-2.0Verified publisher

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):

ComponentChartRole
control planeapisix (role: control_plane)the Admin API on 9180; writes routes into etcd. ClusterIP only
data planeapisix (role: data_plane)the proxy on 9080 / 9443, 2 replicas; reads routes from etcd, runs no Admin API
etcdetcd3 members; the client port requires a certificate signed by the stack's CA
ingress controllerapisix-ingress-controllerturns Ingress, ApisixRoute and HTTPRoute objects into Admin API calls on the control plane
Gateway API CRDsgateway-api-crdsv1.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

KeyDefaultNotes
etcdTLS.createtruegenerate the etcd CA, server and client certificates once and keep them
etcdTLS.validityDays3650lifetime of the generated CA and certificates
etcd.replicaCount3odd numbers only; quorum is (N/2)+1
dataPlane.replicaCount3proxy replicas
dataPlane.service.typeClusterIPLoadBalancer to take traffic from outside
apisix-ingress-controller.enabledtrueIngressClass apisix
gatewayAPICRDs.enabledtruefalse 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) carry helm.sh/resource-policy: keep, so helm uninstall leaves them behind. To rotate, delete both, run helm upgrade, then restart apisix-etcd, apisix-control-plane and apisix-data-plane.
  • To bring your own certificates set etcdTLS.create: false and create both Secrets (tls.crt, tls.key, ca.crt). The server certificate must cover apisix-etcd and *.apisix-etcd-headless.<namespace>.svc, and allow client auth (the etcd probe presents it).
  • The admin key is generated into apisix-control-plane-admin (key admin-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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartapisix-hybrid-stack is pinned at v0.0.12 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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