Simple Fanout Pattern¶
The Simple Fanout Pattern is a networking configuration used within Kubernetes Ingress to route traffic from a single entry point to multiple backend services.^[400-devops-06-kubernetes-k8s-ithelp-day9-readme.md]
Core Functionality¶
This pattern allows a system to route traffic arriving at the same IP address to different [[Services]] based on the request's URL.^[400-devops-06-kubernetes-k8s-ithelp-day9-readme.md] By determining the destination service based on the hostname or pathname, it effectively acts as a load balancer for multiple endpoints.^[400-devops-06-kubernetes-k8s-ithelp-day9-readme.md]
Implementation¶
In a Kubernetes environment, the Simple Fanout Pattern is typically implemented using an Ingress resource that defines specific rules.^[400-devops-06-kubernetes-k8s-ithelp-day9-readme.md] These rules map specific hostnames to specific backend services, enabling Name-based Virtual Hosting.^[400-devops-06-kubernetes-k8s-ithelp-day9-readme.md]
For example, an Ingress configuration can route requests for foo.com to one service and bar.com to another, even though both traffic streams enter through the same Ingress Controller IP address.^[400-devops-06-kubernetes-k8s-ithelp-day9-readme.md]
Related Concepts¶
- Kubernetes
- Ingress
- [[Services]]
Sources¶
^[400-devops-06-kubernetes-k8s-ithelp-day9-readme.md]