Networking & Ingress

Cilium as CNI and load balancer, NGINX and Envoy Gateway for ingress, TLS via cert-manager, DNS via external-dns, endpoint monitoring, and Kubernetes API access.

This page explains how traffic reaches your applications on the ayedo Software Delivery Platform (SDP) and how to use networking, ingress, TLS, DNS, and endpoint monitoring for your workloads.

Overview

Client
  → LoadBalancer IP (Cilium, announced via L2 or BGP)
    → NGINX Ingress Controller or Envoy Gateway
      → Kubernetes Service → Pod
Layer Component What you configure
Pod network, Services, LoadBalancer IPs Cilium Service, NetworkPolicy
HTTP(S) routing NGINX Ingress or Envoy Gateway Ingress or HTTPRoute
TLS certificates cert-manager Annotation or Certificate
DNS records external-dns Hostnames in Ingress/HTTPRoute, optional annotations
Availability checks Endpoint Monitoring polycrate_* annotations

Cilium: CNI, Services, and LoadBalancer

The SDP uses Cilium as its only Container Network Interface (CNI). Cilium runs on eBPF inside the Linux kernel and covers three jobs:

  • Pod networking: Every pod gets its own IP address and can reach other pods across the cluster.
  • kube-proxy replacement: Cilium fully replaces the legacy kube-proxy. Service routing (ClusterIP, NodePort, LoadBalancer) is handled by eBPF instead of iptables chains, so there are no kube-proxy pods in the cluster.
  • LoadBalancer: Cilium assigns external IP addresses to Services of type LoadBalancer from a defined IP pool and announces them to the network via L2 (ARP) or BGP. No additional load balancer such as MetalLB is needed.

What this means for your application team:

  • Services behave as usual. You use standard Kubernetes Service resources; the kube-proxy replacement is transparent. Internal DNS names (<service>.<namespace>.svc.cluster.local) stay the same.
  • LoadBalancer IPs come from the cluster pool. A Service of type LoadBalancer automatically receives an IP from your cluster's pool. HTTP(S) applications are usually published through the ingress controller or gateway, which already have a LoadBalancer IP, rather than through their own LoadBalancer Services. Since the pool is limited, check with us before requesting dedicated LoadBalancer IPs for TCP/UDP services.
  • NetworkPolicies are enforced. Standard Kubernetes NetworkPolicy resources take effect directly in the kernel. For advanced rules (such as L7 or FQDN-based rules), CiliumNetworkPolicy resources are also available.
  • Network flows are observable. Hubble shows connections and dropped packets, which helps when a NetworkPolicy blocks traffic unexpectedly.

A minimal example that only allows inbound traffic to your application from the ingress controller:

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: allow-from-ingress
  namespace: acme-production
spec:
  podSelector:
    matchLabels:
      app: acme-web
  policyTypes:
    - Ingress
  ingress:
    - from:
        - namespaceSelector:
            matchLabels:
              kubernetes.io/metadata.name: ingress-nginx

Adjust the namespace selector to match your ingress controller: envoy-gateway-system for Envoy Gateway, and for NGINX the namespace from your cluster handover (often ingress-nginx).

Platform settings such as IP pools, BGP peers, or Hubble are part of the cluster configuration and are not maintained in application manifests.

Ingress: NGINX and Envoy Gateway

The SDP offers two ingress paths that can run side by side, each with its own LoadBalancer IP.

Component Kubernetes API Typical use
NGINX Ingress Controller Ingress with ingressClassName: nginx Existing Helm charts and classic Ingress manifests
Envoy Gateway Gateway API: HTTPRoute (plus TLSRoute, GRPCRoute) New routing, header/path matching, traffic policies

Use NGINX for existing charts that ship Ingress resources. For new applications, we recommend the Gateway API with Envoy.

NGINX Ingress

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: acme-web
  namespace: acme-production
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-production
    nginx.ingress.kubernetes.io/proxy-body-size: "50m"
spec:
  ingressClassName: nginx
  tls:
    - hosts:
        - app.example.com
      secretName: acme-web-tls
  rules:
    - host: app.example.com
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: acme-web
                port:
                  number: 80

See the ingress-nginx documentation for available annotations.

Envoy Gateway (Gateway API)

Envoy Gateway provides two GatewayClass variants:

  • eg-shared: Several applications share one LoadBalancer IP, routed by hostname or SNI. This is the default.
  • eg-dedicated: A Gateway gets its own LoadBalancer IP, for example for plain TCP services.

Attach your application to an existing Gateway with an HTTPRoute:

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  name: acme-web
  namespace: acme-production
spec:
  parentRefs:
    - name: eg-shared
      namespace: envoy-gateway-system
      sectionName: https
  hostnames:
    - app.example.com
  rules:
    - matches:
        - path:
            type: PathPrefix
            value: /
      backendRefs:
        - name: acme-web
          port: 80

