1
0
mirror of https://github.com/containous/traefik.git synced 2025-03-12 20:58:23 +03:00
traefik/pkg/provider/kubernetes/crd/fixtures/with_multiple_endpointaddresses.yml
Kevin Pollet a29628fa2e
Fix fenced server status computation
Co-authored-by: Romain <rtribotte@users.noreply.github.com>
2024-12-20 11:26:04 +01:00

69 lines
1.2 KiB
YAML

apiVersion: v1
kind: Service
metadata:
name: whoami-svc-multiple-endpointaddresses
namespace: default
spec:
ports:
- name: web
port: 80
selector:
app: traefiklabs
task: whoami
---
kind: EndpointSlice
apiVersion: discovery.k8s.io/v1
metadata:
name: whoami-svc-multiple-endpointaddresses-abc
namespace: default
labels:
kubernetes.io/service-name: whoami-svc-multiple-endpointaddresses
addressType: IPv4
ports:
- name: web
port: 80
endpoints:
- addresses:
- 10.10.0.1
- 10.10.0.2
conditions:
ready: true
serving: true
terminating: false
- addresses:
- 10.10.0.3
- 10.10.0.4
conditions:
ready: false
serving: true
terminating: true
- addresses:
- 10.10.0.5
- 10.10.0.6
conditions:
ready: false
serving: false
terminating: true
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: test.route
namespace: default
spec:
entryPoints:
- foo
routes:
- match: Host(`foo.com`) && PathPrefix(`/bar`)
kind: Rule
priority: 12
services:
- name: whoami-svc-multiple-endpointaddresses
port: 80