Updated traefik package to v1.5.4
This commit is contained in:
@@ -88,7 +88,7 @@ Use this labels if you choose extenal rancher integration.
|
||||
|
||||
WARNING: Only services with healthy state are added to traefik, so health checks are mandatory.
|
||||
|
||||
More info [rancher-traefik](https://github.com/rawmind0/rancher-traefik)
|
||||
More info [rancher-traefik][rancher-traefik]
|
||||
|
||||
### Usage:
|
||||
|
||||
@@ -107,20 +107,25 @@ Note: To access the services, you need to create A or CNAMES dns entries for eve
|
||||
#### Setup Traefik for a custom domain
|
||||
|
||||
You must set these labels for the service your want to expose:
|
||||
- traefik.enable = true
|
||||
- traefik.port = 8080
|
||||
- traefik.acme = true
|
||||
- traefik.frontend.rule = Host:MyCustoDomain.com
|
||||
|
||||
- traefik.enable = true
|
||||
- traefik.frontend.rule = Host:MyCustoDomain.com (`api` or `metadata` rancher integration)
|
||||
- traefik.domain = MyCustoDomain.com (`external` rancher integration)
|
||||
|
||||
### F.A.Q
|
||||
|
||||
#### Q: Traefik doesn't apply labels
|
||||
|
||||
Depending on traefik rancher integration, available labels are differents.
|
||||
- [api and metadata][traefik rancher backend]
|
||||
- [external][rancher-traefik]
|
||||
|
||||
#### Q: Traefik doesn't expose my service
|
||||
|
||||
Depending of de Traefik configuration we can diffenciate two cases:
|
||||
Depending on Traefik configuration we can diffenciate two cases:
|
||||
- If you configured Traefik with label *rancher_healthcheck=true* -> ensure your service has a healthcheck
|
||||
- If you configured Traefik without healthcheck, then check the Traefik log. Some times Traefik fails when try to load an invalid config and, before that, doesn't load new services -> restart Traefik should fix that
|
||||
|
||||
### References
|
||||
|
||||
[traefik rancher backend]: https://docs.traefik.io/configuration/backends/rancher/#labels-overriding-default-behaviour
|
||||
[rancher-traefik]: https://github.com/rawmind0/rancher-traefik
|
||||
|
||||
Reference in New Issue
Block a user