2020-02-26 11:28:05 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: whoamiudp
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: myapp
|
|
|
|
port: 8000
|
|
|
|
selector:
|
2020-09-16 13:46:04 +00:00
|
|
|
app: traefiklabs
|
2020-02-26 11:28:05 +00:00
|
|
|
task: whoamiudp
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: Endpoints
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: whoamiudp
|
|
|
|
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: whoamiudp2
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: myapp2
|
|
|
|
port: 8080
|
|
|
|
selector:
|
2020-09-16 13:46:04 +00:00
|
|
|
app: traefiklabs
|
2020-02-26 11:28:05 +00:00
|
|
|
task: whoamiudp2
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: Endpoints
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: whoamiudp2
|
|
|
|
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: whoamiudp3
|
|
|
|
namespace: ns3
|
|
|
|
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: myapp3
|
|
|
|
port: 8083
|
|
|
|
selector:
|
2020-09-16 13:46:04 +00:00
|
|
|
app: traefiklabs
|
2020-02-26 11:28:05 +00:00
|
|
|
task: whoamiudp3
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: Endpoints
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: whoamiudp3
|
|
|
|
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: whoamiudp3
|
|
|
|
namespace: ns4
|
|
|
|
|
|
|
|
subsets:
|
|
|
|
- addresses:
|
|
|
|
- ip: 10.10.0.9
|
|
|
|
- ip: 10.10.0.10
|
|
|
|
ports:
|
|
|
|
- name: myapp4
|
|
|
|
port: 8084
|
2020-12-04 19:56:04 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: whoamiudp-ipv6
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: myapp-ipv6
|
|
|
|
port: 8080
|
|
|
|
selector:
|
|
|
|
app: traefiklabs
|
|
|
|
task: whoamiudp-ipv6
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: Endpoints
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: whoamiudp-ipv6
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
subsets:
|
|
|
|
- addresses:
|
|
|
|
- ip: "fd00:10:244:0:1::3"
|
|
|
|
ports:
|
|
|
|
- name: myapp-ipv6
|
|
|
|
port: 8080
|
2020-12-10 13:58:04 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: whoamiudp-cross-ns
|
|
|
|
namespace: cross-ns
|
|
|
|
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: myapp
|
|
|
|
port: 8000
|
|
|
|
selector:
|
|
|
|
app: traefiklabs
|
|
|
|
task: whoamiudp
|
|
|
|
|
2021-01-19 08:30:05 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
2024-01-29 16:32:05 +00:00
|
|
|
name: external-svc-udp
|
2021-01-19 08:30:05 +00:00
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
externalName: external.domain
|
|
|
|
type: ExternalName
|
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
2024-01-29 16:32:05 +00:00
|
|
|
name: external.service.with.port.udp
|
2021-01-19 08:30:05 +00:00
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
externalName: external.domain
|
|
|
|
type: ExternalName
|
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
protocol: TCP
|
|
|
|
port: 80
|
|
|
|
|
2020-12-10 13:58:04 +00:00
|
|
|
---
|
|
|
|
kind: Endpoints
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: whoamiudp-cross-ns
|
|
|
|
namespace: cross-ns
|
|
|
|
|
|
|
|
subsets:
|
|
|
|
- addresses:
|
|
|
|
- ip: 10.10.0.1
|
|
|
|
- ip: 10.10.0.2
|
|
|
|
ports:
|
|
|
|
- name: myapp
|
|
|
|
port: 8000
|
2022-03-07 10:08:07 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: whoamiudp-without-endpoints-subsets
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: myapp
|
|
|
|
port: 8000
|
|
|
|
|
|
|
|
selector:
|
|
|
|
app: traefiklabs
|
|
|
|
task: whoamiudp
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: Endpoints
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: whoamiudp-without-endpoints-subsets
|
|
|
|
namespace: default
|
2023-03-20 15:46:05 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
2024-01-29 16:32:05 +00:00
|
|
|
name: native-svc-udp
|
2023-03-20 15:46:05 +00:00
|
|
|
namespace: default
|
|
|
|
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: myapp
|
|
|
|
port: 8000
|
|
|
|
type: ClusterIP
|
|
|
|
clusterIP: 10.10.0.1
|
2024-02-27 09:54:04 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: nodeport-svc-udp
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: myapp
|
|
|
|
port: 8000
|
|
|
|
nodePort: 32456
|
|
|
|
type: NodePort
|
|
|
|
clusterIP: 10.10.0.1
|