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"
name = "headscale-ui"
port {
container_port = 80
container_port = 8081
}
env {
name = "HTTP_PORT"
value = "80"
value = "8081"
}
env {
name = "HTTPS_PORT"
value = "8082"
}
}
}
@ -143,9 +147,10 @@ resource "kubernetes_service" "headscale" {
protocol = "TCP"
}
port {
name = "headscale-ui"
port = "80"
protocol = "TCP"
name = "headscale-ui"
port = "80"
target_port = 8081
protocol = "TCP"
}
port {
name = "metrics"

Binary file not shown.