traefik/pkg/provider/kubernetes/crd/fixtures/udp/services.yml

274 lines
4 KiB
YAML
Raw Normal View History

apiVersion: v1
kind: Service
metadata:
name: whoamiudp
namespace: default
spec:
ports:
- name: myapp
port: 8000
selector:
app: traefiklabs
task: whoamiudp
---
2024-06-21 12:56:03 +00:00
kind: EndpointSlice
apiVersion: discovery.k8s.io/v1
metadata:
2024-06-21 12:56:03 +00:00
name: whoamiudp-abc
namespace: default
2024-06-21 12:56:03 +00:00
labels:
kubernetes.io/service-name: whoamiudp
2024-06-21 12:56:03 +00:00
addressType: IPv4
ports:
- name: myapp
port: 8000
endpoints:
- addresses:
2024-06-21 12:56:03 +00:00
- 10.10.0.1
- 10.10.0.2
conditions:
ready: true
---
apiVersion: v1
kind: Service
metadata:
name: whoamiudp2
namespace: default
spec:
ports:
- name: myapp2
port: 8080
selector:
app: traefiklabs
task: whoamiudp2
---
2024-06-21 12:56:03 +00:00
kind: EndpointSlice
apiVersion: discovery.k8s.io/v1
metadata:
2024-06-21 12:56:03 +00:00
name: whoamiudp2-abc
namespace: default
2024-06-21 12:56:03 +00:00
labels:
kubernetes.io/service-name: whoamiudp2
2024-06-21 12:56:03 +00:00
addressType: IPv4
ports:
- name: myapp2
port: 8080
endpoints:
- addresses:
2024-06-21 12:56:03 +00:00
- 10.10.0.3
- 10.10.0.4
conditions:
ready: true
---
apiVersion: v1
kind: Service
metadata:
name: whoamiudp3
namespace: ns3
spec:
ports:
- name: myapp3
port: 8083
selector:
app: traefiklabs
task: whoamiudp3
---
2024-06-21 12:56:03 +00:00
kind: EndpointSlice
apiVersion: discovery.k8s.io/v1
metadata:
2024-06-21 12:56:03 +00:00
name: whoamiudp3-abc
namespace: ns3
2024-06-21 12:56:03 +00:00
labels:
kubernetes.io/service-name: whoamiudp3
2024-06-21 12:56:03 +00:00
addressType: IPv4
ports:
- name: myapp3
port: 8083
endpoints:
- addresses:
2024-06-21 12:56:03 +00:00
- 10.10.0.7
- 10.10.0.8
conditions:
ready: true
---
2024-06-21 12:56:03 +00:00
kind: EndpointSlice
apiVersion: discovery.k8s.io/v1
metadata:
2024-06-21 12:56:03 +00:00
name: whoamiudp3-abc
namespace: ns4
2024-06-21 12:56:03 +00:00
labels:
kubernetes.io/service-name: whoamiudp3
2024-06-21 12:56:03 +00:00
addressType: IPv4
ports:
- name: myapp4
port: 8084
endpoints:
- addresses:
2024-06-21 12:56:03 +00:00
- 10.10.0.9
- 10.10.0.10
conditions:
ready: true
---
apiVersion: v1
kind: Service
metadata:
name: whoamiudp-ipv6
namespace: default
spec:
ports:
- name: myapp-ipv6
port: 8080
selector:
app: traefiklabs
task: whoamiudp-ipv6
---
2024-06-21 12:56:03 +00:00
kind: EndpointSlice
apiVersion: discovery.k8s.io/v1
metadata:
2024-06-21 12:56:03 +00:00
name: whoamiudp-ipv6-abc
namespace: default
2024-06-21 12:56:03 +00:00
labels:
kubernetes.io/service-name: whoamiudp-ipv6
2024-06-21 12:56:03 +00:00
addressType: IPv6
ports:
- name: myapp-ipv6
port: 8080
endpoints:
- addresses:
2024-06-21 12:56:03 +00:00
- "fd00:10:244:0:1::3"
conditions:
ready: true
---
apiVersion: v1
kind: Service
metadata:
name: whoamiudp-cross-ns
namespace: cross-ns
spec:
ports:
- name: myapp
port: 8000
selector:
app: traefiklabs
task: whoamiudp
---
apiVersion: v1
kind: Service
metadata:
name: external-svc-udp
namespace: default
spec:
externalName: external.domain
type: ExternalName
---
apiVersion: v1
kind: Service
metadata:
name: external.service.with.port.udp
namespace: default
spec:
externalName: external.domain
type: ExternalName
ports:
- name: http
protocol: TCP
port: 80
---
2024-06-21 12:56:03 +00:00
kind: EndpointSlice
apiVersion: discovery.k8s.io/v1
metadata:
2024-06-21 12:56:03 +00:00
name: whoamiudp-cross-ns-abc
namespace: cross-ns
2024-06-21 12:56:03 +00:00
labels:
kubernetes.io/service-name: whoamiudp-cross-ns
2024-06-21 12:56:03 +00:00
addressType: IPv4
ports:
- name: myapp
port: 8000
endpoints:
- addresses:
2024-06-21 12:56:03 +00:00
- 10.10.0.1
- 10.10.0.2
conditions:
ready: true
2022-03-07 10:08:07 +00:00
---
apiVersion: v1
kind: Service
metadata:
2024-06-21 12:56:03 +00:00
name: whoamiudp-without-endpointslice-endpoints
2022-03-07 10:08:07 +00:00
namespace: default
spec:
ports:
- name: myapp
port: 8000
selector:
app: traefiklabs
task: whoamiudp
---
2024-06-21 12:56:03 +00:00
kind: EndpointSlice
apiVersion: discovery.k8s.io/v1
2022-03-07 10:08:07 +00:00
metadata:
2024-06-21 12:56:03 +00:00
name: whoamiudp-without-endpointslice-endpoints-abc
2022-03-07 10:08:07 +00:00
namespace: default
2024-06-21 12:56:03 +00:00
labels:
kubernetes.io/service-name: whoamiudp-without-endpointslice-endpoints
addressType: IPv4
endpoints: []
---
apiVersion: v1
kind: Service
metadata:
name: native-svc-udp
namespace: default
spec:
ports:
- name: myapp
port: 8000
type: ClusterIP
clusterIP: 10.10.0.1
---
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