Skip to content

Instantly share code, notes, and snippets.

@santiagopoli
Created August 8, 2019 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save santiagopoli/37e79eeb4633e5fbba2136c45b6c2aff to your computer and use it in GitHub Desktop.
Save santiagopoli/37e79eeb4633e5fbba2136c45b6c2aff to your computer and use it in GitHub Desktop.
providers
{
"kubernetes": {
"backends": {
"api.whoami.127.0.0.1.nip.io/{catchall:.*}": {
"servers": {
"whoami-6d75494548-k9gtm": {
"url": "http://10.1.0.11:80",
"weight": 1
}
},
"loadBalancer": {
"method": "wrr"
}
},
"traefik.127.0.0.1.nip.io/": {
"servers": {
"traefik-5cf475df65-2wslq": {
"url": "http://10.1.0.12:8080",
"weight": 1
}
},
"loadBalancer": {
"method": "wrr"
}
}
},
"frontends": {
"api.whoami.127.0.0.1.nip.io/{catchall:.*}": {
"entryPoints": [
"http"
],
"backend": "api.whoami.127.0.0.1.nip.io/{catchall:.*}",
"routes": {
"/{catchall:.*}": {
"rule": "Path:/{catchall:.*}"
},
"api.whoami.127.0.0.1.nip.io": {
"rule": "Host:api.whoami.127.0.0.1.nip.io"
}
},
"passHostHeader": true,
"priority": 0,
"basicAuth": null,
"headers": {
"customResponseHeaders": {
"X-Service-Name": "whoami"
}
}
},
"traefik.127.0.0.1.nip.io/": {
"entryPoints": [
"http"
],
"backend": "traefik.127.0.0.1.nip.io/",
"routes": {
"/": {
"rule": "PathPrefix:/"
},
"traefik.127.0.0.1.nip.io": {
"rule": "Host:traefik.127.0.0.1.nip.io"
}
},
"passHostHeader": true,
"priority": 0,
"basicAuth": null,
"headers": {
"customResponseHeaders": {
"X-Service-Name": "traefik"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment