Skip to content

Commit

Permalink
update ports for traefik
Browse files Browse the repository at this point in the history
  • Loading branch information
star3am committed Aug 15, 2024
1 parent c1c35c3 commit 83b140c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ Vagrant::configure("2") do |config|
config.vm.network "forwarded_port", guest: 4646, host: 4646 # nomad
config.vm.network "forwarded_port", guest: 4647, host: 4647 # nomad
config.vm.network "forwarded_port", guest: 4648, host: 4648 # nomad
config.vm.network "forwarded_port", guest: 8080, host: 8080 # nomad-traefik
config.vm.network "forwarded_port", guest: 8081, host: 8081 # nomad-traefik-admin
config.vm.network "forwarded_port", guest: 38080, host: 38080 # nomad-traefik
config.vm.network "forwarded_port", guest: 38081, host: 38081 # nomad-traefik-admin
config.vm.network "forwarded_port", guest: 19702, host: 19702 # waypoint-kubernetes-minikube
config.vm.network "forwarded_port", guest: 19701, host: 19701 # waypoint-api-kubernetes-minikube
config.vm.network "forwarded_port", guest: 9702, host: 9702 # waypoint-nomad
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ services:
- "4646:4646" # nomad
- "4647:4647" # nomad
- "4648:4648" # nomad
- "8080:8080" # nomad-traefik
- "8081:8081" # nomad-traefik-admin
- "38080:38080" # nomad-traefik
- "38081:38081" # nomad-traefik-admin
- "19702:19702" # waypoint-kubernetes-minikube
- "19701:19701" # waypoint-api-kubernetes-minikube
- "9702:9702" # waypoint-nomad
Expand Down
4 changes: 2 additions & 2 deletions nomad/nomad.sh
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,6 @@ echo -e '\e[38;5;198m'"++++ Nomad Documentation http://localhost:3333/#/nomad/RE
echo -e '\e[38;5;198m'"++++ Fabio Dashboard http://localhost:9998"
echo -e '\e[38;5;198m'"++++ Fabio Loadbalancer http://localhost:9998"
echo -e '\e[38;5;198m'"++++ Fabio Documentation http://localhost:3333/#/nomad/README?id=fabio-load-balancer-for-nomad"
echo -e '\e[38;5;198m'"++++ Treafik Dashboard http://localhost:8081"
echo -e '\e[38;5;198m'"++++ Traefik Loadbalancer: http://localhost:8080"
echo -e '\e[38;5;198m'"++++ Treafik Dashboard http://localhost:38081"
echo -e '\e[38;5;198m'"++++ Traefik Loadbalancer: http://localhost:38080"
echo -e '\e[38;5;198m'"++++ Traefik Documentation: http://localhost:3333/#/nomad/README?id=traefik-load-balancer-for-nomad"
2 changes: 1 addition & 1 deletion nomad/nomad/jobs/traefik-whoami.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ job "traefik-whoami" {

network {
port "http" {
to = 8080
to = 38080
}
}

Expand Down
18 changes: 13 additions & 5 deletions nomad/nomad/jobs/traefik.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,32 @@

job "traefik" {
datacenters = ["dc1"]
type = "service"
type = "system"

group "traefik" {
count = 1

network {
port "http"{
static = 8080
static = 38080
}
port "admin"{
static = 8081
static = 38081
}
}

service {
name = "traefik-http"
name = "traefik"
provider = "nomad"
port = "http"
port = "admin"
tags = ["urlprefix-traefik.service.consul/", "urlprefix-/"]
check {
type = "http"
path = "/dashboard/"
port = "admin"
interval = "10s"
timeout = "2s"
}
}

task "server" {
Expand Down

0 comments on commit 83b140c

Please sign in to comment.