Skip to content
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

DBP-288-adapt-loadbalancer-to-schulportal #12

Merged
merged 4 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion modules/ionos-application-loadbalancer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
| <a name="input_node_alb_lan_ips"></a> [node\_alb\_lan\_ips](#input\_node\_alb\_lan\_ips) | List of node and application load balancer lan ips | `list` | n/a | yes |
| <a name="input_ssl_cert_ids"></a> [ssl\_cert\_ids](#input\_ssl\_cert\_ids) | Array of certificate ids. You can create certificates with the certificate resource | `list` | n/a | yes |
| <a name="input_top_level_domain"></a> [top\_level\_domain](#input\_top\_level\_domain) | Top-level domain mapping for environments | `map(any)` | n/a | yes |
| <a name="input_alb_client_timeout"></a> [alb\_client\_timeout](#input\_alb\_client\_timeout) | The maximum time in milliseconds to wait for the client to acknowledge or send data; default is 50,000 (50 seconds) | `number` | `60000` | no |
| <a name="input_alb_client_timeout"></a> [alb\_client\_timeout](#input\_alb\_client\_timeout) | The maximum time in milliseconds to wait for the client to acknowledge or send data | `number` | `6000` | no |
| <a name="input_alb_listener_port"></a> [alb\_listener\_port](#input\_alb\_listener\_port) | Listening (inbound) port number; valid range is 1 to 65535 | `number` | `443` | no |
| <a name="input_alb_target_health_check_timeout"></a> [alb\_target\_health\_check\_timeout](#input\_alb\_target\_health\_check\_timeout) | The maximum time in milliseconds to wait for the client to acknowledge or send data | `string` | `6000` | no |
| <a name="input_alb_target_http_health_check_path"></a> [alb\_target\_http\_health\_check\_path](#input\_alb\_target\_http\_health\_check\_path) | The path (destination URL) for the HTTP health check request | `string` | `"/healthz"` | no |
| <a name="input_alb_target_port"></a> [alb\_target\_port](#input\_alb\_target\_port) | The port of the balanced target service; valid range is 1 to 65535 used in target group | `string` | `30080` | no |
## Outputs

Expand Down
8 changes: 4 additions & 4 deletions modules/ionos-application-loadbalancer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ resource "ionoscloud_target_group" "k8s_node_pools" {
}
}
health_check {
check_timeout = 5000
check_interval = 50000
check_timeout = var.alb_target_health_check_timeout
check_interval = var.alb_target_health_check_timeout
retries = 2
}
http_health_check {
path = "/"
method = "GET"
path = var.alb_target_http_health_check_path
method = "HEAD"
match_type = "STATUS_CODE"
response = "200"
}
Expand Down
16 changes: 14 additions & 2 deletions modules/ionos-application-loadbalancer/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ variable "ssl_cert_ids" {

variable "alb_client_timeout" {
type = number
description = "The maximum time in milliseconds to wait for the client to acknowledge or send data; default is 50,000 (50 seconds)"
default = 60000
description = "The maximum time in milliseconds to wait for the client to acknowledge or send data"
default = 6000
}

variable "alb_listener_port" {
Expand All @@ -58,4 +58,16 @@ variable "alb_target_port" {
type = string
description = "The port of the balanced target service; valid range is 1 to 65535 used in target group"
default = 30080
}

variable "alb_target_health_check_timeout" {
type = string
description = "The maximum time in milliseconds to wait for the client to acknowledge or send data"
default = 6000
}

variable "alb_target_http_health_check_path" {
type = string
description = "The path (destination URL) for the HTTP health check request"
default = "/healthz"
}