Add namespace attribute on IngressRouteTCP service
This commit is contained in:
parent
cac76a182e
commit
4f52691f71
7 changed files with 162 additions and 1 deletions
|
@ -86,3 +86,48 @@ subsets:
|
|||
ports:
|
||||
- name: web-secure
|
||||
port: 443
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: whoamitcp3
|
||||
namespace: ns3
|
||||
|
||||
spec:
|
||||
ports:
|
||||
- name: myapp3
|
||||
port: 8083
|
||||
selector:
|
||||
app: containous
|
||||
task: whoamitcp3
|
||||
|
||||
---
|
||||
kind: Endpoints
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: whoamitcp3
|
||||
namespace: ns3
|
||||
|
||||
subsets:
|
||||
- addresses:
|
||||
- ip: 10.10.0.7
|
||||
- ip: 10.10.0.8
|
||||
ports:
|
||||
- name: myapp3
|
||||
port: 8083
|
||||
|
||||
---
|
||||
kind: Endpoints
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: whoamitcp3
|
||||
namespace: ns4
|
||||
|
||||
subsets:
|
||||
- addresses:
|
||||
- ip: 10.10.0.9
|
||||
- ip: 10.10.0.10
|
||||
ports:
|
||||
- name: myapp4
|
||||
port: 8084
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRouteTCP
|
||||
metadata:
|
||||
name: test.route
|
||||
namespace: default
|
||||
|
||||
spec:
|
||||
entryPoints:
|
||||
- foo
|
||||
|
||||
routes:
|
||||
- match: HostSNI(`foo.com`)
|
||||
services:
|
||||
# without namespace
|
||||
- name: whoamitcp
|
||||
port: 8000
|
||||
weight: 2
|
||||
# with default namespace
|
||||
- name: whoamitcp2
|
||||
namespace: default
|
||||
port: 8080
|
||||
weight: 3
|
||||
# with custom namespace
|
||||
- name: whoamitcp3
|
||||
namespace: ns3
|
||||
port: 8083
|
||||
weight: 4
|
||||
# with unknown namespace
|
||||
- name: whoamitcp
|
||||
namespace: unknwonns
|
||||
port: 8080
|
Loading…
Add table
Add a link
Reference in a new issue