You'll find the gateway's name, namespace, and listener (sectionName) in your cluster handover or via kubectl get gateway -A. A web application firewall (Coraza) can optionally be enabled on Envoy Gateway; talk to us if you need it.

TLS Certificates with cert-manager

cert-manager issues TLS certificates automatically (for example from Let's Encrypt), stores them as kubernetes.io/tls Secrets in your namespace, and renews them before they expire.

  • Ingress: Set the cert-manager.io/cluster-issuer annotation and a spec.tls block (see the example above).
  • Gateway API, wildcards, or internal services: Create a Certificate resource:
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: acme-api-tls
  namespace: acme-production
spec:
  secretName: acme-api-tls
  issuerRef:
    name: letsencrypt-production
    kind: ClusterIssuer
  dnsNames:
    - api.example.com

Run kubectl get clusterissuer to see which issuers (HTTP-01 or DNS-01) are available in your cluster. Check certificate status with:

kubectl get certificate,certificaterequest -n acme-production
kubectl describe certificate acme-api-tls -n acme-production

DNS with external-dns

When external-dns is enabled in your cluster, it automatically creates and maintains A, AAAA, or CNAME records in the authorized DNS zones for the hostnames of your Ingress, HTTPRoute, and LoadBalancer resources. It reads hostnames from spec.rules[].host (Ingress) or spec.hostnames (HTTPRoute). For a LoadBalancer Service without an ingress, set the hostname via annotation:

metadata:
  annotations:
    external-dns.alpha.kubernetes.io/hostname: tcp.example.com
    external-dns.alpha.kubernetes.io/ttl: "300"

external-dns only touches records it created itself; cert-manager's temporary _acme-challenge records are left alone.

If you manage DNS yourself, point your records at the LoadBalancer IP of the ingress controller or gateway, never at individual node IPs. Lower the TTL before a cutover, and afterwards verify certificates, redirects, and reachability.

Endpoint Monitoring via Annotations

The platform discovers Ingress and HTTPRoute resources and, on request, sets up HTTP availability checks for their hostnames. Monitoring is opt-in: add polycrate_endpoint_monitor: "true".

  • Only Ingress and HTTPRoute count; a Gateway on its own does not create a check.
  • If an Ingress and an HTTPRoute in the same namespace use the same hostname, the HTTPRoute takes precedence.
  • Wildcard hostnames and hostnames that don't resolve in DNS are skipped.
Annotation Default Meaning
polycrate_endpoint_monitor — "true" enables the check, "false" excludes the resource
polycrate_endpoint_path / Path to check, e.g. /healthz
polycrate_endpoint_timeout 5 Timeout per check in seconds
polycrate_endpoint_interval 60 Check interval in seconds
polycrate_endpoint_expected_status 200 Expected status codes, comma-separated for several (e.g. "200,302")
polycrate_endpoint_tls from TLS config "true" forces HTTPS
polycrate_endpoint_port 443 with TLS, otherwise 80 Target port
polycrate_endpoint_host_config — JSON with per-hostname overrides
polycrate_k8sapp_name — Links the endpoint to an application in the same namespace

Without the TLS annotation, TLS is derived from the Ingress spec.tls block or the gateway listener's protocol.

metadata:
  annotations:
    polycrate_endpoint_monitor: "true"
    polycrate_endpoint_path: "/health"
    polycrate_k8sapp_name: "acme-shop"
    polycrate_endpoint_host_config: |
      {
        "api.example.com": { "path": "/api/health", "timeout": 10 },
        "events.example.com": { "path": "/readyz", "expected_status": [202] }
      }

Per host, polycrate_endpoint_host_config accepts path, expected_status (list of integers), timeout, interval (seconds), tls (boolean), and port; fields you omit inherit the general annotations.

The resulting checks appear as Endpoint resources in your namespace:

kubectl get endpoints.polycrate.io -n acme-production

Don't edit these resources directly; change the annotations instead. They are removed automatically when the Ingress or HTTPRoute is deleted. Results and alerts are covered under Observability.

Access to the Kubernetes API

The kube-apiserver runs on your cluster's dedicated control plane VMs. Users sign in via OIDC, and Kubernetes RBAC governs permissions (see Access & Identity).

You can additionally restrict the API endpoint to specific source IP addresses or CIDR ranges, such as your corporate VPN, fixed office IPs, or CI/CD runners. The allowlist is enforced at the network level in front of the control plane VMs; send us the required addresses via our contact page. Afterwards, verify access with kubectl cluster-info from both an allowed and a non-allowed source.

An IP allowlist is an extra layer of protection; OIDC authentication and RBAC always remain in place.

Further Reading