mirror of
https://github.com/alibaba/higress.git
synced 2026-06-06 19:27:33 +08:00
support multi destination (#119)
This commit is contained in:
21
samples/nacos-discovery/canary.yaml
Normal file
21
samples/nacos-discovery/canary.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
higress.io/destination: service-provider-gray.DEFAULT-GROUP.public.nacos
|
||||
nginx.ingress.kubernetes.io/canary: 'true'
|
||||
nginx.ingress.kubernetes.io/canary-by-header: x-user-id
|
||||
nginx.ingress.kubernetes.io/canary-by-header-value: '100'
|
||||
name: echo-gray
|
||||
namespace: default
|
||||
spec:
|
||||
rules:
|
||||
- http:
|
||||
paths:
|
||||
- backend:
|
||||
resource:
|
||||
apiGroup: networking.higress.io
|
||||
kind: McpBridge
|
||||
name: default
|
||||
path: /echo
|
||||
pathType: Prefix
|
||||
21
samples/nacos-discovery/multi-destination.yaml
Normal file
21
samples/nacos-discovery/multi-destination.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
higress.io/destination: |
|
||||
33% service-provider.DEFAULT-GROUP.public.nacos
|
||||
33% service-provider-gray.DEFAULT-GROUP.public.nacos
|
||||
34% bar-service.default.svc.cluster.local:5678
|
||||
name: echo
|
||||
namespace: default
|
||||
spec:
|
||||
rules:
|
||||
- http:
|
||||
paths:
|
||||
- backend:
|
||||
resource:
|
||||
apiGroup: networking.higress.io
|
||||
kind: McpBridge
|
||||
name: default
|
||||
path: /echo
|
||||
pathType: Prefix
|
||||
Reference in New Issue
Block a user