mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 06:22:50 +08:00
Fix code-blocks in kubernetes.rst (#1128)
line 70 – added missing period lines 84-95 – added missing indent
This commit is contained in:
parent
347ea7280c
commit
4110837a04
@ -67,7 +67,7 @@ You use Ocelot to poll kubernetes for latest service information rather than per
|
|||||||
"Port": 443,
|
"Port": 443,
|
||||||
"Token": "txpc696iUhbVoudg164r93CxDTrKRVWG",
|
"Token": "txpc696iUhbVoudg164r93CxDTrKRVWG",
|
||||||
"Namespace": "dev",
|
"Namespace": "dev",
|
||||||
"Type": "pollkube"
|
"Type": "pollkube",
|
||||||
"PollingInterval": 100
|
"PollingInterval": 100
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,15 +81,15 @@ If your downstream service resides in a different namespace you can override the
|
|||||||
|
|
||||||
.. code-block:: json
|
.. code-block:: json
|
||||||
|
|
||||||
{
|
|
||||||
"ReRoutes": [
|
|
||||||
{
|
{
|
||||||
"DownstreamPathTemplate": "/api/values",
|
"ReRoutes": [
|
||||||
"DownstreamScheme": "http",
|
{
|
||||||
"UpstreamPathTemplate": "/values",
|
"DownstreamPathTemplate": "/api/values",
|
||||||
"ServiceName": "downstreamservice",
|
"DownstreamScheme": "http",
|
||||||
"ServiceNamespace": "downstream-namespace",
|
"UpstreamPathTemplate": "/values",
|
||||||
"UpstreamHttpMethod": [ "Get" ]
|
"ServiceName": "downstreamservice",
|
||||||
|
"ServiceNamespace": "downstream-namespace",
|
||||||
|
"UpstreamHttpMethod": [ "Get" ]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user