chore(media-centre): onboard Jellyfin to consul service mesh
All checks were successful
Terraform CI/CD / Terraform Format, Validate, Lint, Scan (pull_request) Successful in 2m31s
Terraform CI/CD / Terraform Plan (pull_request) Successful in 1m46s
Terraform CI/CD / Terraform Apply (pull_request) Has been skipped
Terraform CI/CD / Terraform Format, Validate, Lint, Scan (push) Successful in 2m32s
Terraform CI/CD / Terraform Plan (push) Has been skipped
Terraform CI/CD / Terraform Apply (push) Successful in 1m42s
All checks were successful
Terraform CI/CD / Terraform Format, Validate, Lint, Scan (pull_request) Successful in 2m31s
Terraform CI/CD / Terraform Plan (pull_request) Successful in 1m46s
Terraform CI/CD / Terraform Apply (pull_request) Has been skipped
Terraform CI/CD / Terraform Format, Validate, Lint, Scan (push) Successful in 2m32s
Terraform CI/CD / Terraform Plan (push) Has been skipped
Terraform CI/CD / Terraform Apply (push) Successful in 1m42s
This commit is contained in:
parent
3ceea7fae2
commit
8dc8398c0d
1 changed files with 29 additions and 2 deletions
|
@ -128,9 +128,13 @@ job "media-centre" {
|
||||||
group "jellyfin" {
|
group "jellyfin" {
|
||||||
|
|
||||||
network {
|
network {
|
||||||
|
mode = "bridge"
|
||||||
port "jellyfin" {
|
port "jellyfin" {
|
||||||
to = 8096
|
to = 8096
|
||||||
}
|
}
|
||||||
|
port "envoy_metrics" {
|
||||||
|
to = 9102
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ephemeral_disk {
|
ephemeral_disk {
|
||||||
|
@ -140,11 +144,34 @@ job "media-centre" {
|
||||||
|
|
||||||
service {
|
service {
|
||||||
provider = "consul"
|
provider = "consul"
|
||||||
port = "jellyfin"
|
port = "8096"
|
||||||
|
|
||||||
|
meta {
|
||||||
|
envoy_metrics_port = "${NOMAD_HOST_PORT_envoy_metrics}"
|
||||||
|
}
|
||||||
|
|
||||||
|
connect {
|
||||||
|
sidecar_service {
|
||||||
|
proxy {
|
||||||
|
expose {
|
||||||
|
path {
|
||||||
|
path = "/metrics"
|
||||||
|
protocol = "http"
|
||||||
|
local_path_port = 9102
|
||||||
|
listener_port = "envoy_metrics"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
transparent_proxy {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
tags = [
|
tags = [
|
||||||
"traefik.enable=true",
|
"traefik.enable=true",
|
||||||
|
|
||||||
"traefik.http.routers.jellyfin.entrypoints=websecure",
|
"traefik.http.routers.jellyfin.entrypoints=websecure",
|
||||||
"traefik.http.routers.jellyfin.rule=Host(`jellyfin.brmartin.co.uk`)"
|
"traefik.http.routers.jellyfin.rule=Host(`jellyfin.brmartin.co.uk`)",
|
||||||
|
"traefik.consulcatalog.connect=true",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue