@@ -54,36 +54,57 @@ spec:
54
54
description : TransportServerSpec is the spec of the TransportServer resource.
55
55
properties :
56
56
action :
57
- description : TransportServerAction defines an action .
57
+ description : The action to perform for a request .
58
58
properties :
59
59
pass :
60
+ description : Passes connections/datagrams to an upstream. The
61
+ upstream with that name must be defined in the resource.
60
62
type : string
61
63
type : object
62
64
host :
65
+ description : The host (domain name) of the server. Must be a valid
66
+ subdomain as defined in RFC 1123, such as my-app or hello.example.com.
67
+ When using a wildcard domain like *.example.com the domain must
68
+ be contained in double quotes. The host value needs to be unique
69
+ among all Ingress and VirtualServer resources.
63
70
type : string
64
71
ingressClassName :
72
+ description : Specifies which Ingress Controller must handle the VirtualServer
73
+ resource.
65
74
type : string
66
75
listener :
67
- description : TransportServerListener defines a listener for a TransportServer.
76
+ description : Sets a custom HTTP and/or HTTPS listener. Valid fields
77
+ are listener.http and listener.https. Each field must reference
78
+ the name of a valid listener defined in a GlobalConfiguration resource
68
79
properties :
69
80
name :
81
+ description : The name of a listener defined in a GlobalConfiguration
82
+ resource.
70
83
type : string
71
84
protocol :
85
+ description : The protocol of the listener.
72
86
type : string
73
87
type : object
74
88
serverSnippets :
89
+ description : Sets a custom snippet in server context. Overrides the
90
+ server-snippets ConfigMap key.
75
91
type : string
76
92
sessionParameters :
77
- description : SessionParameters defines session parameters.
93
+ description : The parameters of the session to be used for the Server
94
+ context
78
95
properties :
79
96
timeout :
97
+ description : The timeout between two successive read or write
98
+ operations on client or proxied server connections. The default
99
+ is 10m.
80
100
type : string
81
101
type : object
82
102
streamSnippets :
103
+ description : Sets a custom snippet in the stream context. Overrides
104
+ the stream-snippets ConfigMap key.
83
105
type : string
84
106
tls :
85
- description : TransportServerTLS defines TransportServerTLS configuration
86
- for a TransportServer.
107
+ description : The TLS termination configuration.
87
108
properties :
88
109
secret :
89
110
type : string
@@ -92,80 +113,163 @@ spec:
92
113
description : UpstreamParameters defines parameters for an upstream.
93
114
properties :
94
115
connectTimeout :
116
+ description : The timeout for establishing a connection with a
117
+ proxied server. The default is 60s.
95
118
type : string
96
119
nextUpstream :
120
+ description : If a connection to the proxied server cannot be established,
121
+ determines whether a client connection will be passed to the
122
+ next server. The default is true.
97
123
type : boolean
98
124
nextUpstreamTimeout :
125
+ description : The time allowed to pass a connection to the next
126
+ server. The default is 0.
99
127
type : string
100
128
nextUpstreamTries :
129
+ description : The number of tries for passing a connection to the
130
+ next server. The default is 0.
101
131
type : integer
102
132
udpRequests :
133
+ description : The number of datagrams, after receiving which, the
134
+ next datagram from the same client starts a new session. The
135
+ default is 0.
103
136
type : integer
104
137
udpResponses :
138
+ description : The number of datagrams expected from the proxied
139
+ server in response to a client datagram. By default, the number
140
+ of datagrams is not limited.
105
141
type : integer
106
142
type : object
107
143
upstreams :
144
+ description : A list of upstreams.
108
145
items :
109
146
description : TransportServerUpstream defines an upstream.
110
147
properties :
111
148
backup :
149
+ description : ' The name of the backup service of type ExternalName.
150
+ This will be used when the primary servers are unavailable.
151
+ Note: The parameter cannot be used along with the random,
152
+ hash or ip_hash load balancing methods.'
112
153
type : string
113
154
backupPort :
155
+ description : The port of the backup service. The backup port
156
+ is required if the backup service name is provided. The port
157
+ must fall into the range 1..65535.
114
158
type : integer
115
159
failTimeout :
160
+ description : Sets the number of unsuccessful attempts to communicate
161
+ with the server that should happen in the duration set by
162
+ the failTimeout parameter to consider the server unavailable.
163
+ The default is 1.
116
164
type : string
117
165
healthCheck :
118
- description : TransportServerHealthCheck defines the parameters
119
- for active Upstream HealthChecks.
166
+ description : ' The health check configuration for the Upstream.
167
+ Note: this feature is supported only in NGINX Plus. '
120
168
properties :
121
169
enable :
170
+ description : Enables a health check for an upstream server.
171
+ The default is false.
122
172
type : boolean
123
173
fails :
174
+ description : The number of consecutive failed health checks
175
+ of a particular upstream server after which this server
176
+ will be considered unhealthy. The default is 1.
124
177
type : integer
125
178
interval :
179
+ description : The interval between two consecutive health
180
+ checks. The default is 5s.
126
181
type : string
127
182
jitter :
183
+ description : The time within which each health check will
184
+ be randomly delayed. By default, there is no delay.
128
185
type : string
129
186
match :
130
- description : TransportServerMatch defines the parameters
131
- of a custom health check .
187
+ description : Controls the data to send and the response
188
+ to expect for the healthcheck .
132
189
properties :
133
190
expect :
191
+ description : A literal string or a regular expression
192
+ that the data obtained from the server should match.
193
+ The regular expression is specified with the preceding
194
+ ~* modifier (for case-insensitive matching), or the
195
+ ~ modifier (for case-sensitive matching). NGINX Ingress
196
+ Controller validates a regular expression using the
197
+ RE2 syntax.
134
198
type : string
135
199
send :
200
+ description : A string to send to an upstream server.
136
201
type : string
137
202
type : object
138
203
passes :
204
+ description : The number of consecutive passed health checks
205
+ of a particular upstream server after which the server
206
+ will be considered healthy. The default is 1.
139
207
type : integer
140
208
port :
209
+ description : ' The port used for health check requests. By
210
+ default, the server port is used. Note: in contrast with
211
+ the port of the upstream, this port is not a service port,
212
+ but a port of a pod.'
141
213
type : integer
142
214
timeout :
215
+ description : This overrides the timeout set by proxy_timeout
216
+ which is set in SessionParameters for health checks. The
217
+ default value is 5s.
143
218
type : string
144
219
type : object
145
220
loadBalancingMethod :
221
+ description : The method used to load balance the upstream servers.
222
+ By default, connections are distributed between the servers
223
+ using a weighted round-robin balancing method.
146
224
type : string
147
225
maxConns :
226
+ description : Sets the time during which the specified number
227
+ of unsuccessful attempts to communicate with the server should
228
+ happen to consider the server unavailable and the period of
229
+ time the server will be considered unavailable. The default
230
+ is 10s.
148
231
type : integer
149
232
maxFails :
233
+ description : Sets the number of maximum connections to the proxied
234
+ server. Default value is zero, meaning there is no limit.
235
+ The default is 0.
150
236
type : integer
151
237
name :
238
+ description : The name of the upstream. Must be a valid DNS label
239
+ as defined in RFC 1035. For example, hello and upstream-123
240
+ are valid. The name must be unique among all upstreams of
241
+ the resource.
152
242
type : string
153
243
port :
244
+ description : The port of the service. If the service doesn’t
245
+ define that port, NGINX will assume the service has zero endpoints
246
+ and close client connections/ignore datagrams. The port must
247
+ fall into the range 1..65535.
154
248
type : integer
155
249
service :
250
+ description : The name of a service. The service must belong
251
+ to the same namespace as the resource. If the service doesn’t
252
+ exist, NGINX will assume the service has zero endpoints and
253
+ close client connections/ignore datagrams.
156
254
type : string
157
255
type : object
158
256
type : array
159
257
type : object
160
258
status :
161
- description : TransportServerStatus defines the status for the TransportServer
162
- resource.
259
+ description : The status of the TransportServer resource
163
260
properties :
164
261
message :
262
+ description : The message of the current state of the resource. It
263
+ can contain more detailed information about the reason.
165
264
type : string
166
265
reason :
266
+ description : The reason of the current state of the resource.
167
267
type : string
168
268
state :
269
+ description : ' Represents the current state of the resource. Possible
270
+ values: Valid (resource validated and accepted), Invalid (validation
271
+ failed or config reload failed), or Warning (validated but may work
272
+ in degraded state).'
169
273
type : string
170
274
type : object
171
275
type : object
0 commit comments