Files
cozystack/packages/apps/tcp-balancer/values.schema.json
Andrei Kvapil 9022b8bda8 Fix arrays in OpenAPI spec
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2025-07-18 02:54:33 +02:00

82 lines
2.1 KiB
JSON

{
"properties": {
"external": {
"default": false,
"description": "Enable external access from outside the cluster",
"type": "boolean"
},
"httpAndHttps": {
"properties": {
"endpoints": {
"default": [],
"description": "Endpoint addresses list",
"items": {},
"type": "array"
},
"mode": {
"default": "tcp",
"description": "Mode for balancer. Allowed values: `tcp` and `tcp-with-proxy`",
"type": "string",
"enum": [
"tcp",
"tcp-with-proxy"
]
},
"targetPorts": {
"properties": {
"http": {
"default": 80,
"description": "HTTP port number.",
"type": "number"
},
"https": {
"default": 443,
"description": "HTTPS port number.",
"type": "number"
}
},
"type": "object"
}
},
"type": "object"
},
"replicas": {
"default": 2,
"description": "Number of HAProxy replicas",
"type": "number"
},
"resources": {
"default": {},
"description": "Explicit CPU and memory configuration for each TCP Balancer replica. When left empty, the preset defined in `resourcesPreset` is applied.",
"type": "object"
},
"resourcesPreset": {
"default": "nano",
"description": "Default sizing preset used when `resources` is omitted. Allowed values: nano, micro, small, medium, large, xlarge, 2xlarge.",
"type": "string",
"enum": [
"nano",
"micro",
"small",
"medium",
"large",
"xlarge",
"2xlarge"
]
},
"whitelist": {
"default": [],
"description": "List of client networks",
"items": {},
"type": "array"
},
"whitelistHTTP": {
"default": false,
"description": "Secure HTTP by whitelisting client networks",
"type": "boolean"
}
},
"title": "Chart Values",
"type": "object"
}