Ingress on Kestrel
All external HTTP and HTTPS traffic arrives at kestrel.arbutus.cloud and is routed by Traefik, the cluster’s only ingress controller. Expose a workload with a ClusterIP Service and an Ingress. LoadBalancer and NodePort Services are blocked.
Traffic path
Section titled “Traffic path”DNS → Arbutus public address → kube-vip LoadBalancer → Traefik (v2.11, namespace traefik) → your Service. There is no CDN or proxy in front of Kestrel.
The default-deny NetworkPolicy in every tenant namespace already lets Traefik reach your pods on any port, so you don’t need your own rule. See Network model.
Entry points and middleware
Section titled “Entry points and middleware”Traefik has two entry points: web (:80) and websecure (:443). The traefik.ingress.kubernetes.io/router.entrypoints: websecure annotation in the example makes the route HTTPS-only: http:// requests return 404, and there is no automatic redirect.
For IP allowlists, basic auth or request headers, create a Traefik Middleware in the Ingress’s namespace:
apiVersion: traefik.io/v1alpha1kind: Middlewaremetadata: name: ip-allowlist namespace: <tenant>-prodspec: ipAllowList: sourceRange: - 192.0.2.0/24 # your clients' rangeThen name it in the Ingress’s annotations as <namespace>-<name>@kubernetescrd, comma-separated if there are several:
metadata: annotations: traefik.ingress.kubernetes.io/router.middlewares: <tenant>-prod-ip-allowlist@kubernetescrdTenant roles don’t include Traefik’s IngressRoute, or anything in the older traefik.containo.us API group; use standard Ingress resources.
Always set ingressClassName
Section titled “Always set ingressClassName”traefik is the default IngressClass, so an Ingress without ingressClassName gets it at admission. Set it anyway so the manifest is explicit. An Ingress that names any other class is ignored, because no other controller exists.
Tenant hostnames and DNS
Section titled “Tenant hostnames and DNS”Tenant hostnames live under your tenant’s subdomain, with the tenant name lowercased:
<tenant>.kestrel.arbutus.cloud<name>.<tenant>.kestrel.arbutus.cloud # e.g. myapp.def-abc.kestrel.arbutus.cloudThese are the only names the platform certificate issuers sign. Any other name is a custom domain.
Creating an Ingress does not create DNS. There is no wildcard record and no delegation of your subdomain, so each hostname needs its own record: open a ticket listing the hostnames, and RCS creates each one as a CNAME to kestrel.arbutus.cloud. Until the record exists the hostname doesn’t resolve, even if its certificate already shows READY: True. The platform issuers validate by DNS01, which doesn’t need your record.
Custom domains
Section titled “Custom domains”To serve a domain you control, such as myapp.example.com:
-
At your DNS provider, create a CNAME from the hostname to
kestrel.arbutus.cloud. Don’t use an A record to its IP address, which can change. A zone apex (example.com) can’t be a CNAME, so use a subdomain or your provider’s ALIAS/CNAME-flattening record. -
Check that it resolves:
Terminal window host myapp.example.com# myapp.example.com is an alias for kestrel.arbutus.cloud. -
Get a certificate from your own Issuer. The platform ClusterIssuers sign only tenant hostnames, and RCS must enable custom-domain certificates for your tenant first. See TLS: custom domains.
Wildcard hosts
Section titled “Wildcard hosts”Capsule denies any Ingress with a wildcard host (host: "*.…") at admission: Wildcard denied for tenant <tenant>. Use one rule per concrete hostname.
Use each hostname in one Ingress only. When moving a host to another namespace, delete the old Ingress before creating the new one.
Add the cert-manager annotation and a tls block (see the example below). cert-manager creates the Secret named in secretName and renews the certificate. This works once RCS has enabled certificates for your tenant. Enablement, custom-domain Issuers and troubleshooting are covered in TLS certificates.
Complete example
Section titled “Complete example”apiVersion: networking.k8s.io/v1kind: Ingressmetadata: name: my-service namespace: <tenant>-prod annotations: cert-manager.io/cluster-issuer: letsencrypt-prod # letsencrypt-staging while testing traefik.ingress.kubernetes.io/router.entrypoints: websecure # HTTPS only traefik.ingress.kubernetes.io/router.tls: "true"spec: ingressClassName: traefik tls: - hosts: - my-service.<tenant>.kestrel.arbutus.cloud secretName: my-service-tls # created by cert-manager rules: - host: my-service.<tenant>.kestrel.arbutus.cloud http: paths: - path: / pathType: Prefix backend: service: name: my-service # a ClusterIP Service port: number: 80