chore(keycloak): onboard to traefiks connect-enabled provider
This commit is contained in:
parent
62f75ec67c
commit
e80b0fe623
1 changed files with 8 additions and 35 deletions
|
@ -38,6 +38,14 @@ job "keycloak" {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
|
||||
"traefik.http.routers.keycloak.rule=Host(`sso.brmartin.co.uk`)",
|
||||
"traefik.http.routers.keycloak.entrypoints=websecure",
|
||||
"traefik.consulcatalog.connect=true",
|
||||
]
|
||||
}
|
||||
|
||||
task "keycloak" {
|
||||
|
@ -85,39 +93,4 @@ job "keycloak" {
|
|||
"service.name" = "keycloak"
|
||||
}
|
||||
}
|
||||
|
||||
group "keycloak-ingress-group" {
|
||||
|
||||
network {
|
||||
mode = "bridge"
|
||||
port "inbound" {
|
||||
to = 8080
|
||||
}
|
||||
}
|
||||
|
||||
service {
|
||||
port = "inbound"
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
|
||||
"traefik.http.routers.keycloak.rule=Host(`sso.brmartin.co.uk`)",
|
||||
"traefik.http.routers.keycloak.entrypoints=websecure",
|
||||
]
|
||||
|
||||
connect {
|
||||
gateway {
|
||||
ingress {
|
||||
listener {
|
||||
port = 8080
|
||||
protocol = "http"
|
||||
service {
|
||||
name = "keycloak-keycloak"
|
||||
hosts = ["*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue