overview.md (traefik-v2.3.2.src) | : | overview.md (traefik-v2.3.3.src) | ||
---|---|---|---|---|
skipping to change at line 49 | skipping to change at line 49 | |||
!!! important "Kubernetes Namespace" | !!! important "Kubernetes Namespace" | |||
As Kubernetes also has its own notion of namespace, | As Kubernetes also has its own notion of namespace, | |||
one should not confuse the "provider namespace" with the "kubernetes namespa ce" of a resource when in the context of a cross-provider usage. | one should not confuse the "provider namespace" with the "kubernetes namespa ce" of a resource when in the context of a cross-provider usage. | |||
In this case, since the definition of a traefik dynamic configuration object is not in kubernetes, | In this case, since the definition of a traefik dynamic configuration object is not in kubernetes, | |||
specifying a "kubernetes namespace" when referring to the resource does not make any sense, | specifying a "kubernetes namespace" when referring to the resource does not make any sense, | |||
and therefore this specification would be ignored even if present. | and therefore this specification would be ignored even if present. | |||
On the other hand, if you, say, declare a middleware as a Custom Resource in Kubernetes and use the non-crd Ingress objects, | On the other hand, if you, say, declare a middleware as a Custom Resource in Kubernetes and use the non-crd Ingress objects, | |||
you'll have to add the Kubernetes namespace of the middleware to the annotat ion like this `<middleware-namespace>-<middleware-name>@kubernetescrd`. | you'll have to add the Kubernetes namespace of the middleware to the annotat ion like this `<middleware-namespace>-<middleware-name>@kubernetescrd`. | |||
!!! abstract "Referencing a Traedik dynamic configuration object from Another Pr ovider" | !!! abstract "Referencing a Traefik dynamic configuration object from Another Pr ovider" | |||
Declaring the add-foo-prefix in the file provider. | Declaring the add-foo-prefix in the file provider. | |||
```toml tab="File (TOML)" | ```toml tab="File (TOML)" | |||
[http.middlewares] | [http.middlewares] | |||
[http.middlewares.add-foo-prefix.addPrefix] | [http.middlewares.add-foo-prefix.addPrefix] | |||
prefix = "/foo" | prefix = "/foo" | |||
``` | ``` | |||
```yaml tab="File (YAML)" | ```yaml tab="File (YAML)" | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |