Files
ingress/pkg/provider/kubernetes/crd/fixtures/with_highest_random_weight.yml
zeekay 05e593c8b6 fix(ci): drop legacy experimental- prefix from image tag
Image now publishes as ghcr.io/hanzoai/ingress:<branch> (e.g.
:main, :v1.7.x) — matching the convention every other repo in the
ecosystem uses (kms, gateway, etc.). Drops the legacy
experimental- prefix that confused consumers.
2026-05-06 16:45:14 -07:00

107 lines
1.5 KiB
YAML

---
kind: EndpointSlice
apiVersion: discovery.k8s.io/v1
metadata:
name: whoami1-abc
namespace: default
labels:
kubernetes.io/service-name: whoami1
addressType: IPv4
ports:
- name: web
port: 8080
endpoints:
- addresses:
- 10.10.0.1
- 10.10.0.2
conditions:
ready: true
---
apiVersion: v1
kind: Service
metadata:
name: whoami1
namespace: default
spec:
ports:
- name: web
port: 8080
selector:
app: hanzoai
task: whoami1
---
kind: EndpointSlice
apiVersion: discovery.k8s.io/v1
metadata:
name: whoami2-abc
namespace: default
labels:
kubernetes.io/service-name: whoami2
addressType: IPv4
ports:
- name: web
port: 8080
endpoints:
- addresses:
- 10.10.0.3
- 10.10.0.4
conditions:
ready: true
---
apiVersion: v1
kind: Service
metadata:
name: whoami2
namespace: default
spec:
ports:
- name: web
port: 8080
selector:
app: hanzoai
task: whoami2
---
apiVersion: ingress.k8s.io/v1alpha1
kind: IngressService
metadata:
name: hrw1
namespace: default
spec:
highestRandomWeight:
services:
- name: whoami1
kind: Service
port: 8080
weight: 10
- name: whoami2
kind: Service
port: 8080
weight: 20
---
apiVersion: ingress.k8s.io/v1alpha1
kind: IngressRoute
metadata:
name: test.route
namespace: default
spec:
entryPoints:
- web
routes:
- match: Host(`foo.com`) && PathPrefix(`/foo`)
kind: Rule
priority: 12
services:
- name: hrw1
kind: IngressService