nginx-gateway-fabric-extensions

by emberstack

Helm chartv1.0.22App 1.0.0Verified publisher

A Helm chart for NGINX Gateway Fabric extensions

About this chart

NGINX Gateway Fabric Helm Extensions

This chart provides templates for NGINX Gateway Fabric CRDs. It can be used as the base for dynamic resources.

Requirements: NGINX Gateway Fabric installed in the cluster.

Templates target the gateway.nginx.org group as shipped with NGINX Gateway Fabric v2.6.7.

KindapiVersionValues key
ClientSettingsPolicyv1alpha1clientSettingsPolicies
ObservabilityPolicyv1alpha2observabilityPolicies
RateLimitPolicyv1alpha1rateLimitPolicies
UpstreamSettingsPolicyv1alpha1upstreamSettingsPolicies
ProxySettingsPolicyv1alpha1proxySettingsPolicies
SnippetsPolicyv1alpha1snippetsPolicies
SnippetsFilterv1alpha1snippetsFilters
NginxProxyv1alpha2nginxProxies
AuthenticationFilterv1alpha1authenticationFilters
WAFPolicyv1alpha1wafPolicies
NginxGatewayv1alpha1nginxGateways

That is the complete gateway.nginx.org CRD set for v2.6.7. Every section is a list; each entry needs its own name and is opt-in via enabled: true.

Notes:

  • WAFPolicy requires NGINX Plus with App Protect WAF.
  • NginxGateway is normally created by the NGINX Gateway Fabric chart itself — template it only if you manage that object yourself.
  • NginxProxy is referenced from a GatewayClass or Gateway via parametersRef.
  • AuthenticationFilter is referenced from an HTTPRoute filter via extensionRef.

Installation

Using OCI registry (recommended)

helm install nginx-gateway-fabric-extensions oci://ghcr.io/emberstack/helm-charts/nginx-gateway-fabric-extensions

Using Helm repository

helm repo add emberstack https://emberstack.github.io/helm-charts
helm repo update
helm upgrade --install nginx-gateway-fabric-extensions emberstack/nginx-gateway-fabric-extensions

Parameters

ParameterDescriptionDefault
nameOverrideOverride chart name""
fullnameOverrideOverride fully qualified app name""
namespaceOverrideOverride namespace""
commonLabelsLabels added to all resources{}
commonAnnotationsAnnotations added to all resources{}
clientSettingsPoliciesList of ClientSettingsPolicies[]
observabilityPoliciesList of ObservabilityPolicies[]
rateLimitPoliciesList of RateLimitPolicies[]
upstreamSettingsPoliciesList of UpstreamSettingsPolicies[]
proxySettingsPoliciesList of ProxySettingsPolicies[]
snippetsPoliciesList of SnippetsPolicies[]
snippetsFiltersList of SnippetsFilters[]
nginxProxiesList of NginxProxies[]
authenticationFiltersList of AuthenticationFilters[]
wafPoliciesList of WAFPolicies[]
nginxGatewaysList of NginxGateways[]

Per-entry keys: name (required), enabled, fullnameOverride, namespace, labels, annotations.

targetRef / targetRefs entries are always {group, kind, name} — all three required by the CRDs, with sensible group/kind defaults supplied by the chart.

See values.yaml for the full annotated field reference.

Upgrade note

A per-entry namespace is now honoured. Earlier versions accepted the key but silently ignored it, placing every resource in the release namespace. If you had namespace set on an entry, the resource will move to that namespace on upgrade — Helm deletes it from the old namespace and creates it in the new one. Remove the key to keep the previous behaviour.

Usage Examples

ClientSettingsPolicy on a Gateway

clientSettingsPolicies:
  - name: my-client-settings
    enabled: true
    targetRef:
      kind: Gateway
      name: my-gateway
    body:
      maxSize: 10m
      timeout: 60s
    keepAlive:
      requests: 100
      time: 1h
      timeout:
        server: 75s
        header: 60s

ObservabilityPolicy with tracing

observabilityPolicies:
  - name: my-observability
    enabled: true
    targetRefs:
      - kind: HTTPRoute
        name: my-route
    tracing:
      strategy: ratio
      ratio: 10
      context: extract
      spanAttributes:
        - key: env
          value: production

RateLimitPolicy

rateLimit.local.rules[].key and .rate are both required.

rateLimitPolicies:
  - name: my-rate-limit
    enabled: true
    targetRefs:
      - kind: HTTPRoute
        name: my-route
    rateLimit:
      logLevel: info
      rejectCode: 429
      local:
        rules:
          - key: $binary_remote_addr
            rate: 10r/s
            burst: 20
            zoneSize: 10m

UpstreamSettingsPolicy on a Service

upstreamSettingsPolicies:
  - name: my-upstream-settings
    enabled: true
    targetRefs:
      - kind: Service
        name: my-service
    zoneSize: 512k
    loadBalancingMethod: least_conn
    keepAlive:
      connections: 32
      requests: 100
      timeout: 60s

ProxySettingsPolicy with buffering and timeouts

proxySettingsPolicies:
  - name: my-proxy-settings
    enabled: true
    targetRefs:
      - kind: HTTPRoute
        name: my-route
    buffering:
      bufferSize: 4k
      buffers:
        number: 8
        size: 4k
      busyBuffersSize: 8k
    timeout:
      connect: 60s
      read: 60s
      send: 60s

SnippetsPolicy and SnippetsFilter

snippetsPolicies:
  - name: my-snippets-policy
    enabled: true
    targetRefs:
      - kind: HTTPRoute
        name: my-route
    snippets:
      - context: http.server.location
        value: "proxy_set_header X-Custom-Header value;"

snippetsFilters:
  - name: my-snippets-filter
    enabled: true
    snippets:
      - context: http.server.location
        value: "proxy_set_header X-Custom-Header value;"

NginxProxy referenced from a GatewayClass

nginxProxies:
  - name: my-proxy-config
    enabled: true
    fullnameOverride: nginx-proxy-config
    ipFamily: dual
    workerConnections: 1024
    disableHTTP2: false
    logging:
      errorLevel: info

Then point a GatewayClass at it:

gatewayClasses:
  nginx:
    enabled: true
    controllerName: gateway.nginx.org/nginx-gateway-controller
    parametersRef:
      group: gateway.nginx.org
      kind: NginxProxy
      name: nginx-proxy-config
      namespace: default

(that second block belongs to the gateway-api-extensions chart)

AuthenticationFilter with basic auth

authenticationFilters:
  - name: my-auth
    enabled: true
    type: Basic
    basic:
      realm: Restricted
      secretRef:
        name: htpasswd-secret

WAFPolicy (NGINX Plus with App Protect)

wafPolicies:
  - name: my-waf
    enabled: true
    type: HTTP
    targetRefs:
      - kind: Gateway
        name: my-gateway
    policySource:
      httpSource:
        url: https://example.com/policies/waf-policy.tgz
      polling:
        enabled: true
        interval: 5m

NginxGateway control-plane logging

nginxGateways:
  - name: my-nginx-gateway
    enabled: true
    logging:
      level: debug

Deploy nginx-gateway-fabric-extensions with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has nginx-gateway-fabric-extensions 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 chartnginx-gateway-fabric-extensions is pinned at v1.0.22 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