wallarm-gateway

by Wallarm Inc.

Helm chartv0.4.0App 0.4.0Apache-2.0Verified publisher

A high-performance Rust-based API gateway with multi-language policy engine support.

About this chart

Wallarm Gateway Helm Chart

A Helm chart that installs the Wallarm Gateway Gateway-API controller. The controller watches GatewayClass and Gateway resources and provisions per-Gateway data planes on demand.

TL;DR

helm install my-gateway oci://ghcr.io/wallarm/charts/wallarm-gateway --version 0.4.0

What this chart installs

  • One controller Deployment (Wallarm Gateway controller)
  • One Service exposing the controller's WS endpoint to provisioned data planes
  • One ServiceAccount + ClusterRole + ClusterRoleBinding for the controller to read Gateway API resources and write owned Deployments/Services/Secrets
  • One namespace-scoped Role + RoleBinding for the controller's leader-election Lease
  • One GatewayClass (wallarm-gateway) that the controller reconciles

The chart does NOT install:

  • A Gateway resource — you create those (see first-service.md).
  • A data plane Pod or Service — the controller provisions one per Gateway resource.
  • Gateway API CRDs — install once per cluster from upstream (see Prerequisites).

Prerequisites

  • Kubernetes >= 1.25

  • Helm >= 3.10

  • Gateway API CRDs (required). Install once per cluster from the upstream release. The chart does not install them — they are shared with any other Gateway API implementation on the cluster.

    kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.5.1/standard-install.yaml
    

    Supported Gateway API versions: v1.5.x.

Installing

helm install my-gateway ./deploy/helm/wallarm-gateway \
  --namespace wallarm-system --create-namespace

This installs the controller in wallarm-system. It registers GatewayClass/wallarm-gateway cluster-wide; create Gateway resources in any namespace to have data planes provisioned there.

Verify

kubectl wait --for=condition=Accepted gatewayclass/wallarm-gateway --timeout=60s
kubectl get deployment -n wallarm-system -l app.kubernetes.io/component=controller

Create your first Gateway

kubectl apply -f - <<'EOF'
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
  name: demo
  namespace: default
spec:
  gatewayClassName: wallarm-gateway
  listeners:
    - name: http
      port: 80
      protocol: HTTP
EOF

# Watch the controller provision the data plane
kubectl get deployment -n default -l gateway.networking.k8s.io/gateway-name=demo

Bearer-token auth (optional)

By default the WS channel between controller and provisioned data planes is unauthenticated. For production, materialise a shared secret out-of-band (ESO, Vault, SOPS) and reference it:

helm install my-gateway ./deploy/helm/wallarm-gateway \
  --set gatewaySecret.existingSecret=wallarm-gateway-secret \
  --set gatewaySecret.existingSecretKey=GATEWAY_SECRET

The controller propagates the Secret into every Gateway's namespace (Kubernetes prohibits cross-namespace secretKeyRef).

Values

KeyTypeDefaultDescription
image.repositorystringwallarm/gateway-controllerController image.
image.tagstring""Image tag; defaults to chart appVersion.
image.pullPolicystringIfNotPresentImage pull policy.
dataplaneImagestring""Image used by the controller for provisioned data planes; defaults to wallarm/gateway:<appVersion>. Per-Gateway override via WallarmGatewayParameters.spec.image.
imagePullSecretsarray[]Image pull secret references. Propagated to provisioned data planes via the controller flag --default-image-pull-secrets.
nameOverridestring""Override chart-name portion of resource names.
fullnameOverridestring""Override the entire generated name.
commonAnnotationsobject{}Annotations applied to every chart-managed resource.
commonLabelsobject{}Labels applied to every chart-managed resource.
replicasint1Controller replica count.
gatewayClassNamestringwallarm-gatewayGatewayClass name the controller reconciles.
controllerNamestringgateway.wallarm.io/wallarm-gatewaycontrollerName field on the GatewayClass.
defaultParametersRefstring""Names a cluster-scoped WallarmGatewayParameters referenced from GatewayClass.parametersRef. Per-Gateway overrides via Gateway.spec.infrastructure.parametersRef still win.
publicWsUrlstring""Public URL provisioned data planes use to reach the controller WS endpoint. Defaults to the controller Service's cluster-internal DNS.
wsListenstring0.0.0.0:8080WS server bind address (controller -> data planes).
healthListenstring0.0.0.0:8081Health/readiness HTTP server bind address.
metricsListenstring0.0.0.0:9090Prometheus metrics bind address.
leaseNamestringwallarm-gateway-controller-leaseCoordination Lease object name.
gatewaySecret.existingSecretstring""Name of an existing Secret holding the WS bearer token.
gatewaySecret.existingSecretKeystringGATEWAY_SECRETKey in the existing Secret.
resourcesobject100m/256Mi -> 1000m/1GiController container resources.
podAnnotationsobject{}Controller pod annotations.
podLabelsobject{}Controller pod labels.
nodeSelectorobject{}Controller pod node selector.
tolerationsarray[]Controller pod tolerations.
affinityobject{}Controller pod affinity.
networkPolicy.enabledboolfalseCreate a NetworkPolicy scoped to the controller pod.
networkPolicy.ingress.fromarray[]Ingress from selectors. Empty allows all sources on the controller's WS/health/metrics ports.
networkPolicy.egress.allowDNSbooltruePermit cluster-DNS egress.
networkPolicy.egress.extraarray[]Additional egress rules.

