mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-20 12:38:16 +08:00
编写k8s测试例子
This commit is contained in:
27
samples/OelotKube/ApiGateway/ocelot.json
Normal file
27
samples/OelotKube/ApiGateway/ocelot.json
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"ReRoutes": [
|
||||
{
|
||||
"DownstreamPathTemplate": "/api/Category",
|
||||
"DownstreamScheme": "http",
|
||||
"UpstreamPathTemplate": "/Category",
|
||||
"ServiceName": "DownstreamService",
|
||||
"UpstreamHttpMethod": [ "Get" ],
|
||||
"QoSOptions": {
|
||||
"ExceptionsAllowedBeforeBreaking": 3,
|
||||
"DurationOfBreak": 10000,
|
||||
"TimeoutValue": 5000
|
||||
},
|
||||
"FileCacheOptions": { "TtlSeconds": 15 }
|
||||
}
|
||||
],
|
||||
"GlobalConfiguration": {
|
||||
"RequestIdKey": "OcRequestId",
|
||||
"AdministrationPath": "/administration",
|
||||
"ServiceDiscoveryProvider": {
|
||||
"Host": "localhost",
|
||||
"Port": 8001,
|
||||
"Namesapce": "dev",
|
||||
"Type": "k8s"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user