mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-01-27 18:18:41 +00:00
66 lines
1.8 KiB
YAML
66 lines
1.8 KiB
YAML
##
|
|
## @section Common parameters
|
|
##
|
|
|
|
## @typedef {struct} Resources - Explicit CPU and memory configuration for each TCP Balancer replica.
|
|
## @field {quantity} [cpu] - CPU available to each replica.
|
|
## @field {quantity} [memory] - Memory (RAM) available to each replica.
|
|
|
|
## @enum {string} ResourcesPreset - Default sizing preset.
|
|
## @value nano
|
|
## @value micro
|
|
## @value small
|
|
## @value medium
|
|
## @value large
|
|
## @value xlarge
|
|
## @value 2xlarge
|
|
|
|
## @param {int} replicas - Number of HAProxy replicas.
|
|
replicas: 2
|
|
|
|
## @param {Resources} [resources] - Explicit CPU and memory configuration for each TCP Balancer replica. When omitted, the preset defined in `resourcesPreset` is applied.
|
|
resources: {}
|
|
|
|
## @param {ResourcesPreset} resourcesPreset="nano" - Default sizing preset used when `resources` is omitted.
|
|
resourcesPreset: "nano"
|
|
|
|
## @param {bool} external - Enable external access from outside the cluster.
|
|
external: false
|
|
|
|
##
|
|
## @section Application-specific parameters
|
|
##
|
|
|
|
## @enum {string} Mode - Mode for balancer.
|
|
## @value tcp
|
|
## @value tcp-with-proxy
|
|
|
|
## @typedef {struct} TargetPorts - Target ports configuration.
|
|
## @field {int} http - HTTP port number.
|
|
## @field {int} https - HTTPS port number.
|
|
|
|
## @typedef {struct} HttpAndHttps - HTTP and HTTPS configuration.
|
|
## @field {Mode} mode - Mode for balancer.
|
|
## @field {TargetPorts} targetPorts - Target ports configuration.
|
|
## @field {[]string} endpoints - Endpoint addresses list.
|
|
|
|
## @param {HttpAndHttps} httpAndHttps - HTTP and HTTPS configuration.
|
|
httpAndHttps:
|
|
mode: tcp
|
|
targetPorts:
|
|
http: 80
|
|
https: 443
|
|
endpoints: []
|
|
|
|
## @param {bool} whitelistHTTP - Secure HTTP by whitelisting client networks (default: false).
|
|
whitelistHTTP: false
|
|
## Example:
|
|
## whitelistHTTP: true
|
|
## whitelist:
|
|
## - "1.2.3.4"
|
|
## - "10.100.0.0/16"
|
|
##
|
|
|
|
## @param {[]string} whitelist - List of allowed client networks.
|
|
whitelist: []
|