Logging when HTTP proxy forwarding is enabled
When you enable HTTP proxy forwarding, you create a single point through which multiple machines send requests to an external server. For logging, you may not want to have all traffic forwarded through the proxy.
This procedure explains how to disable HTTP proxy forwarding for specific hosts in your overrides file.
Procedure
- Disable proxy forwarding for logging for specific hosts by setting the
logger.envVarsproperty inoverrides.yaml:logger: ... envVars: NO_PROXY: '<comma-separated-values>'for example:
envVars: NO_PROXY: 'kubernetes.default.svc,oauth2.googleapis.com,logging.googleapis.com'The
logger.envVarsproperty allows you to pass in environment variables supported by Fluent Bit. See NO_PROXY in the Fluent Bit documentation. -
Apply the changes to logger with
apigeectl applywith the--telemetryscope:apigeectl apply --telemetry -f overrides.yaml
See also
logger.envVarsin the Configuration properties reference.- Configure forward proxying for API proxies.