We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1、部署 ./demo/metaprotocol-dubbo/uninstall.sh kubectl create ns meta-dubbo kubectl label namespace meta-dubbo istio-injection=enabled --overwrite kubectl apply -f demo/k8s/aeraki-bootstrap-config.yaml -n meta-dubbo kubectl apply -f demo/k8s/nacos -n meta-dubbo kubectl apply -f demo/traffic-rules/destinationrule.yaml -n meta-dubbo 2、查看pod 和log [root@master dubbo2istio]# kubectl get pod -n meta-dubbo NAME READY STATUS RESTARTS AGE dubbo-sample-consumer-5cf9f6f878-xxp8j 2/2 Running 0 22m dubbo-sample-provider-v1-566fbbb9fb-zd5hj 2/2 Running 0 22m dubbo-sample-provider-v2-68468d8bc9-2lnv4 2/2 Running 0 22m dubbo2istio-686d5554cc-5mnsg 1/1 Running 0 22m nacos-5cfbc49d9d-6kmd6 1/1 Running 0 22m [root@master dubbo2istio]# kubectl logs dubbo-sample-consumer-5cf9f6f878-xxp8j -n meta-dubbo|tail -n 10 Hello Aeraki, response from dubbo-sample-provider-v2-68468d8bc9-2lnv4/10.244.0.96 Hello Aeraki, response from dubbo-sample-provider-v1-566fbbb9fb-zd5hj/10.244.0.99 Hello Aeraki, response from dubbo-sample-provider-v2-68468d8bc9-2lnv4/10.244.0.96 Hello Aeraki, response from dubbo-sample-provider-v1-566fbbb9fb-zd5hj/10.244.0.99 Hello Aeraki, response from dubbo-sample-provider-v2-68468d8bc9-2lnv4/10.244.0.96 Hello Aeraki, response from dubbo-sample-provider-v1-566fbbb9fb-zd5hj/10.244.0.99 Hello Aeraki, response from dubbo-sample-provider-v2-68468d8bc9-2lnv4/10.244.0.96 Hello Aeraki, response from dubbo-sample-provider-v1-566fbbb9fb-zd5hj/10.244.0.99 Hello Aeraki, response from dubbo-sample-provider-v2-68468d8bc9-2lnv4/10.244.0.96 Hello Aeraki, response from dubbo-sample-provider-v1-566fbbb9fb-zd5hj/10.244.0.99 3、使用 MetaRouter 调整流量 kubectl apply -f- <<EOF apiVersion: metaprotocol.aeraki.io/v1alpha1 kind: MetaRouter metadata: name: test-metaprotocol-dubbo-route namespace: meta-dubbo spec: hosts: - org.apache.dubbo.samples.basic.api.demoservice routes: - name: v1 match: attributes: interface: exact: org.apache.dubbo.samples.basic.api.DemoService method: exact: sayHello foo: exact: bar route: - destination: host: org.apache.dubbo.samples.basic.api.demoservice subset: v1 EOF 4、再次观察日志(多次观察) 5、使用VirtualService可以支持流量
dubbo2istio 不支持使用 MetaRouter 吗?
The text was updated successfully, but these errors were encountered:
可以的,参考 https://www.aeraki.net/zh/docs/v1.x/tutorials/dubbo/#demo-%E5%BA%94%E7%94%A8
Sorry, something went wrong.
No branches or pull requests
1、部署
./demo/metaprotocol-dubbo/uninstall.sh
kubectl create ns meta-dubbo
kubectl label namespace meta-dubbo istio-injection=enabled --overwrite
kubectl apply -f demo/k8s/aeraki-bootstrap-config.yaml -n meta-dubbo
kubectl apply -f demo/k8s/nacos -n meta-dubbo
kubectl apply -f demo/traffic-rules/destinationrule.yaml -n meta-dubbo
2、查看pod 和log
[root@master dubbo2istio]# kubectl get pod -n meta-dubbo
NAME READY STATUS RESTARTS AGE
dubbo-sample-consumer-5cf9f6f878-xxp8j 2/2 Running 0 22m
dubbo-sample-provider-v1-566fbbb9fb-zd5hj 2/2 Running 0 22m
dubbo-sample-provider-v2-68468d8bc9-2lnv4 2/2 Running 0 22m
dubbo2istio-686d5554cc-5mnsg 1/1 Running 0 22m
nacos-5cfbc49d9d-6kmd6 1/1 Running 0 22m
[root@master dubbo2istio]# kubectl logs dubbo-sample-consumer-5cf9f6f878-xxp8j -n meta-dubbo|tail -n 10
Hello Aeraki, response from dubbo-sample-provider-v2-68468d8bc9-2lnv4/10.244.0.96
Hello Aeraki, response from dubbo-sample-provider-v1-566fbbb9fb-zd5hj/10.244.0.99
Hello Aeraki, response from dubbo-sample-provider-v2-68468d8bc9-2lnv4/10.244.0.96
Hello Aeraki, response from dubbo-sample-provider-v1-566fbbb9fb-zd5hj/10.244.0.99
Hello Aeraki, response from dubbo-sample-provider-v2-68468d8bc9-2lnv4/10.244.0.96
Hello Aeraki, response from dubbo-sample-provider-v1-566fbbb9fb-zd5hj/10.244.0.99
Hello Aeraki, response from dubbo-sample-provider-v2-68468d8bc9-2lnv4/10.244.0.96
Hello Aeraki, response from dubbo-sample-provider-v1-566fbbb9fb-zd5hj/10.244.0.99
Hello Aeraki, response from dubbo-sample-provider-v2-68468d8bc9-2lnv4/10.244.0.96
Hello Aeraki, response from dubbo-sample-provider-v1-566fbbb9fb-zd5hj/10.244.0.99
3、使用 MetaRouter 调整流量
kubectl apply -f- <<EOF
apiVersion: metaprotocol.aeraki.io/v1alpha1
kind: MetaRouter
metadata:
name: test-metaprotocol-dubbo-route
namespace: meta-dubbo
spec:
hosts:
- org.apache.dubbo.samples.basic.api.demoservice
routes:
- name: v1
match:
attributes:
interface:
exact: org.apache.dubbo.samples.basic.api.DemoService
method:
exact: sayHello
foo:
exact: bar
route:
- destination:
host: org.apache.dubbo.samples.basic.api.demoservice
subset: v1
EOF
4、再次观察日志(多次观察)
5、使用VirtualService可以支持流量
dubbo2istio 不支持使用 MetaRouter 吗?
The text was updated successfully, but these errors were encountered: