Commit 621ec00
Separate control plane and data plane; support multiple Gateways (#3318)
As a route to efficacy and quickly understanding the Gateway API, its implementation and alignment to NGINX as a data plane, we decided on a simplified, but rigid, deployment pattern. To improve our security posture and installation flexibility the control and data planes are being separated as semi-autonomous, distributed components. This also allows us to support multiple Gateways for a single control plane.
A general summary of the changes being made:
- control plane and data plane are now in separate Deployments
- installing NGF just installs the control plane
- when a Gateway resource is created, the control plane provisions an nginx data plane deployment and service
- the NginxProxy CRD resource can now be set at the Gateway level, and has been enhanced to include all deployment/service infrastructure-related fields, such as replicas, loadBalancerIP, serviceType, etc.
- these fields can be configured globally at installation time in the helm chart, or set on an individual basis per Gateway
- updating these fields directly on a provisioned nginx Deployment or Service will not take effect
- this does not apply to the control plane Deployment
- labels/annotations for the NGINX deployment or service can be set in the Gateway's Infrastructure section
- the NGINX pod uses the NGINX agent (currently an unofficial, unreleased version) to update NGINX configuration
- control plane communicates with the NGINX agent over a secure gRPC connection, using self-signed certs by default, created at installation time. Cert-manager can be used instead.
- multiple Gateways is now supported
---------
Co-authored-by: Kate Osborn <[email protected]>
Co-authored-by: bjee19 <[email protected]>
Co-authored-by: salonichf5 <[email protected]>
Co-authored-by: Benjamin Jee <[email protected]>1 parent 7bce264 commit 621ec00
File tree
289 files changed
+35769
-16508
lines changed- .github
- ISSUE_TEMPLATE
- workflows
- apis
- v1alpha1
- v1alpha2
- build
- charts/nginx-gateway-fabric
- templates
- cmd/gateway
- config
- crd/bases
- tests
- deploy
- aws-nlb
- azure
- default
- experimental-nginx-plus
- experimental
- nginx-plus
- nodeport
- openshift
- snippets-filters-nginx-plus
- snippets-filters
- docs
- developer
- proposals
- examples
- cafe-example
- cross-namespace-routing
- grpc-routing
- helm
- aws-nlb
- azure
- experimental-nginx-plus
- nginx-plus
- nodeport
- snippets-filters-nginx-plus
- https-termination
- traffic-splitting
- internal
- framework
- controller
- index
- predicate
- file
- filefakes
- runnables
- mode
- provisioner
- static
- config
- metrics/collectors
- nginx
- agent
- agentfakes
- broadcast
- broadcastfakes
- grpc
- context
- filewatcher
- grpcfakes
- interceptor
- messenger
- messengerfakes
- config
- configfakes
- policies
- clientsettings
- observability
- policiesfakes
- upstreamsettings
- file
- filefakes
- runtime
- runtimefakes
- provisioner
- openshift
- openshiftfakes
- provisionerfakes
- state
- conditions
- dataplane
- graph
- statefakes
- validation
- validationfakes
- status
- telemetry
- telemetryfakes
- scripts
- tests
- conformance
- provisioner
- framework
- scripts
- suite
- manifests
- clientsettings
- reconfig
- scale/zero-downtime
- tracing
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
289 files changed
+35769
-16508
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | 79 | | |
87 | 80 | | |
88 | 81 | | |
| |||
151 | 144 | | |
152 | 145 | | |
153 | 146 | | |
154 | | - | |
155 | 147 | | |
156 | 148 | | |
157 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
95 | 102 | | |
96 | 103 | | |
97 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
| |||
0 commit comments