Skip to content

Commit

Permalink
Set Container Port to 8080 (#654)
Browse files Browse the repository at this point in the history
* This will allow us to run the new Azure Linux image
  • Loading branch information
DrizzlyOwl authored Dec 9, 2024
1 parent 554087e commit f1762c9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ No resources.
| <a name="input_container_command"></a> [container\_command](#input\_container\_command) | Container command | `list(any)` | n/a | yes |
| <a name="input_container_health_probe_path"></a> [container\_health\_probe\_path](#input\_container\_health\_probe\_path) | Specifies the path that is used to determine the liveness of the Container | `string` | n/a | yes |
| <a name="input_container_min_replicas"></a> [container\_min\_replicas](#input\_container\_min\_replicas) | Container min replicas | `number` | `1` | no |
| <a name="input_container_port"></a> [container\_port](#input\_container\_port) | Container port | `number` | `8080` | no |
| <a name="input_container_scale_http_concurrency"></a> [container\_scale\_http\_concurrency](#input\_container\_scale\_http\_concurrency) | When the number of concurrent HTTP requests exceeds this value, then another replica is added. Replicas continue to add to the pool up to the max-replicas amount. | `number` | `10` | no |
| <a name="input_container_secret_environment_variables"></a> [container\_secret\_environment\_variables](#input\_container\_secret\_environment\_variables) | Container secret environment variables | `map(string)` | n/a | yes |
| <a name="input_custom_container_apps"></a> [custom\_container\_apps](#input\_custom\_container\_apps) | Custom container apps, by default deployed within the container app environment managed by this module. | <pre>map(object({<br/> container_app_environment_id = optional(string, "")<br/> resource_group_name = optional(string, "")<br/> revision_mode = optional(string, "Single")<br/> container_port = optional(number, 0)<br/> ingress = optional(object({<br/> external_enabled = optional(bool, true)<br/> target_port = optional(number, null)<br/> traffic_weight = object({<br/> percentage = optional(number, 100)<br/> })<br/> cdn_frontdoor_custom_domain = optional(string, "")<br/> cdn_frontdoor_origin_fqdn_override = optional(string, "")<br/> cdn_frontdoor_origin_host_header_override = optional(string, "")<br/> enable_cdn_frontdoor_health_probe = optional(bool, false)<br/> cdn_frontdoor_health_probe_protocol = optional(string, "")<br/> cdn_frontdoor_health_probe_interval = optional(number, 120)<br/> cdn_frontdoor_health_probe_request_type = optional(string, "")<br/> cdn_frontdoor_health_probe_path = optional(string, "")<br/> cdn_frontdoor_forwarding_protocol_override = optional(string, "")<br/> }), null)<br/> identity = optional(list(object({<br/> type = string<br/> identity_ids = list(string)<br/> })), [])<br/> secrets = optional(list(object({<br/> name = string<br/> value = string<br/> })), [])<br/> registry = optional(object({<br/> server = optional(string, "")<br/> username = optional(string, "")<br/> password_secret_name = optional(string, "")<br/> identity = optional(string, "")<br/> }), null),<br/> image = string<br/> cpu = number<br/> memory = number<br/> command = list(string)<br/> liveness_probes = optional(list(object({<br/> interval_seconds = number<br/> transport = string<br/> port = number<br/> path = optional(string, null)<br/> })), [])<br/> env = optional(list(object({<br/> name = string<br/> value = optional(string, null)<br/> secretRef = optional(string, null)<br/> })), [])<br/> min_replicas = number<br/> max_replicas = number<br/> }))</pre> | `{}` | no |
Expand Down
1 change: 1 addition & 0 deletions terraform/container-apps-hosting.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module "azure_container_apps_hosting" {
container_scale_http_concurrency = local.container_scale_http_concurrency
container_apps_allow_ips_inbound = local.container_apps_allow_ips_inbound
container_min_replicas = local.container_min_replicas
container_port = local.container_port
enable_health_insights_api = local.enable_health_insights_api
health_insights_api_cors_origins = local.health_insights_api_cors_origins
health_insights_api_ipv4_allow_list = local.health_insights_api_ipv4_allow_list
Expand Down
1 change: 1 addition & 0 deletions terraform/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ locals {
container_secret_environment_variables = var.container_secret_environment_variables
container_scale_http_concurrency = var.container_scale_http_concurrency
container_min_replicas = var.container_min_replicas
container_port = var.container_port
enable_cdn_frontdoor = var.enable_cdn_frontdoor
enable_event_hub = var.enable_event_hub
enable_logstash_consumer = var.enable_logstash_consumer
Expand Down
6 changes: 6 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -418,3 +418,9 @@ variable "cdn_frontdoor_vdp_destination_hostname" {
type = string
default = "vdp.security.education.gov.uk"
}

variable "container_port" {
description = "Container port"
type = number
default = 8080
}

0 comments on commit f1762c9

Please sign in to comment.