From 6d1b6d84262a90a08fb22cd3ca348190c54f1089 Mon Sep 17 00:00:00 2001
From: Kate Osborn
@@ -22,8 +25,6 @@ Resource Types:
- NginxProxy is a configuration object that is attached to a GatewayClass parametersRef. It provides a way
-to configure global settings for all Gateways defined from the GatewayClass.gateway.nginx.org/v1alpha1
NginxProxy
-¶
-
-
| Field | -Description | -||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
-apiVersion-string |
-
-
-gateway.nginx.org/v1alpha1
-
- |
-||||||||||
-kind-string - |
-NginxProxy |
-||||||||||
-metadata- - -Kubernetes meta/v1.ObjectMeta - - - |
-
-Refer to the Kubernetes API documentation for the fields of the
-metadata field.
- |
-||||||||||
-spec- - -NginxProxySpec - - - |
-
- Spec defines the desired state of the NginxProxy. -- -
|
-
-(Appears on: -RewriteClientIP) -
--
Address is a struct that specifies address type and value.
- -| Field | -Description | -
|---|---|
-type- - -AddressType - - - |
-
- Type specifies the type of address. - |
-
-value- -string - - |
-
- Value specifies the address value. - |
-
string alias)¶
--(Appears on: -Address) -
--
AddressType specifies the type of address.
- -| Value | -Description | -
|---|---|
"CIDR" |
-CIDRAddressType specifies that the address is a CIDR block. - |
-
"Hostname" |
-HostnameAddressType specifies that the address is a Hostname. - |
-
"IPAddress" |
-IPAddressType specifies that the address is an IP address. - |
-
Duration is a string value representing a duration in time. @@ -1110,34 +904,6 @@ Duration can be specified in milliseconds (ms), seconds (s), minutes (m), hours A value without a suffix is seconds. Examples: 120s, 50ms, 5m, 1h.
-string alias)¶
--(Appears on: -NginxProxySpec) -
--
IPFamilyType specifies the IP family to be used by NGINX.
- -| Value | -Description | -
|---|---|
"dual" |
-Dual specifies that NGINX will use both IPv4 and IPv6. - |
-
"ipv4" |
-IPv4 specifies that NGINX will use only IPv4. - |
-
"ipv6" |
-IPv6 specifies that NGINX will use only IPv6. - |
-
string alias)¶
+string alias)¶
-(Appears on: -NginxLogging) -
--
NginxErrorLogLevel type defines the log level of error logs for NGINX.
+NginxGatewayConditionReason defines the set of reasons that explain why a +particular NginxGateway condition type has been raised.
| Description | -|
|---|---|
"alert" |
-NginxLogLevelAlert is the alert level for NGINX error logs. - |
-
"crit" |
-NginxLogLevelCrit is the crit level for NGINX error logs. - |
-
"debug" |
-NginxLogLevelDebug is the debug level for NGINX error logs. - |
-
"emerg" |
-NginxLogLevelEmerg is the emerg level for NGINX error logs. - |
-
"error" |
-NginxLogLevelError is the error level for NGINX error logs. - |
-
"info" |
-NginxLogLevelInfo is the info level for NGINX error logs. - |
-
"notice" |
-NginxLogLevelNotice is the notice level for NGINX error logs. + |
"Invalid" |
+NginxGatewayReasonInvalid is a reason that is used with the “Valid” condition when the condition is False. |
-
"warn" |
-NginxLogLevelWarn is the warn level for NGINX error logs. + |
"Valid" |
+NginxGatewayReasonValid is a reason that is used with the “Valid” condition when the condition is True. |
string alias)¶
--
NginxGatewayConditionReason defines the set of reasons that explain why a -particular NginxGateway condition type has been raised.
- -| Value | -Description | -
|---|---|
"Invalid" |
-NginxGatewayReasonInvalid is a reason that is used with the “Valid” condition when the condition is False. - |
-
"Valid" |
-NginxGatewayReasonValid is a reason that is used with the “Valid” condition when the condition is True. - |
-
string alias)¶
+string alias)¶
NginxGatewayConditionType is a type of condition associated with an @@ -1358,133 +1081,6 @@ Logging -
-(Appears on: -NginxProxySpec) -
--
NginxLogging defines logging related settings for NGINX.
- -| Field | -Description | -
|---|---|
-errorLevel- - -NginxErrorLogLevel - - - |
-
-(Optional)
- ErrorLevel defines the error log level. Possible log levels listed in order of increasing severity are -debug, info, notice, warn, error, crit, alert, and emerg. Setting a certain log level will cause all messages -of the specified and more severe log levels to be logged. For example, the log level ‘error’ will cause error, -crit, alert, and emerg messages to be logged. https://nginx.org/en/docs/ngx_core_module.html#error_log - |
-
-(Appears on: -NginxProxy) -
--
NginxProxySpec defines the desired state of the NginxProxy.
- -| Field | -Description | -
|---|---|
-ipFamily- - -IPFamilyType - - - |
-
-(Optional)
- IPFamily specifies the IP family to be used by the NGINX. -Default is “dual”, meaning the server will use both IPv4 and IPv6. - |
-
-telemetry- - -Telemetry - - - |
-
-(Optional)
- Telemetry specifies the OpenTelemetry configuration. - |
-
-rewriteClientIP- - -RewriteClientIP - - - |
-
-(Optional)
- RewriteClientIP defines configuration for rewriting the client IP to the original client’s IP. - |
-
-logging- - -NginxLogging - - - |
-
-(Optional)
- Logging defines logging related settings for NGINX. - |
-
-disableHTTP2- -bool - - |
-
-(Optional)
- DisableHTTP2 defines if http2 should be disabled for all servers. -Default is false, meaning http2 will be enabled for all servers. - |
-
-(Appears on: -NginxProxySpec) -
--
RewriteClientIP specifies the configuration for rewriting the client’s IP address.
- -| Field | -Description | -
|---|---|
-mode- - -RewriteClientIPModeType - - - |
-
-(Optional)
- Mode defines how NGINX will rewrite the client’s IP address. -There are two possible modes: -- ProxyProtocol: NGINX will rewrite the client’s IP using the PROXY protocol header. -- XForwardedFor: NGINX will rewrite the client’s IP using the X-Forwarded-For header. -Sets NGINX directive real_ip_header: https://nginx.org/en/docs/http/ngx_http_realip_module.html#real_ip_header - |
-
-setIPRecursively- -bool - - |
-
-(Optional)
- SetIPRecursively configures whether recursive search is used when selecting the client’s address from -the X-Forwarded-For header. It is used in conjunction with TrustedAddresses. -If enabled, NGINX will recurse on the values in X-Forwarded-Header from the end of array -to start of array and select the first untrusted IP. -For example, if X-Forwarded-For is [11.11.11.11, 22.22.22.22, 55.55.55.1], -and TrustedAddresses is set to 55.55.55.1⁄32, NGINX will rewrite the client IP to 22.22.22.22. -If disabled, NGINX will select the IP at the end of the array. -In the previous example, 55.55.55.1 would be selected. -Sets NGINX directive real_ip_recursive: https://nginx.org/en/docs/http/ngx_http_realip_module.html#real_ip_recursive - |
-
-trustedAddresses- - -[]Address - - - |
-
-(Optional)
- TrustedAddresses specifies the addresses that are trusted to send correct client IP information. -If a request comes from a trusted address, NGINX will rewrite the client IP information, -and forward it to the backend in the X-Forwarded-For* and X-Real-IP headers. -If the request does not come from a trusted address, NGINX will not rewrite the client IP information. -TrustedAddresses only supports CIDR blocks: 192.33.21.1⁄24, fe80::1⁄64. -To trust all addresses (not recommended for production), set to 0.0.0.0/0. -If no addresses are provided, NGINX will not rewrite the client IP information. -Sets NGINX directive set_real_ip_from: https://nginx.org/en/docs/http/ngx_http_realip_module.html#set_real_ip_from -This field is required if mode is set. - |
-
string alias)¶
--(Appears on: -RewriteClientIP) -
--
RewriteClientIPModeType defines how NGINX Gateway Fabric will determine the client’s original IP address.
- -| Value | -Description | -
|---|---|
"ProxyProtocol" |
-RewriteClientIPModeProxyProtocol configures NGINX to accept PROXY protocol and -set the client’s IP address to the IP address in the PROXY protocol header. -Sets the proxy_protocol parameter on the listen directive of all servers and sets real_ip_header -to proxy_protocol: https://nginx.org/en/docs/http/ngx_http_realip_module.html#real_ip_header. - |
-
"XForwardedFor" |
-RewriteClientIPModeXForwardedFor configures NGINX to set the client’s IP address to the -IP address in the X-Forwarded-For HTTP header. -https://nginx.org/en/docs/http/ngx_http_realip_module.html#real_ip_header. - |
-
string alias)¶
(Appears on: -Telemetry, -Tracing) +Tracing, +Telemetry)
SpanAttribute is a key value pair to be added to a tracing span.
@@ -1864,155 +1350,20 @@ Format: must have all ‘“’ escaped and must not contain any &ls -string alias)¶
(Appears on: -NginxProxySpec) +Tracing)
-
Telemetry specifies the OpenTelemetry configuration.
+TraceContext specifies how to propagate traceparent/tracestate headers.
| Field | -Description | -
|---|---|
-exporter- - -TelemetryExporter - - - |
-
-(Optional)
- Exporter specifies OpenTelemetry export parameters. - |
-
-serviceName- -string - - |
-
-(Optional)
- ServiceName is the “service.name” attribute of the OpenTelemetry resource.
-Default is ‘ngf: |
-
-spanAttributes- - -[]SpanAttribute - - - |
-
-(Optional)
- SpanAttributes are custom key/value attributes that are added to each span. - |
-
-(Appears on: -Telemetry) -
--
TelemetryExporter specifies OpenTelemetry export parameters.
- -| Field | -Description | -
|---|---|
-interval- - -Duration - - - |
-
-(Optional)
- Interval is the maximum interval between two exports. -Default: https://nginx.org/en/docs/ngx_otel_module.html#otel_exporter - |
-
-batchSize- -int32 - - |
-
-(Optional)
- BatchSize is the maximum number of spans to be sent in one batch per worker. -Default: https://nginx.org/en/docs/ngx_otel_module.html#otel_exporter - |
-
-batchCount- -int32 - - |
-
-(Optional)
- BatchCount is the number of pending batches per worker, spans exceeding the limit are dropped. -Default: https://nginx.org/en/docs/ngx_otel_module.html#otel_exporter - |
-
-endpoint- -string - - |
-
- Endpoint is the address of OTLP/gRPC endpoint that will accept telemetry data. -Format: alphanumeric hostname with optional http scheme and optional port. - |
-
string alias)¶
--(Appears on: -Tracing) -
--
TraceContext specifies how to propagate traceparent/tracestate headers.
- -| Value | +Value | Description |
|---|
+
Package v1alpha2 contains API Schema definitions for the +gateway.nginx.org API group.
+ +Resource Types: ++
NginxProxy is a configuration object that can be referenced from a GatewayClass parametersRef +or a Gateway infrastructure.parametersRef. It provides a way to configure data plane settings. +If referenced from a GatewayClass, the settings apply to all Gateways attached to the GatewayClass. +If referenced from a Gateway, the settings apply to that Gateway alone. If both a Gateway and its GatewayClass +reference an NginxProxy, the settings are merged. Settings specified on the Gateway NginxProxy override those +set on the GatewayClass NginxProxy.
+ +| Field | +Description | +||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
+apiVersion+string |
+
+
+gateway.nginx.org/v1alpha2
+
+ |
+||||||||||
+kind+string + |
+NginxProxy |
+||||||||||
+metadata+ + +Kubernetes meta/v1.ObjectMeta + + + |
+
+Refer to the Kubernetes API documentation for the fields of the
+metadata field.
+ |
+||||||||||
+spec+ + +NginxProxySpec + + + |
+
+ Spec defines the desired state of the NginxProxy. ++ +
|
+
+(Appears on: +RewriteClientIP) +
++
Address is a struct that specifies address type and value.
+ +| Field | +Description | +
|---|---|
+type+ + +AddressType + + + |
+
+ Type specifies the type of address. + |
+
+value+ +string + + |
+
+ Value specifies the address value. + |
+
string alias)¶
++(Appears on: +Address) +
++
AddressType specifies the type of address.
+ +| Value | +Description | +
|---|---|
"CIDR" |
+CIDRAddressType specifies that the address is a CIDR block. + |
+
"Hostname" |
+HostnameAddressType specifies that the address is a Hostname. + |
+
"IPAddress" |
+IPAddressType specifies that the address is an IP address. + |
+
string alias)¶
++(Appears on: +Telemetry) +
++
DisableTelemetryFeature is a telemetry feature that can be disabled.
+ +| Value | +Description | +
|---|---|
"DisableTracing" |
+DisableTracing disables the OpenTelemetry tracing feature. + |
+
string alias)¶
++(Appears on: +NginxProxySpec) +
++
IPFamilyType specifies the IP family to be used by NGINX.
+ +| Value | +Description | +
|---|---|
"dual" |
+Dual specifies that NGINX will use both IPv4 and IPv6. + |
+
"ipv4" |
+IPv4 specifies that NGINX will use only IPv4. + |
+
"ipv6" |
+IPv6 specifies that NGINX will use only IPv6. + |
+
string alias)¶
++(Appears on: +NginxLogging) +
++
NginxErrorLogLevel type defines the log level of error logs for NGINX.
+ +| Value | +Description | +
|---|---|
"alert" |
+NginxLogLevelAlert is the alert level for NGINX error logs. + |
+
"crit" |
+NginxLogLevelCrit is the crit level for NGINX error logs. + |
+
"debug" |
+NginxLogLevelDebug is the debug level for NGINX error logs. + |
+
"emerg" |
+NginxLogLevelEmerg is the emerg level for NGINX error logs. + |
+
"error" |
+NginxLogLevelError is the error level for NGINX error logs. + |
+
"info" |
+NginxLogLevelInfo is the info level for NGINX error logs. + |
+
"notice" |
+NginxLogLevelNotice is the notice level for NGINX error logs. + |
+
"warn" |
+NginxLogLevelWarn is the warn level for NGINX error logs. + |
+
+(Appears on: +NginxProxySpec) +
++
NginxLogging defines logging related settings for NGINX.
+ +| Field | +Description | +
|---|---|
+errorLevel+ + +NginxErrorLogLevel + + + |
+
+(Optional)
+ ErrorLevel defines the error log level. Possible log levels listed in order of increasing severity are +debug, info, notice, warn, error, crit, alert, and emerg. Setting a certain log level will cause all messages +of the specified and more severe log levels to be logged. For example, the log level ‘error’ will cause error, +crit, alert, and emerg messages to be logged. https://nginx.org/en/docs/ngx_core_module.html#error_log + |
+
+(Appears on: +NginxProxy) +
++
NginxProxySpec defines the desired state of the NginxProxy.
+ +| Field | +Description | +
|---|---|
+ipFamily+ + +IPFamilyType + + + |
+
+(Optional)
+ IPFamily specifies the IP family to be used by the NGINX. +Default is “dual”, meaning the server will use both IPv4 and IPv6. + |
+
+telemetry+ + +Telemetry + + + |
+
+(Optional)
+ Telemetry specifies the OpenTelemetry configuration. + |
+
+rewriteClientIP+ + +RewriteClientIP + + + |
+
+(Optional)
+ RewriteClientIP defines configuration for rewriting the client IP to the original client’s IP. + |
+
+logging+ + +NginxLogging + + + |
+
+(Optional)
+ Logging defines logging related settings for NGINX. + |
+
+disableHTTP2+ +bool + + |
+
+(Optional)
+ DisableHTTP2 defines if http2 should be disabled for all servers. +If not specified, or set to false, http2 will be enabled for all servers. + |
+
+(Appears on: +NginxProxySpec) +
++
RewriteClientIP specifies the configuration for rewriting the client’s IP address.
+ +| Field | +Description | +
|---|---|
+mode+ + +RewriteClientIPModeType + + + |
+
+(Optional)
+ Mode defines how NGINX will rewrite the client’s IP address. +There are two possible modes: +- ProxyProtocol: NGINX will rewrite the client’s IP using the PROXY protocol header. +- XForwardedFor: NGINX will rewrite the client’s IP using the X-Forwarded-For header. +Sets NGINX directive real_ip_header: https://nginx.org/en/docs/http/ngx_http_realip_module.html#real_ip_header + |
+
+setIPRecursively+ +bool + + |
+
+(Optional)
+ SetIPRecursively configures whether recursive search is used when selecting the client’s address from +the X-Forwarded-For header. It is used in conjunction with TrustedAddresses. +If enabled, NGINX will recurse on the values in X-Forwarded-Header from the end of array +to start of array and select the first untrusted IP. +For example, if X-Forwarded-For is [11.11.11.11, 22.22.22.22, 55.55.55.1], +and TrustedAddresses is set to 55.55.55.1⁄32, NGINX will rewrite the client IP to 22.22.22.22. +If disabled, NGINX will select the IP at the end of the array. +In the previous example, 55.55.55.1 would be selected. +Sets NGINX directive real_ip_recursive: https://nginx.org/en/docs/http/ngx_http_realip_module.html#real_ip_recursive + |
+
+trustedAddresses+ + +[]Address + + + |
+
+(Optional)
+ TrustedAddresses specifies the addresses that are trusted to send correct client IP information. +If a request comes from a trusted address, NGINX will rewrite the client IP information, +and forward it to the backend in the X-Forwarded-For* and X-Real-IP headers. +If the request does not come from a trusted address, NGINX will not rewrite the client IP information. +To trust all addresses (not recommended for production), set to 0.0.0.0/0. +If no addresses are provided, NGINX will not rewrite the client IP information. +Sets NGINX directive set_real_ip_from: https://nginx.org/en/docs/http/ngx_http_realip_module.html#set_real_ip_from +This field is required if mode is set. + |
+
string alias)¶
++(Appears on: +RewriteClientIP) +
++
RewriteClientIPModeType defines how NGINX Gateway Fabric will determine the client’s original IP address.
+ +| Value | +Description | +
|---|---|
"ProxyProtocol" |
+RewriteClientIPModeProxyProtocol configures NGINX to accept PROXY protocol and +set the client’s IP address to the IP address in the PROXY protocol header. +Sets the proxy_protocol parameter on the listen directive of all servers and sets real_ip_header +to proxy_protocol: https://nginx.org/en/docs/http/ngx_http_realip_module.html#real_ip_header. + |
+
"XForwardedFor" |
+RewriteClientIPModeXForwardedFor configures NGINX to set the client’s IP address to the +IP address in the X-Forwarded-For HTTP header. +https://nginx.org/en/docs/http/ngx_http_realip_module.html#real_ip_header. + |
+
+(Appears on: +NginxProxySpec) +
++
Telemetry specifies the OpenTelemetry configuration.
+ +| Field | +Description | +
|---|---|
+disabledFeatures+ + +[]DisableTelemetryFeature + + + |
+
+(Optional)
+ DisabledFeatures specifies OpenTelemetry features to be disabled. + |
+
+exporter+ + +TelemetryExporter + + + |
+
+(Optional)
+ Exporter specifies OpenTelemetry export parameters. + |
+
+serviceName+ +string + + |
+
+(Optional)
+ ServiceName is the “service.name” attribute of the OpenTelemetry resource.
+Default is ‘ngf: |
+
+spanAttributes+ + +[]SpanAttribute + + + |
+
+(Optional)
+ SpanAttributes are custom key/value attributes that are added to each span. + |
+
+(Appears on: +Telemetry) +
++
TelemetryExporter specifies OpenTelemetry export parameters.
+ +| Field | +Description | +
|---|---|
+interval+ + +Duration + + + |
+
+(Optional)
+ Interval is the maximum interval between two exports. +Default: https://nginx.org/en/docs/ngx_otel_module.html#otel_exporter + |
+
+batchSize+ +int32 + + |
+
+(Optional)
+ BatchSize is the maximum number of spans to be sent in one batch per worker. +Default: https://nginx.org/en/docs/ngx_otel_module.html#otel_exporter + |
+
+batchCount+ +int32 + + |
+
+(Optional)
+ BatchCount is the number of pending batches per worker, spans exceeding the limit are dropped. +Default: https://nginx.org/en/docs/ngx_otel_module.html#otel_exporter + |
+
+endpoint+ +string + + |
+
+(Optional)
+ Endpoint is the address of OTLP/gRPC endpoint that will accept telemetry data. +Format: alphanumeric hostname with optional http scheme and optional port. + |
+
Generated with gen-crd-api-reference-docs