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

320 lines
4.7 KiB
YAML
Raw Normal View History

apiVersion: v1
kind: Service
metadata:
name: whoamitcp
namespace: default
spec:
ports:
- name: myapp
port: 8000
selector:
app: traefiklabs
task: whoamitcp
---
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: whoamitcp-abc
namespace: default
2024-06-21 12:56:03 +00:00
labels:
kubernetes.io/service-name: whoamitcp
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: whoamitcp2
namespace: default
spec:
ports:
- name: myapp2
port: 8080
selector:
app: traefiklabs
task: whoamitcp2
---
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: whoamitcp2-abc
namespace: default
2024-06-21 12:56:03 +00:00
labels:
kubernetes.io/service-name: whoamitcp2
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: whoamitcptls
namespace: default
spec:
ports:
- name: websecure
port: 443
selector:
app: traefiklabs
task: whoamitcptls2
---
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: whoamitcptls-abc
namespace: default
2024-06-21 12:56:03 +00:00
labels:
kubernetes.io/service-name: whoamitcptls
addressType: IPv4
ports:
- name: websecure
port: 443
endpoints:
- addresses:
2024-06-21 12:56:03 +00:00
- 10.10.0.5
- 10.10.0.6
conditions:
ready: true
---
apiVersion: v1
kind: Service
metadata:
name: whoamitcp3
namespace: ns3
spec:
ports:
- name: myapp3
port: 8083
selector:
app: traefiklabs
task: whoamitcp3
---
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: whoamitcp3-abc
namespace: ns3
2024-06-21 12:56:03 +00:00
labels:
kubernetes.io/service-name: whoamitcp3
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: whoamitcp3-abc
namespace: ns4
2024-06-21 12:56:03 +00:00
labels:
kubernetes.io/service-name: whoamitcp3
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: whoamitcp-ipv6
namespace: default
spec:
ports:
- name: myapp-ipv6
port: 8080
selector:
app: traefiklabs
task: whoamitcp-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: whoamitcp-ipv6-abc
namespace: default
2024-06-21 12:56:03 +00:00
labels:
kubernetes.io/service-name: whoamitcp-ipv6
addressType: IPv6
ports:
- name: myapp-ipv6
port: 8080
endpoints:
- addresses:
2024-06-21 12:56:03 +00:00
- "fd00:10:244:0:1::3"
- "2001:db8:85a3:8d3:1319:8a2e:370:7348"
conditions:
ready: true
---
apiVersion: v1
kind: Service
metadata:
name: external-svc-tcp
namespace: default
spec:
externalName: external.domain
type: ExternalName
---
apiVersion: v1
kind: Service
metadata:
name: external.service.with.port.tcp
namespace: default
spec:
externalName: external.domain
type: ExternalName
ports:
- name: http
protocol: TCP
port: 80
---
apiVersion: v1
kind: Service
metadata:
name: external.service.with.ipv6
namespace: default
spec:
externalName: "fe80::200:5aee:feaa:20a2"
type: ExternalName
---
apiVersion: v1
kind: Service
metadata:
name: whoamitcp-cross-ns
namespace: cross-ns
spec:
ports:
- name: myapp
port: 8000
selector:
app: traefiklabs
task: whoamitcp
---
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: whoamitcp-cross-ns-abc
namespace: cross-ns
2024-06-21 12:56:03 +00:00
labels:
kubernetes.io/service-name: whoamitcp-cross-ns
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: whoamitcp-without-endpointslice-endpoints
2022-03-07 10:08:07 +00:00
namespace: default
spec:
ports:
- name: myapp
port: 8000
selector:
app: traefiklabs
task: whoamitcp
---
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: whoamitcp-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: whoamitcp-without-endpointslice-endpoints
addressType: IPv4
endpoints: []
---
apiVersion: v1
kind: Service
metadata:
name: native-svc-tcp
namespace: default
spec:
ports:
- name: myapp
port: 8000
type: ClusterIP
clusterIP: 10.10.0.1
---
apiVersion: v1
kind: Service
metadata:
name: nodeport-svc-tcp
namespace: default
spec:
ports:
- name: myapp
port: 8000
nodePort: 32456
type: NodePort
clusterIP: 10.10.0.1