|
224 | 224 | ], |
225 | 225 | "additionalProperties": false |
226 | 226 | } |
| 227 | + }, |
| 228 | + "tcp": { |
| 229 | + "type": "array", |
| 230 | + "description": "TCP routes for non-HTTP services (e.g., PostgreSQL, Redis)", |
| 231 | + "items": { |
| 232 | + "type": "object", |
| 233 | + "properties": { |
| 234 | + "name": { |
| 235 | + "type": "string", |
| 236 | + "description": "Name identifier for the TCPRoute resource" |
| 237 | + }, |
| 238 | + "listenerName": { |
| 239 | + "type": "string", |
| 240 | + "description": "Name of the TCP listener on the gateway (must match)" |
| 241 | + }, |
| 242 | + "gatewayPort": { |
| 243 | + "type": "integer", |
| 244 | + "minimum": 1, |
| 245 | + "maximum": 65535, |
| 246 | + "description": "Port exposed on the gateway for this TCP route" |
| 247 | + }, |
| 248 | + "namespace": { |
| 249 | + "type": "string", |
| 250 | + "description": "Namespace of the backend service" |
| 251 | + }, |
| 252 | + "service": { |
| 253 | + "type": "object", |
| 254 | + "description": "Kubernetes service backend configuration", |
| 255 | + "properties": { |
| 256 | + "name": { |
| 257 | + "type": "string", |
| 258 | + "description": "Name of the Kubernetes service" |
| 259 | + }, |
| 260 | + "port": { |
| 261 | + "type": "integer", |
| 262 | + "minimum": 1, |
| 263 | + "maximum": 65535, |
| 264 | + "description": "Port of the backend service" |
| 265 | + } |
| 266 | + }, |
| 267 | + "required": [ |
| 268 | + "name", |
| 269 | + "port" |
| 270 | + ], |
| 271 | + "additionalProperties": false |
| 272 | + }, |
| 273 | + "selector": { |
| 274 | + "type": "object", |
| 275 | + "description": "Kubernetes-style label selector (key-value pairs)", |
| 276 | + "additionalProperties": { |
| 277 | + "type": "string" |
| 278 | + } |
| 279 | + }, |
| 280 | + "from": { |
| 281 | + "type": "string", |
| 282 | + "enum": [ |
| 283 | + "Same", |
| 284 | + "All", |
| 285 | + "Selector" |
| 286 | + ], |
| 287 | + "description": "Specifies where traffic can originate from" |
| 288 | + } |
| 289 | + }, |
| 290 | + "required": [ |
| 291 | + "listenerName", |
| 292 | + "gatewayPort", |
| 293 | + "service" |
| 294 | + ], |
| 295 | + "additionalProperties": false |
| 296 | + } |
| 297 | + }, |
| 298 | + "tlsTerminatedTcp": { |
| 299 | + "type": "array", |
| 300 | + "description": "TLS-terminated TCP routes. Envoy terminates TLS from the client and forwards plaintext to the backend. Used for encrypting cross-cluster TCP traffic (e.g., Redis) without requiring server-side TLS.", |
| 301 | + "items": { |
| 302 | + "type": "object", |
| 303 | + "properties": { |
| 304 | + "name": { |
| 305 | + "type": "string", |
| 306 | + "description": "Name identifier for the TCPRoute resource" |
| 307 | + }, |
| 308 | + "listenerName": { |
| 309 | + "type": "string", |
| 310 | + "description": "Name of the TLS listener on the gateway (must match)" |
| 311 | + }, |
| 312 | + "fqdn": { |
| 313 | + "type": "string", |
| 314 | + "description": "FQDN for the TLS listener (used for SNI and cert generation)" |
| 315 | + }, |
| 316 | + "gatewayPort": { |
| 317 | + "type": "integer", |
| 318 | + "minimum": 1, |
| 319 | + "maximum": 65535, |
| 320 | + "description": "Port exposed on the gateway for this route" |
| 321 | + }, |
| 322 | + "namespace": { |
| 323 | + "type": "string", |
| 324 | + "description": "Namespace of the backend service" |
| 325 | + }, |
| 326 | + "service": { |
| 327 | + "type": "object", |
| 328 | + "description": "Kubernetes service backend configuration", |
| 329 | + "properties": { |
| 330 | + "name": { |
| 331 | + "type": "string", |
| 332 | + "description": "Name of the Kubernetes service" |
| 333 | + }, |
| 334 | + "port": { |
| 335 | + "type": "integer", |
| 336 | + "minimum": 1, |
| 337 | + "maximum": 65535, |
| 338 | + "description": "Port of the backend service" |
| 339 | + } |
| 340 | + }, |
| 341 | + "required": [ |
| 342 | + "name", |
| 343 | + "port" |
| 344 | + ], |
| 345 | + "additionalProperties": false |
| 346 | + }, |
| 347 | + "selector": { |
| 348 | + "type": "object", |
| 349 | + "description": "Kubernetes-style label selector (key-value pairs)", |
| 350 | + "additionalProperties": { |
| 351 | + "type": "string" |
| 352 | + } |
| 353 | + }, |
| 354 | + "from": { |
| 355 | + "type": "string", |
| 356 | + "enum": [ |
| 357 | + "Same", |
| 358 | + "All", |
| 359 | + "Selector" |
| 360 | + ], |
| 361 | + "description": "Specifies where traffic can originate from" |
| 362 | + } |
| 363 | + }, |
| 364 | + "required": [ |
| 365 | + "listenerName", |
| 366 | + "fqdn", |
| 367 | + "gatewayPort", |
| 368 | + "service" |
| 369 | + ], |
| 370 | + "additionalProperties": false |
| 371 | + } |
227 | 372 | } |
228 | 373 | } |
229 | 374 | } |
|
0 commit comments