-
Notifications
You must be signed in to change notification settings - Fork 469
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable helm overrides for envoy command line arguments (#1741)
* Enable helm overrides for envoy command line arguments * Fix go templating * Remove unneeded files * Add docs * changelog * changelogs * fix docs * Add changelog * Update changelog/v1.1.0/envoy-command-line-args.yaml Co-Authored-By: Graham Goudeau <[email protected]> * Address code review comments
- Loading branch information
1 parent
cfb5d68
commit 8a653ee
Showing
6 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
changelog: | ||
- type: NEW_FEATURE | ||
description: Add the Helm field `.Values.gatewayProxies.gatewayProxy.extraEnvoyArgs` so users can add additional envoy command line arguments (e.g. --set component-log-level="...", to set log levels for individual envoy components). See the full list of Envoy command line args here - https://www.envoyproxy.io/docs/envoy/latest/operations/cli | ||
issueLink: https://github.com/solo-io/gloo/issues/1737 | ||
- type: HELM | ||
description: Add the Helm field `extraEnvoyArgs` to .Values.gatewayProxies.gatewayProxy so users can add additional envoy command line arguments (e.g. --component-log-level "upstream:trace,misc:error", to set log levels for individual envoy components). See the full list of Envoy command line args here - https://www.envoyproxy.io/docs/envoy/latest/operations/cli | ||
issueLink: https://github.com/solo-io/gloo/issues/1737 |
41 changes: 41 additions & 0 deletions
41
docs/content/advanced_configuration/gateway-proxy-config.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
title: Envoy Bootstrap Configuration | ||
weight: 60 | ||
description: Bootstrap configuration for Envoy | ||
--- | ||
|
||
## Configuring Envoy | ||
|
||
Envoy's [bootstrap configuration](https://www.envoyproxy.io/docs/envoy/latest/configuration/overview/v2_overview#bootstrap-configuration) | ||
can be done in two ways: 1) with a configuration file that we represent as the config map `gateway-proxy-envoy-config` | ||
and 2) with command-line arguments that we pass in to the `gateway-proxy` pod. | ||
|
||
You do not need to set either of these manually - gloo has default settings for both in its Helm chart. | ||
|
||
### Configuration File | ||
|
||
The Helm value that overrides our default bootstrap configuration is `gatewayProxies.$PROXY_NAME.configMap`. To see an example config map, look no further than [Envoy's configuration documentation](https://www.envoyproxy.io/docs/envoy/latest/configuration/overview/v2_overview#bootstrap-configuration). | ||
|
||
To see the entire list of Gloo Helm Overrides, see our [list of Helm Chart values](../../installation/gateway/kubernetes/#list-of-gloo-helm-chart-values). | ||
|
||
### Command-line Arguments | ||
|
||
The Helm value that sets additional Envoy command line arguments is `gatewayProxies.NAME.extraEnvoyArgs`. | ||
To see a list of available Envoy command line arguments, see their [latest command line documentation](https://www.envoyproxy.io/docs/envoy/latest/operations/cli). | ||
|
||
{{% notice note %}} | ||
We will always set `--disable-hot-restart` regardless of any value provided to `extraEnvoyArgs`. | ||
{{% /notice %}} | ||
|
||
An example `values.yaml` file that you could pass in to configure Envoy is: | ||
``` | ||
gatewayProxies: | ||
gatewayProxy: | ||
extraEnvoyArgs: | ||
- component-log-level | ||
- upstream:debug,connection:trace | ||
``` | ||
|
||
This sets the log levels of individual Envoy components - setting the upstream log levels to `debug` | ||
and the `connection` component's log level to `trace`. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters