|
| 1 | +:_content-type: CONCEPT |
| 2 | +:imagesdir: ../../images |
| 3 | + |
| 4 | +[id="architecture-ingress-mesh-bgp"] |
| 5 | += Architecture |
| 6 | + |
| 7 | +The Ingress Mesh BGP pattern demonstrates a multi-cluster networking architecture that combines BGP-based anycast ingress with service mesh connectivity. The architecture simulates an enterprise network topology on AWS. |
| 8 | + |
| 9 | +[id="network-topology-imbgp"] |
| 10 | +== Network topology |
| 11 | + |
| 12 | +The pattern creates the following network components on AWS: |
| 13 | + |
| 14 | +.Network topology diagram |
| 15 | +image::ingress-mesh-bgp/network.svg[Network Topology,700] |
| 16 | + |
| 17 | +=== VPCs and subnets |
| 18 | + |
| 19 | +The pattern provisions several VPCs to simulate separate network segments: |
| 20 | + |
| 21 | +* *Client-Core VPC (192.168.8.0/24)* - Contains the client VM and core router |
| 22 | +* *Core-West TOR VPC (192.168.12.0/24)* - Connects the core router to the west cluster's top-of-rack router |
| 23 | +* *Core-East TOR VPC (192.168.16.0/24)* - Connects the core router to the east cluster's top-of-rack router |
| 24 | +* *West Workers VPC (10.0.0.0/16)* - The west OpenShift cluster's VPC |
| 25 | +* *East Workers VPC (10.1.0.0/16)* - The east OpenShift cluster's VPC |
| 26 | + |
| 27 | +=== Routing infrastructure |
| 28 | + |
| 29 | +The pattern deploys EC2 instances running FRRouting to create a simulated datacenter network: |
| 30 | + |
| 31 | +[cols="1,1,2"] |
| 32 | +|=== |
| 33 | +|Component |ASN |Description |
| 34 | + |
| 35 | +|Core Router |
| 36 | +|64666 |
| 37 | +|Central router that peers with both TOR routers and advertises client network routes |
| 38 | + |
| 39 | +|West TOR |
| 40 | +|64001 |
| 41 | +|Top-of-rack router for the west cluster, peers with core and west OpenShift workers |
| 42 | + |
| 43 | +|East TOR |
| 44 | +|64002 |
| 45 | +|Top-of-rack router for the east cluster, peers with core and east OpenShift workers |
| 46 | + |
| 47 | +|West OpenShift (MetalLB) |
| 48 | +|65001 |
| 49 | +|MetalLB speakers on west cluster workers, peer with west TOR |
| 50 | + |
| 51 | +|East OpenShift (MetalLB) |
| 52 | +|65002 |
| 53 | +|MetalLB speakers on east cluster workers, peer with east TOR |
| 54 | +|=== |
| 55 | + |
| 56 | +=== Anycast addressing |
| 57 | + |
| 58 | +Both clusters advertise the same anycast IP range (192.168.155.0/24) via BGP. When a client accesses an anycast IP: |
| 59 | + |
| 60 | +.Client path to services via anycast and BGP |
| 61 | +image::ingress-mesh-bgp/ingress-path.svg[Client Ingress Path,700] |
| 62 | + |
| 63 | +. The core router receives BGP advertisements from both TOR routers for the anycast range |
| 64 | +. ECMP routing distributes traffic across both paths |
| 65 | +. Requests reach either the west or east cluster based on the routing decision |
| 66 | +. If one cluster becomes unavailable, BGP route withdrawal automatically redirects traffic to the remaining cluster |
| 67 | + |
| 68 | +[id="cluster-components-imbgp"] |
| 69 | +== Cluster components |
| 70 | + |
| 71 | +=== West cluster (Hub) |
| 72 | + |
| 73 | +The west cluster acts as the management hub and includes: |
| 74 | + |
| 75 | +* *Red Hat Advanced Cluster Management* - Manages the east cluster as a spoke |
| 76 | +* *HashiCorp Vault* - Centralized secrets management |
| 77 | +* *External Secrets Operator* - Synchronizes secrets from Vault to Kubernetes |
| 78 | +* *MetalLB* - Provides BGP-advertised load balancer services (ASN 65001) |
| 79 | +* *Gateway API* - Routes incoming traffic to appropriate services, providing the intermediary layer between BGP ingress and Skupper |
| 80 | +* *Red Hat Service Interconnect (Skupper)* - Hosts the Skupper site with link access enabled |
| 81 | +* *Hello-world application* - Frontend component of the demo application |
| 82 | + |
| 83 | +=== East cluster (Spoke) |
| 84 | + |
| 85 | +The east cluster is a managed spoke that includes: |
| 86 | + |
| 87 | +* *External Secrets Operator* - Retrieves secrets from the hub's Vault |
| 88 | +* *MetalLB* - Provides BGP-advertised load balancer services (ASN 65002) |
| 89 | +* *Gateway API* - Routes incoming traffic to appropriate services, providing the intermediary layer between BGP ingress and Skupper |
| 90 | +* *Red Hat Service Interconnect (Skupper)* - Connects back to the west cluster's Skupper site |
| 91 | +* *Hello-world application* - Backend component of the demo application |
| 92 | + |
| 93 | +[id="metallb-imbgp"] |
| 94 | +== MetalLB |
| 95 | + |
| 96 | +MetalLB provides load balancer services on bare metal and cloud environments where cloud-native load balancers are not available or not suitable: |
| 97 | + |
| 98 | +* Each cluster runs MetalLB in BGP mode with a unique ASN (65001 for west, 65002 for east) |
| 99 | +* MetalLB speakers on worker nodes peer with the local TOR router and advertise service IPs via BGP |
| 100 | +* Both clusters advertise the same anycast IP range (192.168.155.0/24), enabling ECMP routing from the core |
| 101 | +* When a cluster becomes unavailable, its BGP routes are withdrawn and traffic is automatically redirected to the remaining cluster |
| 102 | + |
| 103 | +[id="gateway-api-imbgp"] |
| 104 | +== Gateway API |
| 105 | + |
| 106 | +Gateway API provides the L4/L7 routing layer between BGP ingress and application services: |
| 107 | + |
| 108 | +* *GatewayClass* - Defined by infrastructure providers to describe the type of gateway infrastructure available |
| 109 | +* *Gateway* - Created by operations teams to instantiate a gateway from a GatewayClass, defining listeners and allowed routes |
| 110 | +* *HTTPRoute / GRPCRoute* - Created by application developers to describe how traffic should be routed to their services |
| 111 | + |
| 112 | +Gateway API is the intermediary step between BGP and Skupper. Traffic arriving at a cluster via BGP-advertised anycast IPs passes through Gateway API for service routing before reaching Skupper for inter-cluster communication. This separation of concerns allows application developers to define their own routing rules on approved gateways without relying on network infrastructure teams. |
| 113 | + |
| 114 | +[id="service-interconnect-imbgp"] |
| 115 | +== Red Hat Service Interconnect |
| 116 | + |
| 117 | +Red Hat Service Interconnect (based on Skupper) creates a virtual application network between the clusters: |
| 118 | + |
| 119 | +* The west cluster hosts a Skupper site with `linkAccess: default`, allowing other sites to connect |
| 120 | +* The east cluster establishes a link to the west cluster using a pre-shared access token |
| 121 | +* Services exposed through Skupper listeners become accessible across both clusters |
| 122 | +* All traffic between sites is encrypted using mutual TLS |
| 123 | + |
| 124 | +The pattern uses the Skupper v2 API with the following components: |
| 125 | + |
| 126 | +* *Site* - Defines the Skupper installation in each namespace |
| 127 | +* *Listener* - Exposes a service to the Skupper network |
| 128 | +* *Connector* - Connects a local workload to a Skupper-exposed service |
| 129 | +* *AccessGrant/AccessToken* - Manages secure connection between sites |
| 130 | + |
| 131 | +[id="gitops-structure-imbgp"] |
| 132 | +== GitOps structure |
| 133 | + |
| 134 | +The pattern follows the Validated Patterns framework: |
| 135 | + |
| 136 | +---- |
| 137 | +ingress-mesh-bgp/ |
| 138 | +├── values-global.yaml # Global configuration |
| 139 | +├── values-west.yaml # West (hub) cluster configuration |
| 140 | +├── values-east.yaml # East (spoke) cluster configuration |
| 141 | +├── charts/ |
| 142 | +│ ├── all/ |
| 143 | +│ │ ├── hello-world/ # Demo application |
| 144 | +│ │ ├── metallb/ # MetalLB configuration |
| 145 | +│ │ └── rhsi/ # Skupper configuration for west |
| 146 | +│ └── east-site/ |
| 147 | +│ └── rhsi-east/ # Skupper configuration for east |
| 148 | +└── ansible/ |
| 149 | + └── playbooks/ # Infrastructure automation |
| 150 | +---- |
| 151 | + |
| 152 | +ArgoCD manages the deployment of all components, with Red Hat Advanced Cluster Management distributing configurations to the appropriate clusters. |
0 commit comments