gateway-cilium

by CNAP Technologies

Helm chartv1.0.0App 1.0.0Verified publisher

Cilium Gateway for Kubernetes Gateway API (Host Network Mode)

About this chart

Cilium Gateway Chart

Deploys a Gateway resource that uses Cilium's built-in Gateway API controller.

Prerequisites

Cilium must be installed with Gateway API support enabled:

# In cilium-appset.yaml or Helm values
gatewayAPI:
  enabled: true
  hostNetwork:
    enabled: true # Bind directly to node IPs (no LoadBalancer needed)
envoy:
  enabled: true
  securityContext:
    capabilities:
      keepCapNetBindService: true # Allow binding to ports 80/443

Gateway API CRDs must be installed before Cilium:

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

How It Works

  1. Cilium provides the GatewayClass - When installed with gatewayAPI.enabled=true, Cilium automatically creates a cilium GatewayClass
  2. This chart creates a Gateway - References the cilium GatewayClass to expose HTTP/HTTPS listeners
  3. Host Network Mode - With hostNetwork.enabled=true, traffic goes directly to node IPs on ports 80/443 (no LoadBalancer or MetalLB needed)

Installation

helm install cilium-gateway ./gateways/cilium \
  --namespace gateway-system \
  --create-namespace

Configuration

ParameterDescriptionDefault
gateway.nameGateway resource namecilium-gateway
gateway.namespaceGateway namespaceRelease namespace
gateway.gatewayClassNameGatewayClass to usecilium
gateway.listenersListener configurationHTTP (80), HTTPS (443)

Usage

Once deployed, create HTTPRoute resources to route traffic:

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  name: my-app-route
spec:
  parentRefs:
    - name: cilium-gateway
      namespace: gateway-system
  hostnames:
    - 'app.example.com'
  rules:
    - backendRefs:
        - name: my-app
          port: 8080

References

Deploy gateway-cilium with OpenTenant

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