move the port for the headscale ui as it didn't have perms [ci skip]

This commit is contained in:
Viktor Barzin 2024-03-01 17:28:00 +00:00
parent 38f9a0baa0
commit 5c8fff90d2
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
2 changed files with 10 additions and 5 deletions

View file

@ -103,11 +103,15 @@ resource "kubernetes_deployment" "headscale" {
image = "ghcr.io/gurucomputing/headscale-ui:latest" image = "ghcr.io/gurucomputing/headscale-ui:latest"
name = "headscale-ui" name = "headscale-ui"
port { port {
container_port = 80 container_port = 8081
} }
env { env {
name = "HTTP_PORT" name = "HTTP_PORT"
value = "80" value = "8081"
}
env {
name = "HTTPS_PORT"
value = "8082"
} }
} }
} }
@ -143,9 +147,10 @@ resource "kubernetes_service" "headscale" {
protocol = "TCP" protocol = "TCP"
} }
port { port {
name = "headscale-ui" name = "headscale-ui"
port = "80" port = "80"
protocol = "TCP" target_port = 8081
protocol = "TCP"
} }
port { port {
name = "metrics" name = "metrics"

Binary file not shown.