Monitoring

The chart can ship a scrape resource for the controller's /metrics endpoint (named port metrics, 9090). Both flavours are off by default and each is additionally gated by a CRD-availability check, so enabling one on a cluster without the matching operator is a no-op rather than an install error.

Enable the prometheus-operator ServiceMonitor:

monitoring:
  serviceMonitor:
    enabled: true

Enable the victoriametrics-operator VMServiceScrape:

monitoring:
  vmServiceScrape:
    enabled: true

Both blocks accept additionalLabels, interval, and scrapeTimeout. Relabel rules are operator-supplied and default to empty — for example, to add an environment label via the VMServiceScrape:

monitoring:
  vmServiceScrape:
    enabled: true
    relabelConfigs:
      - target_label: env
        replacement: production

The ServiceMonitor uses relabelings / metricRelabelings; the VMServiceScrape uses relabelConfigs / metricRelabelConfigs.

Per-Gateway tuning

Knobs that affect a single provisioned data plane (replicas, resources, securityContext, etc.) live in WallarmGatewayParameters CRs, not in this chart's values. See docs/architecture/gateway-provisioning.md.

Uninstalling

helm uninstall my-gateway --namespace wallarm-system

Provisioned data planes (Deployment, Service, Secret resources owned by the controller) are NOT automatically deleted when the controller goes away — they remain as orphaned Kubernetes resources until you delete their owning Gateway. To clean up:

# Delete all Gateways referencing this controller; the (now-orphaned) controller's
# children remain until you remove them explicitly.
kubectl delete gateway -A -l gateway.networking.k8s.io/gateway-class=wallarm-gateway

Upgrade notes

0.3.x -> 0.4.0

  • Breaking. No upgrade path. The static data-plane mode is gone. Uninstall any 0.3.x release before installing 0.4.0.
  • Removed values: controller.enabled, mode, controlPlane.*, gateway.*, cluster.*, service.*, headlessService.*, ingress.*, persistence.*, autoscaling.*, podDisruptionBudget.*, replicaCount, strategy, revisionHistoryLimit, probes.*, extraEnv, envFrom, extraVolumes, extraVolumeMounts, initContainers, sidecars, policies.*, serviceAccount.*, automountServiceAccountToken, podSecurityContext, securityContext, terminationGracePeriodSeconds, lifecycle, priorityClassName, dnsConfig, dnsPolicy, hostAliases, gatewaySecret.value, gatewaySecret.oldValue, gatewaySecret.existingSecretOldKey.
  • Removed templates: dataplane Deployment, Service, headless Service, ConfigMap, PVC, HPA, PDB, Ingress, dataplane ServiceAccount, Helm-managed Secret.
  • controller.* values hoisted to top level — e.g. controller.image.repository is now just image.repository.
  • Helm test pod removed. The Gateway API conformance suite (make test-k8s-gwapi-conformance) is now the contract test.

Source

License

Apache-2.0

Deploy wallarm-gateway with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has wallarm-gateway 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 chartwallarm-gateway is pinned at v0.4.0 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