2019-06-11 13:12:04 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: whoamitcp
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: myapp
|
|
|
|
port: 8000
|
|
|
|
selector:
|
2020-09-16 13:46:04 +00:00
|
|
|
app: traefiklabs
|
2019-06-11 13:12:04 +00:00
|
|
|
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:
|
2020-09-16 13:46:04 +00:00
|
|
|
app: traefiklabs
|
2019-06-11 13:12:04 +00:00
|
|
|
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:
|
2020-01-23 15:36:08 +00:00
|
|
|
- name: websecure
|
2019-06-11 13:12:04 +00:00
|
|
|
port: 443
|
|
|
|
selector:
|
2020-09-16 13:46:04 +00:00
|
|
|
app: traefiklabs
|
2019-06-11 13:12:04 +00:00
|
|
|
task: whoamitcptls2
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: Endpoints
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: whoamitcptls
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
subsets:
|
|
|
|
- addresses:
|
|
|
|
- ip: 10.10.0.5
|
|
|
|
- ip: 10.10.0.6
|
|
|
|
ports:
|
2020-01-23 15:36:08 +00:00
|
|
|
- name: websecure
|
2019-06-11 13:12:04 +00:00
|
|
|
port: 443
|
2020-01-14 11:14:05 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: whoamitcp3
|
|
|
|
namespace: ns3
|
|
|
|
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: myapp3
|
|
|
|
port: 8083
|
|
|
|
selector:
|
2020-09-16 13:46:04 +00:00
|
|
|
app: traefiklabs
|
2020-01-14 11:14:05 +00:00
|
|
|
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
|
2020-03-10 11:46:05 +00:00
|
|
|
|
2020-12-04 19:56:04 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: whoamitcp-ipv6
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: myapp-ipv6
|
|
|
|
port: 8080
|
|
|
|
selector:
|
|
|
|
app: traefiklabs
|
|
|
|
task: whoamitcp-ipv6
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: Endpoints
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: whoamitcp-ipv6
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
subsets:
|
|
|
|
- addresses:
|
|
|
|
- ip: "fd00:10:244:0:1::3"
|
|
|
|
- ip: "2001:db8:85a3:8d3:1319:8a2e:370:7348"
|
|
|
|
ports:
|
|
|
|
- name: myapp-ipv6
|
|
|
|
port: 8080
|
|
|
|
|
2020-03-10 11:46:05 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: external-svc
|
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
externalName: external.domain
|
|
|
|
type: ExternalName
|
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: external.service.with.port
|
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
externalName: external.domain
|
|
|
|
type: ExternalName
|
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
protocol: TCP
|
|
|
|
port: 80
|
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: external.service.without.port
|
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
externalName: external.domain
|
|
|
|
type: ExternalName
|
|
|
|
ports:
|
|
|
|
- name: http
|
2020-12-04 19:56:04 +00:00
|
|
|
protocol: TCP
|
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: external.service.with.ipv6
|
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
externalName: "fe80::200:5aee:feaa:20a2"
|
|
|
|
type: ExternalName
|
2020-12-10 13:58:04 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: whoamitcp-cross-ns
|
|
|
|
namespace: cross-ns
|
|
|
|
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: myapp
|
|
|
|
port: 8000
|
|
|
|
selector:
|
|
|
|
app: traefiklabs
|
|
|
|
task: whoamitcp
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: Endpoints
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: whoamitcp-cross-ns
|
|
|
|
namespace: cross-ns
|
|
|
|
|
|
|
|
subsets:
|
|
|
|
- addresses:
|
|
|
|
- ip: 10.10.0.1
|
|
|
|
- ip: 10.10.0.2
|
|
|
|
ports:
|
|
|
|
- name: myapp
|
|
|
|
port: 8000
|