Adds option to namespace k8s ingresses

If the flag kubernetes.namespaces is set...
Then we only select ingresses from that/those namespace(s)

This allows multiple instances of traefik to
independently load balance for each namespace.
This could be for logical or security reasons.

Addresses #336
This commit is contained in:
Ed Robinson 2016-04-28 01:23:55 +01:00
parent d1b0bece47
commit 301a463aeb
No known key found for this signature in database
GPG key ID: EC501FCA6421CCF0
6 changed files with 449 additions and 3 deletions

View file

@ -648,6 +648,7 @@ Træfɪk can be configured to use Kubernetes Ingress as a backend configuration:
# Optional
#
# endpoint = "http://localhost:8080"
# namespaces = ["default","production"]
```
You can find here an example [ingress](https://raw.githubusercontent.com/containous/traefik/master/examples/k8s.ingress.yaml) and [replication controller](https://raw.githubusercontent.com/containous/traefik/master/examples/k8s.rc.yaml).