Skip to content

Commit

Permalink
Aligning service_port for capabilities to port 80
Browse files Browse the repository at this point in the history
  • Loading branch information
BSick7 committed Mar 20, 2024
1 parent 5281079 commit 8f4cb36
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.6.5 (Mar 20, 2024)
* Aligning `service_port` for capabilities to port 80.

# 0.6.4 (Mar 20, 2024)
* Configured `ClusterIP` service to forward port 80 to `var.port` so that `http://<service>` resolves.

Expand Down
2 changes: 1 addition & 1 deletion app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ locals {
service_account_id = google_service_account.app.id
service_account_email = google_service_account.app.email
service_name = kubernetes_service_v1.this.metadata[0].name
service_port = var.port
service_port = local.service_port
})
}
2 changes: 1 addition & 1 deletion service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ resource "kubernetes_service_v1" "this" {
selector = local.match_labels

port {
port = 80
port = local.service_port
target_port = var.port
}
}
Expand Down
4 changes: 4 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ Specify 0 to disable network connectivity to this container.
EOF
}

locals {
service_port = 80
}

variable "readiness_delay" {
type = number
default = 0
Expand Down

0 comments on commit 8f4cb36

Please sign in to comment.