feat(kubernetes): Traefik load balancer

This commit is contained in:
German Ramos Garcia
2016-09-07 16:46:05 +02:00
parent 31b91bc31a
commit 67a7e28c12
5 changed files with 461 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
# Traefik load balancer
### Info:
This template deploys traefik active load balancer on top of Rancher. It would be deployed in hosts with label **traefik_lb=true**.
### Config:
- Replicas: Number of pods to deploy. It should be the same of hosts whith traefik_lb=true
- Kubernetes Namespace = Kubernetes namespace to deploy de repservers lication controller
- Http port = 80 # Port exposed to get access to the published services.
- Https port = 443 # Port exposed to get access to the published services.
- Admin port = 8000 # Port exposed to get admin access to the traefik service.
### Service configuration:
You have to create Ingress objects in order to get included in traefik dynamic config. Example:
```
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: foo
namespace: default
spec:
rules:
- host: foo.bar.com
http:
paths:
- backend:
serviceName: foo
servicePort: 8080
```
### Usage:
- Select Traefik from catalog.
- Review configuration options.
- Click deploy.
- Services with Ingress will be accessed throught hosts whith traefik_lb=true