-
Notifications
You must be signed in to change notification settings - Fork 133
docs: generate load balancer env reference #1101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 9 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
81df387
docs: generate load balancer env reference
lukasmetzner 4a5d353
docs: add new environment variables
lukasmetzner f3c6923
docs: add defaults and fix type
lukasmetzner bfff6c5
docs: add default indication
lukasmetzner 740a1ef
docs: fix typo
lukasmetzner 1288910
docs: update introduction paragraph
lukasmetzner 1d9d81f
docs: transform bullet point to sentence
lukasmetzner e2b529a
refactor: rename annotation specifc code parts
lukasmetzner 55ffd0e
refactor: naming
lukasmetzner f431967
refactor: use generic name in table header
lukasmetzner 525ba7b
fix: references of other annotations/envs in text
lukasmetzner 9d85d8f
docs: update developer docs
lukasmetzner 40b651c
fix: references to other annotations/envs
lukasmetzner 84e1023
feat: keep original sorting of annotations and envs
lukasmetzner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,24 @@ | ||
| # Load Balancer Environment Variables | ||
|
|
||
| This page contains all environment variables, which can be specified to configure the Load Balancer controller of HCCM. | ||
|
|
||
| Some environment variables define global defaults. These defaults can be overridden by setting the corresponding annotation. If you remove such an annotation while a global default is configured, the global default will be applied again. | ||
|
|
||
| Enums are depicted in the `Type` column and possible options are separated via the pipe symbol `|`. | ||
|
|
||
| | Environment Variable | Type | Default | Description | | ||
lukasmetzner marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | --- | --- | --- | --- | | ||
| | `HCLOUD_LOAD_BALANCERS_ALGORITHM_TYPE` | `round_robin \| least_connections` | `round_robin` | Configures the default Load Balancer algorithm. | | ||
| | `HCLOUD_LOAD_BALANCERS_DISABLE_IPV6` | `bool` | `false` | Disables the use of IPv6 for the Load Balancer by default. | | ||
lukasmetzner marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | `HCLOUD_LOAD_BALANCERS_DISABLE_PRIVATE_INGRESS` | `bool` | `false` | Disables the use of the private network for ingress by default. | | ||
| | `HCLOUD_LOAD_BALANCERS_DISABLE_PUBLIC_NETWORK` | `bool` | `false` | Disables the public interface of the Load Balancer by default. | | ||
| | `HCLOUD_LOAD_BALANCERS_ENABLED` | `bool` | `true` | Controls whether the load balancer controller of HCCM should run. | | ||
| | `HCLOUD_LOAD_BALANCERS_HEALTH_CHECK_INTERVAL` | `int` | `10` | Configures the default time interval in seconds in which health checks are performed. | | ||
| | `HCLOUD_LOAD_BALANCERS_HEALTH_CHECK_RETRIES` | `int` | `3` | Configures the default amount of unsuccessful retries needed until a target is considered unhealthy. | | ||
| | `HCLOUD_LOAD_BALANCERS_HEALTH_CHECK_TIMEOUT` | `int` | `15` | Configures the default time in seconds after an attempt is considered a timeout. | | ||
| | `HCLOUD_LOAD_BALANCERS_LOCATION` | `string` | `-` | Specifies the default location where the Load Balancer will be created in. Mutually exclusive with hcloudLoadBalancersNetworkZone. | | ||
jooola marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | `HCLOUD_LOAD_BALANCERS_NETWORK_ZONE` | `string` | `-` | Specifies the default network zone where the Load Balancer will be created in. Mutually exclusive with hcloudLoadBalancersLocation. | | ||
jooola marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | `HCLOUD_LOAD_BALANCERS_PRIVATE_SUBNET_IP_RANGE` | `string` | `-` | Configures the default IP range in CIDR block notation of the subnet to attach to. | | ||
| | `HCLOUD_LOAD_BALANCERS_TYPE` | `string` | `lb11` | Configures the default Load Balancer type this Load Balancer should be created with. | | ||
| | `HCLOUD_LOAD_BALANCERS_USES_PROXYPROTOCOL` | `bool` | `false` | Enables the proxyprotocol for a Load Balancer service by default. | | ||
| | `HCLOUD_LOAD_BALANCERS_USE_PRIVATE_IP` | `bool` | `false` | Configures the Load Balancer to use the private IP for Load Balancer server targets by default. | | ||
This file contains hidden or 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 hidden or 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,95 @@ | ||
| package config | ||
|
|
||
| const ( | ||
| // hcloudLoadBalancersEnabled controls whether the load balancer controller of HCCM should run. | ||
| // | ||
| // Type: bool | ||
| // Default: true | ||
| hcloudLoadBalancersEnabled = "HCLOUD_LOAD_BALANCERS_ENABLED" | ||
|
|
||
| // hcloudLoadBalancersLocation specifies the default location where the Load Balancer will be | ||
| // created in. | ||
| // | ||
| // Mutually exclusive with hcloudLoadBalancersNetworkZone. | ||
| // | ||
| // Type: string | ||
| hcloudLoadBalancersLocation = "HCLOUD_LOAD_BALANCERS_LOCATION" | ||
|
|
||
| // hcloudLoadBalancersNetworkZone specifies the default network zone where the Load Balancer will be | ||
| // created in. | ||
| // | ||
| // Mutually exclusive with hcloudLoadBalancersLocation. | ||
jooola marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| // | ||
| // Type: string | ||
| hcloudLoadBalancersNetworkZone = "HCLOUD_LOAD_BALANCERS_NETWORK_ZONE" | ||
|
|
||
| // hcloudLoadBalancersDisablePrivateIngress disables the use of the private network for ingress by default. | ||
| // | ||
| // Type: bool | ||
| // Default: false | ||
| hcloudLoadBalancersDisablePrivateIngress = "HCLOUD_LOAD_BALANCERS_DISABLE_PRIVATE_INGRESS" | ||
|
|
||
| // hcloudLoadBalancersUsePrivateIP configures the Load Balancer to use the private IP for | ||
| // Load Balancer server targets by default. | ||
| // | ||
| // Type: bool | ||
| // Default: false | ||
| hcloudLoadBalancersUsePrivateIP = "HCLOUD_LOAD_BALANCERS_USE_PRIVATE_IP" | ||
|
|
||
| // hcloudLoadBalancersDisableIPv6 disables the use of IPv6 for the Load Balancer by default. | ||
| // | ||
| // Type: bool | ||
| // Default: false | ||
| hcloudLoadBalancersDisableIPv6 = "HCLOUD_LOAD_BALANCERS_DISABLE_IPV6" | ||
|
|
||
| // hcloudLoadBalancersAlgorithmType configures the default Load Balancer algorithm. | ||
| // | ||
| // Type: round_robin | least_connections | ||
| // Default: round_robin | ||
| hcloudLoadBalancersAlgorithmType = "HCLOUD_LOAD_BALANCERS_ALGORITHM_TYPE" | ||
|
|
||
| // hcloudLoadBalancersDisablePublicNetwork disables the public interface of the Load Balancer by default. | ||
| // | ||
| // Type: bool | ||
| // Default: false | ||
| hcloudLoadBalancersDisablePublicNetwork = "HCLOUD_LOAD_BALANCERS_DISABLE_PUBLIC_NETWORK" | ||
|
|
||
| // hcloudLoadBalancersHealthCheckInterval configures the default time interval in seconds | ||
| // in which health checks are performed. | ||
| // | ||
| // Type: int | ||
| // Default: 10 | ||
| hcloudLoadBalancersHealthCheckInterval = "HCLOUD_LOAD_BALANCERS_HEALTH_CHECK_INTERVAL" | ||
|
|
||
| // hcloudLoadBalancersHealthCheckRetries configures the default amount of unsuccessful retries | ||
| // needed until a target is considered unhealthy. | ||
| // | ||
| // Type: int | ||
| // Default: 3 | ||
| hcloudLoadBalancersHealthCheckRetries = "HCLOUD_LOAD_BALANCERS_HEALTH_CHECK_RETRIES" | ||
|
|
||
| // hcloudLoadBalancersHealthCheckTimeout configures the default time in seconds after an attempt is | ||
| // considered a timeout. | ||
| // | ||
| // Type: int | ||
| // Default: 15 | ||
| hcloudLoadBalancersHealthCheckTimeout = "HCLOUD_LOAD_BALANCERS_HEALTH_CHECK_TIMEOUT" | ||
|
|
||
| // hcloudLoadBalancersPrivateSubnetIPRange configures the default IP range in CIDR block notation of | ||
| // the subnet to attach to. | ||
| // | ||
| // Type: string | ||
| hcloudLoadBalancersPrivateSubnetIPRange = "HCLOUD_LOAD_BALANCERS_PRIVATE_SUBNET_IP_RANGE" | ||
|
|
||
| // hcloudLoadBalancersType configures the default Load Balancer type this Load Balancer should be created with. | ||
| // | ||
| // Type: string | ||
| // Default: lb11 | ||
| hcloudLoadBalancersType = "HCLOUD_LOAD_BALANCERS_TYPE" | ||
|
|
||
| // hcloudLoadBalancersUsesProxyProtocol enables the proxyprotocol for a Load Balancer service by default. | ||
| // | ||
| // Type: bool | ||
| // Default: false | ||
| hcloudLoadBalancersUsesProxyProtocol = "HCLOUD_LOAD_BALANCERS_USES_PROXYPROTOCOL" | ||
| ) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.