Kubeflow Istio Resources (gateway and HTTPS exposure)
Basic information
Section titled “Basic information”| Item | Value |
|---|---|
| Version | Not versioned separately; derived from the community-distribution release-26.03.1 Kubeflow Istio resources |
| Official docs | Istio Gateway, Kubeflow documentation |
| Upstream source | common/istio/kubeflow-istio-resources |
Concepts and characteristics
Section titled “Concepts and characteristics”Installing Istio alone does not make traffic flow. The platform needs an “entry rule” (Gateway) that accepts external traffic, and routing (VirtualService) that connects each app to that Gateway. This component creates that entry rule, kubeflow-gateway. Every later Kubeflow component’s VirtualService binds to this one Gateway.
What the component establishes
Section titled “What the component establishes”kubeflow-gateway(Istio Gateway): created in thekubeflownamespace, it accepts external traffic on port 80 with host*. Every VirtualService, including Dashboard, Notebooks, Pipelines UI, Dex (/dex/), and Kiali (/kiali), referenceskubeflow/kubeflow-gateway.- Three Istio RBAC ClusterRoles:
kubeflow-istio-admin/kubeflow-istio-edit/kubeflow-istio-view. This is aggregated RBAC that a Profile grants in Kubeflow multi-tenancy so that users can manage Istio resources (such as VirtualService) in their own namespace.
Host * sounds permissive, but the gateway itself is only part of the story. Routing and access still depend on later VirtualService and authorization resources. The roles let profile owners and members manage Istio resources within their own namespaces, rather than treating all mesh resources as cluster-admin-only objects. Additional platform web apps installed later also bind to the same gateway.
Additional patch (HTTPS external exposure)
Section titled “Additional patch (HTTPS external exposure)”The overlay adds external HTTPS exposure on top of this. Kubeflow web apps use secure cookies, so non-localhost access requires HTTPS, and because there is no domain, the deployment uses a nip.io wildcard. The exposed hosts are split in two by purpose.
- Dashboard / web apps:
kubeflow.10.x.x.x.nip.io. The interactive entrypoint where browser login (oauth2-proxy ExtAuthZ) applies. - KServe serving:
kserve.10.x.x.x.nip.io. A dedicated M2M (Bearer token) entrypoint for the InferenceService prediction API. It must be kept separate from the dashboard host (see the landmine below).
That separation is not cosmetic. It prevents a subtle routing conflict. Because there is no public DNS and no public CA flow in this air-gapped environment, the deployment uses self-signed certificates.
Why the serving host is separated (landmine)
Section titled “Why the serving host is separated (landmine)”KServe sets .spec.hosts of the InferenceService VirtualService from the ingressDomain value in inferenceservice-config. If this value is the same as the dashboard host (kubeflow.10.x.x.x.nip.io), there are two VirtualServices for the same host and the same gateway.
A common misconception here is that “the one created later preempts the earlier one”. The actual Istio behavior is not preemption but merge. istiod merges the route rules of multiple VirtualServices targeting the same host/gateway into a single Envoy virtual host, and for conflicting rules (for example, overlapping match conditions) the older resource wins. As a result, dashboard requests can flow to a route KServe contributed and reach an unintended destination.
Such a dashboard request passes the gateway without obtaining an oauth2-proxy session, and since it has no validated principal, it is caught by the istio-ingressgateway-require-jwt DENY. Envoy responds with RBAC: access denied (403). In other words, the failure is not “blocked by bypassing authorization”; it is the result of routing drifting so that the request never went through the authentication flow, and the DENY then working as designed.
Diagnose this with istioctl analyze. When more than one VirtualService attaches the same host to the same gateway, it reports conflicting-VirtualService warnings, so this is the first tool to confirm this symptom.
Therefore serving must use a separate subdomain (kserve.10.x.x.x.nip.io). Authentication for serving requests is still enforced by the gateway’s require-jwt, so this host only lets a request through with a valid Authorization bearer token (opening it plainly in a browser and getting RBAC: access denied is the expected result).
Role in Kubeflow
Section titled “Role in Kubeflow”Background
Section titled “Background”Istio laid down “the mesh and the ingress gateway workload”, but the Gateway resource, the starting point for “which requests to accept and where to send them”, is created at this stage. Without it, no VirtualService has anything to bind to, and external exposure itself cannot exist.
Key contributions
Section titled “Key contributions”- The concrete single entrypoint: the anchor of a structure where the single
kubeflow-gatewayexposes all web apps, distinguished by path. This is where the “single entrypoint” described earlier in the Istio document is implemented as an actual resource. - Multi-tenancy Istio permissions: the admin/edit/view ClusterRoles create the authorization boundary within which users manage routing/policy resources in their own namespace.
- External HTTPS access: an Ingress that terminates TLS with a self-signed certificate lets browsers access the platform securely (encrypted) and keeps the login session (secure cookie) from breaking.
This component is where Kubeflow’s abstract “single entrypoint” becomes a real gateway object and where this repository’s HTTPS exposure model is attached. It is also where one of the easiest-to-miss serving landmines is handled: keeping KServe’s serving host separate from the main dashboard host.
Deployment structure
Section titled “Deployment structure”Overlay composition
Section titled “Overlay composition”overlays/dev/kubeflow/common/kubeflow-istio-resources references common/istio/kubeflow-istio-resources/base (Gateway + ClusterRole) and adds a dashboard exposure resource and a serving exposure resource.
resources/ingress.yaml: Certificatekubeflow-ingressgateway-certsand Ingresskubeflow-ingress(istio-system) for the dashboard host. It issues thekubeflow.10.x.x.x.nip.iocertificate, and the ingress controller terminates TLS with that Secret and forwards plain HTTP toistio-ingressgateway:80.resources/ingress-kserve.yaml: serving-only Certificatekserve-ingressgateway-certsand Ingresskserve-serving-ingress(istio-system). It reuses the same self-signed ClusterIssuer as the dashboard to issue thekserve.10.x.x.x.nip.iocertificate, and exposes the serving host the same way (TLS termination, then forwarding toistio-ingressgateway:80). Because it is a separate host from the dashboard host, the two do not interfere with each other’s routing.
HTTPS topology
Section titled “HTTPS topology”TLS terminates at the ingress controller. So Istio’s kubeflow-gateway keeps its original HTTP :80 (no TLS patch on the gateway itself is needed), and since the certificate is self-signed, the setup is complete in air-gap without an external CA.
브라우저 --HTTPS--> ingress controller (TLS 종료, self-signed) --HTTP :80--> istio-ingressgateway --> kubeflow-gateway --> (VirtualService) --> appThat design lets the upstream Kubeflow gateway remain a plain HTTP port-80 gateway while still satisfying browser HTTPS requirements through the outer ingress layer.
Deployment view
Section titled “Deployment view”Resource placement
Section titled “Resource placement”| Namespace | Resource | Name | Purpose |
|---|---|---|---|
kubeflow | Gateway | kubeflow-gateway | Single entry Gateway for all VirtualServices (port 80, host *) |
| (cluster) | ClusterRole | kubeflow-istio-admin / -edit / -view | Multi-tenancy Istio resource RBAC |
istio-system | Certificate + ClusterIssuer | kubeflow-ingressgateway-certs | Issues the self-signed TLS certificate for the dashboard host |
istio-system | Ingress | kubeflow-ingress | Terminates TLS for the dashboard host, then forwards to istio-ingressgateway:80 |
istio-system | Certificate | kserve-ingressgateway-certs | Issues the self-signed TLS certificate for the serving host (kserve.10.x.x.x.nip.io) |
istio-system | Ingress | kserve-serving-ingress | Terminates TLS for the serving host, then forwards to istio-ingressgateway:80 |
Diagram
Section titled “Diagram”PlantUML source:
Dependencies and interactions
Section titled “Dependencies and interactions”Upstream / downstream
Section titled “Upstream / downstream”- Upstream:
istio(Gateway CRD and istio-ingressgateway),cert-manager(self-signed certificate issuance), ingress controller (TLS termination point). - Downstream (references this Gateway): every VirtualService that binds to the gateway, including Dashboard, Notebooks, Pipelines UI, Dex (
/dex/), and Kiali (/kiali). The Istio permissions that a Profile grants in multi-tenancy also reference these ClusterRoles.
Runtime interaction
Section titled “Runtime interaction”Browser requests have TLS terminated at the ingress controller, are forwarded as plain HTTP to istio-ingressgateway, and are routed to each app according to the VirtualService rules bound to kubeflow-gateway. oauth2-proxy ExtAuthZ authentication also applies on this path.
Backend API calls (M2M) enter through the same ingress -> istio-ingressgateway -> kubeflow-gateway path. In this case, however, the gateway’s RequestAuthentication validates the Authorization bearer token instead of oauth2-proxy (for details, see the oauth2-proxy document).
References
Section titled “References”- Because the certificate is self-signed, the browser shows a “not secure” warning, but TLS encryption itself works normally (an intended setup in air-gap). For details, see the cert-manager document.
- Restricting external exposure is safer with the LoadBalancer’s
loadBalancerSourceRanges(network-layer blocking) than with ingress rules. - Overlay:
overlays/dev/kubeflow/common/kubeflow-istio-resources - Related documents: