Add weighted round robin load balancer on TCP
Co-authored-by: Mathieu Lonjaret <mathieu.lonjaret@gmail.com>
This commit is contained in:
parent
8e18d37b3d
commit
685c6dc00c
33 changed files with 787 additions and 239 deletions
|
@ -0,0 +1,16 @@
|
|||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRouteTCP
|
||||
metadata:
|
||||
name: test.route
|
||||
namespace: default
|
||||
|
||||
spec:
|
||||
entryPoints:
|
||||
- foo
|
||||
|
||||
routes:
|
||||
- match: HostSNI(`foo.com`)
|
||||
services:
|
||||
- name: whoamitcp
|
||||
port: 8000
|
||||
terminationDelay: 500
|
|
@ -13,6 +13,7 @@ spec:
|
|||
services:
|
||||
- name: whoamitcp
|
||||
port: 8000
|
||||
weight: 2
|
||||
- name: whoamitcp2
|
||||
port: 8080
|
||||
|
||||
weight: 3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue