azure-alb-extensions

by emberstack

Helm chartv1.0.22App 1.0.0Verified publisher

A Helm chart for Azure ALB (Application Gateway for Containers) extensions

About this chart

Azure ALB Helm Extensions

This chart provides templates for Azure Application Gateway for Containers (ALB) CRDs. It can be used as the base for dynamic resources.

Requirements: ALB Controller installed in the cluster.

Templates target the alb.networking.azure.io/v1 API as shipped with ALB Controller 1.11.4 (Gateway API v1.5.1).

KindValues keyNotes
ApplicationLoadBalancerapplicationLoadBalancers
WebApplicationFirewallPolicywebApplicationFirewallPoliciesRequires securityPolicyFeatureFlag (default true)
HealthCheckPolicyhealthCheckPolicies
RoutePolicyroutePolicies
FrontendTLSPolicyfrontendTLSPolicies
BackendTLSPolicybackendTLSPolicies
BackendLoadBalancingPolicybackendLoadBalancingPolicies
IPAccessRulesPolicyipAccessRulesPoliciesRequires ipAccessRulesFeatureFlag=true (default false)
IngressExtensioningressExtensionsIngress API only

Every entry is a map keyed by resource name and is opt-in via enabled: true.

Installation

Using OCI registry (recommended)

helm install azure-alb-extensions oci://ghcr.io/emberstack/helm-charts/azure-alb-extensions

Using Helm repository

helm repo add emberstack https://emberstack.github.io/helm-charts
helm repo update
helm upgrade --install azure-alb-extensions emberstack/azure-alb-extensions

Parameters

ParameterDescriptionDefault
nameOverrideOverride chart name""
fullnameOverrideOverride fully qualified app name""
namespaceOverrideOverride namespace""
commonLabelsLabels added to all resources{}
commonAnnotationsAnnotations added to all resources{}
applicationLoadBalancersMap of ApplicationLoadBalancers{}
webApplicationFirewallPoliciesMap of WebApplicationFirewallPolicies{}
healthCheckPoliciesMap of HealthCheckPolicies{}
routePoliciesMap of RoutePolicies{}
frontendTLSPoliciesMap of FrontendTLSPolicies{}
backendTLSPoliciesMap of BackendTLSPolicies{}
backendLoadBalancingPoliciesMap of BackendLoadBalancingPolicies{}
ipAccessRulesPoliciesMap of IPAccessRulesPolicies{}
ingressExtensionsMap of IngressExtensions{}

Per-item keys common to every kind: enabled, fullnameOverride, labels, annotations.

Policy kinds (healthCheckPolicies, routePolicies, frontendTLSPolicies, backendTLSPolicies) accept both default (applied unless the target specifies its own value) and override (always wins), matching the Gateway API policy attachment model.

See values.yaml for the full annotated field reference.

Usage Examples

Application Load Balancer

applicationLoadBalancers:
  my-alb:
    enabled: true
    associations:
      - /subscriptions/<sub>/resourceGroups/<rg>/providers/Microsoft.Network/virtualNetworks/<vnet>/subnets/<subnet>

WAF Policy on a Gateway

webApplicationFirewallPolicies:
  my-waf:
    enabled: true
    targetRef:
      group: gateway.networking.k8s.io
      kind: Gateway
      name: my-gateway
    webApplicationFirewall:
      id: /subscriptions/<sub>/resourceGroups/<rg>/providers/Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies/<policy>

Health Check Policy on a Service

healthCheckPolicies:
  my-healthcheck:
    enabled: true
    targetRef:
      group: ""
      kind: Service
      name: my-service
    default:
      port: 8080
      interval: 5s
      timeout: 5s
      healthyThreshold: 3
      unhealthyThreshold: 3
      http:
        host: my-service.example.com
        path: /health
        match:
          statusCodes:
            - start: 200
              end: 299

Route Policy with session affinity and timeouts

routePolicies:
  my-route-policy:
    enabled: true
    targetRef:
      group: gateway.networking.k8s.io
      kind: HTTPRoute
      name: my-route
    default:
      timeouts:
        routeTimeout: 60s
      sessionAffinity:
        affinityType: application-cookie
        cookieName: my-cookie
        cookieDuration: 3600s

Frontend TLS Policy

frontendTLSPolicies:
  my-frontend-tls:
    enabled: true
    targetRef:
      group: gateway.networking.k8s.io
      kind: Gateway
      name: my-gateway
      sectionNames:
        - https
    default:
      policyType:
        type: predefined
        name: "2023-06"

Backend Load Balancing Policy

backendLoadBalancingPolicies:
  my-lb-policy:
    enabled: true
    targetRefs:
      - targetRef:
          group: ""
          kind: Service
          name: my-service
        ports:
          - port: 8080
    loadBalancing:
      strategy: round-robin

IP Access Rules Policy

ipAccessRulesPolicies:
  my-ip-rules:
    enabled: true
    targetRefs:
      - group: gateway.networking.k8s.io
        kind: Gateway
        name: my-gateway
    ipAccessRules:
      - name: allow-corp
        action: Allow
        priority: 100
        sourceAddressPrefixes:
          - 10.0.0.0/8

Ingress Extension

ingressExtensions:
  my-ingress-extension:
    enabled: true
    backendSettings:
      - service: my-service
        ports:
          - port: 8080
            protocol: HTTP
        timeouts:
          requestTimeout: 60s
    rules:
      - host: www.example.com
        requestRedirect:
          scheme: https
          statusCode: 301

Upgrade notes

backendLoadBalancingPolicies[].targetRefs

The BackendLoadBalancingPolicy CRD nests each reference under targetRef and allows per-reference ports. Earlier chart versions emitted a flat list, which the API server rejects. Update your values:

# before (rejected by the API server)
targetRefs:
  - group: ""
    kind: Service
    name: my-service

# after
targetRefs:
  - targetRef:
      group: ""
      kind: Service
      name: my-service

The chart fails rendering with an explicit message if the old shape is detected.

routePolicies[].default.sessionAffinity

affinityType must be application-cookie or managed-cookie. There is no enabled field; omit sessionAffinity entirely to disable it.

Deploy azure-alb-extensions with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has azure-alb-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 chartazure-alb-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