2019-11-14 18:28:04 +00:00
|
|
|
---
|
2024-06-21 12:56:03 +00:00
|
|
|
kind: EndpointSlice
|
|
|
|
apiVersion: discovery.k8s.io/v1
|
2019-11-14 18:28:04 +00:00
|
|
|
metadata:
|
2024-06-21 12:56:03 +00:00
|
|
|
name: whoami5-abc
|
2019-11-14 18:28:04 +00:00
|
|
|
namespace: default
|
2024-06-21 12:56:03 +00:00
|
|
|
labels:
|
|
|
|
kubernetes.io/service-name: whoami5
|
2019-11-14 18:28:04 +00:00
|
|
|
|
2024-06-21 12:56:03 +00:00
|
|
|
addressType: IPv4
|
|
|
|
ports:
|
|
|
|
- name: web
|
|
|
|
port: 8080
|
|
|
|
endpoints:
|
2019-11-14 18:28:04 +00:00
|
|
|
- addresses:
|
2024-06-21 12:56:03 +00:00
|
|
|
- 10.10.0.3
|
|
|
|
- 10.10.0.4
|
|
|
|
conditions:
|
|
|
|
ready: true
|
2019-11-14 18:28:04 +00:00
|
|
|
|
|
|
|
---
|
2024-06-21 12:56:03 +00:00
|
|
|
kind: EndpointSlice
|
|
|
|
apiVersion: discovery.k8s.io/v1
|
2019-11-14 18:28:04 +00:00
|
|
|
metadata:
|
2024-06-21 12:56:03 +00:00
|
|
|
name: whoami4-abc
|
2019-11-14 18:28:04 +00:00
|
|
|
namespace: default
|
2024-06-21 12:56:03 +00:00
|
|
|
labels:
|
|
|
|
kubernetes.io/service-name: whoami4
|
2019-11-14 18:28:04 +00:00
|
|
|
|
2024-06-21 12:56:03 +00:00
|
|
|
addressType: IPv4
|
|
|
|
ports:
|
|
|
|
- name: web
|
|
|
|
port: 8080
|
|
|
|
endpoints:
|
2019-11-14 18:28:04 +00:00
|
|
|
- addresses:
|
2024-06-21 12:56:03 +00:00
|
|
|
- 10.10.0.1
|
|
|
|
- 10.10.0.2
|
|
|
|
conditions:
|
|
|
|
ready: true
|
2019-11-14 18:28:04 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: whoami5
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: web
|
|
|
|
port: 8080
|
|
|
|
selector:
|
2020-09-16 13:46:04 +00:00
|
|
|
app: traefiklabs
|
2019-11-14 18:28:04 +00:00
|
|
|
task: whoami5
|
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: whoami4
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: web
|
|
|
|
port: 8080
|
|
|
|
selector:
|
2020-09-16 13:46:04 +00:00
|
|
|
app: traefiklabs
|
2019-11-14 18:28:04 +00:00
|
|
|
task: whoami4
|
|
|
|
|
|
|
|
---
|
2023-03-20 14:38:08 +00:00
|
|
|
apiVersion: traefik.io/v1alpha1
|
2019-11-14 18:28:04 +00:00
|
|
|
kind: TraefikService
|
|
|
|
metadata:
|
|
|
|
name: wrr2
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
spec:
|
|
|
|
weighted:
|
|
|
|
services:
|
|
|
|
- name: whoami5
|
|
|
|
weight: 1
|
|
|
|
port: 8080
|
|
|
|
|
|
|
|
---
|
2023-03-20 14:38:08 +00:00
|
|
|
apiVersion: traefik.io/v1alpha1
|
2019-11-14 18:28:04 +00:00
|
|
|
kind: TraefikService
|
|
|
|
metadata:
|
|
|
|
name: mirror1
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
spec:
|
|
|
|
mirroring:
|
|
|
|
name: whoami5
|
|
|
|
port: 8080
|
|
|
|
mirrors:
|
|
|
|
- name: whoami4
|
|
|
|
percent: 50
|
|
|
|
port: 8080
|
|
|
|
|
|
|
|
---
|
2023-03-20 14:38:08 +00:00
|
|
|
apiVersion: traefik.io/v1alpha1
|
2019-11-14 18:28:04 +00:00
|
|
|
kind: TraefikService
|
|
|
|
metadata:
|
|
|
|
name: wrr1
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
spec:
|
|
|
|
weighted:
|
|
|
|
services:
|
|
|
|
- name: wrr2
|
|
|
|
kind: TraefikService
|
|
|
|
weight: 1
|
|
|
|
- name: whoami5
|
|
|
|
weight: 1
|
|
|
|
port: 8080
|
|
|
|
- name: mirror1
|
|
|
|
kind: TraefikService
|
|
|
|
weight: 1
|
|
|
|
|
|
|
|
---
|
2023-03-20 14:38:08 +00:00
|
|
|
apiVersion: traefik.io/v1alpha1
|
2019-11-14 18:28:04 +00:00
|
|
|
kind: IngressRoute
|
|
|
|
metadata:
|
|
|
|
name: test.route
|
|
|
|
namespace: default
|
|
|
|
|
|
|
|
spec:
|
|
|
|
entryPoints:
|
|
|
|
- web
|
|
|
|
|
|
|
|
routes:
|
|
|
|
- match: Host(`foo.com`) && PathPrefix(`/foo`)
|
|
|
|
kind: Rule
|
|
|
|
priority: 12
|
|
|
|
services:
|
|
|
|
- name: wrr1
|
|
|
|
kind: TraefikService
|