easegress
by QuenchWorks
Easegress, the Go traffic orchestration gateway: HTTP/1-3 proxy with filters and pipelines, objects kept in its embedded etcd on a PVC, seeded from values on first boot. Hardened by QuenchWorks, nonroot, CVE-gated, cosign-signed and pinned by digest.
About this chart
Easegress
Easegress is a traffic orchestration gateway written in Go: HTTPServer objects accept traffic (HTTP/1.1, HTTP/2, HTTP/3) and route it to Pipelines, chains of filters such as Proxy, RateLimiter, Validator or ResponseBuilder. Objects are stored in the embedded etcd. This chart runs one member on the QuenchWorks easegress image as a StatefulSet with a PVC for that etcd. The image is nonroot, 0 fixable CVEs, cosign-signed and pinned by digest.
Install
helm install gw oci://ghcr.io/quenchworks/charts/easegress \
--set 'trafficPorts[0].name=http' --set 'trafficPorts[0].port=10080'
kubectl exec -i gw-easegress-0 -- egctl apply -f - <<'YAML'
name: demo-pipeline
kind: Pipeline
flow:
- filter: proxy
filters:
- name: proxy
kind: Proxy
pools:
- servers:
- url: http://my-backend.default.svc:8080
---
name: demo-server
kind: HTTPServer
port: 10080
rules:
- paths:
- pathPrefix: /
backend: demo-pipeline
YAML
The admin API on 2381 has no authentication and full control of the gateway. Keep it cluster-internal.
Values
| Key | Default | Meaning |
|---|---|---|
initialObjects | [] | objects created on startup if they do not exist yet; later edits do not change them, use egctl apply |
trafficPorts | [] | container and Service ports for your HTTPServer objects (name, port) |
extraArgs | [] | extra easegress-server flags |
persistence.enabled | true | a PVC for /data/easegress (embedded etcd data and WAL) |
persistence.size | 8Gi | PVC size |
service.adminPort | 2381 | admin API port on the ClusterIP Service |
tls.enabled | false | the admin API on 2381 serves HTTPS only (--tls, PEM pair at /tls); traffic ports take TLS from your HTTPServer objects |
tls.existingSecret | "" | a kubernetes.io/tls Secret to use (1st choice) |
tls.certManager.enabled | false | request a cert-manager Certificate from tls.certManager.issuerRef (2nd choice) |
tls.selfSigned.validityDays | 365 | otherwise Helm generates a CA + certificate, kept across upgrades |
The chart runs one member. Clustering several members through the embedded etcd is not
wired up; run more gateways as separate releases, or point members at a standalone etcd
with extraArgs. Pods run with a read-only root filesystem and all capabilities dropped.
The release gate installs the chart on kind with an HTTPServer and a Pipeline seeded from
initialObjects, checks the reported version against the chart's appVersion, sends a
request through the traffic port that the Pipeline proxies to the admin API, creates a
second object at runtime, deletes the pod, and requires that object back from etcd on the
PVC.
The chart depends on the quench-common chart from oci://ghcr.io/quenchworks/charts.
Deploy easegress with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has easegress 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 charteasegress 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