Skip to content

grpc 注册zookeeper, 能否使用seed? #75

@qusthuang

Description

@qusthuang

zkclient : create /zookeeper/SoaInvokerService '[{"host":"127.0.0.1","port":7980,"weight":100}]'

admin api comand:

curl http://127.0.0.1:9180/apisix/admin/routes/1
-H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
{
"uri": "/zk/test1",
"plugins": {
"grpc-transcode": {
"proto_id": "1",
"service": "SoaInvokerService",
"method": "Call"
}
},
"upstream": {
"scheme": "grpc",
"service_name": "SoaInvokerService",
"type": "roundrobin",
"discovery_type": "zookeeper"
}
}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions