mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-30 09:45:13 +01:00
docs(traefik): support blocking strategy (#338)
The blocking for traefik is already supported.
This commit is contained in:
@@ -8,7 +8,7 @@ The [Traefik Sablier Plugin](https://plugins.traefik.io/plugins/633b4658a4caa9dd
|
||||
| --------------------------------------- | :-----: | :-----------------------------------------------------: |
|
||||
| [Docker](/providers/docker) | ✅ | ✅ |
|
||||
| [Docker Swarm](/providers/docker_swarm) | ✅ | ✅ |
|
||||
| [Kubernetes](/providers/kubernetes) | ✅ | ❌ [#62](https://github.com/acouvreur/sablier/issues/62) |
|
||||
| [Kubernetes](/providers/kubernetes) | ✅ | ✅ |
|
||||
|
||||
## Prerequisites
|
||||
|
||||
@@ -75,15 +75,13 @@ services:
|
||||
|
||||
Traefik also have [allowEmptyServices](https://doc.traefik.io/traefik/providers/docker/#allowemptyservices) option which can be used instead.
|
||||
|
||||
But the blocking strategy won't work for the same reasons described in [#62](https://github.com/acouvreur/sablier/issues/62).
|
||||
|
||||
#### **Kubernetes**
|
||||
|
||||
**Traefik will evict deployments from its pool if they have 0 endpoints available.**
|
||||
|
||||
You must use [`allowEmptyServices`](https://doc.traefik.io/traefik/providers/kubernetes-ingress/#allowemptyservices)
|
||||
|
||||
The blocking strategy is not supported because everytime the underlying configuration changes, the whole router is regenrated, thus changing the router during a request will still map to the old router. For more details, see [#62](https://github.com/acouvreur/sablier/issues/62).
|
||||
The blocking strategy is supported by issuing redirect which force client to retry request. It might fail if client do not support redirections (e.g. `curl` without `-L`). The limitation is caused by Traefik architecture. Everytime the underlying configuration changes, the whole router is regenrated, thus changing the router during a request will still map to the old router. For more details, see [#62](https://github.com/acouvreur/sablier/issues/62).
|
||||
|
||||
<!-- tabs:end -->
|
||||
|
||||
@@ -157,4 +155,4 @@ spec:
|
||||
|
||||
## Configuration reference
|
||||
|
||||
TODO
|
||||
TODO
|
||||
|
||||
Reference in New Issue
Block a user