traefik/pkg/provider/kubernetes/crd/fixtures/tcp/services.yml
2020-02-10 16:47:13 +01:00

133 lines
1.7 KiB
YAML

apiVersion: v1
kind: Service
metadata:
name: whoamitcp
namespace: default
spec:
ports:
- name: myapp
port: 8000
selector:
app: containous
task: whoamitcp
---
kind: Endpoints
apiVersion: v1
metadata:
name: whoamitcp
namespace: default
subsets:
- addresses:
- ip: 10.10.0.1
- ip: 10.10.0.2
ports:
- name: myapp
port: 8000
---
apiVersion: v1
kind: Service
metadata:
name: whoamitcp2
namespace: default
spec:
ports:
- name: myapp2
port: 8080
selector:
app: containous
task: whoamitcp2
---
kind: Endpoints
apiVersion: v1
metadata:
name: whoamitcp2
namespace: default
subsets:
- addresses:
- ip: 10.10.0.3
- ip: 10.10.0.4
ports:
- name: myapp2
port: 8080
---
apiVersion: v1
kind: Service
metadata:
name: whoamitcptls
namespace: default
spec:
ports:
- name: websecure
port: 443
selector:
app: containous
task: whoamitcptls2
---
kind: Endpoints
apiVersion: v1
metadata:
name: whoamitcptls
namespace: default
subsets:
- addresses:
- ip: 10.10.0.5
- ip: 10.10.0.6
ports:
- name: websecure
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