503服务无法使用大使QOTM服务

时间:2019-03-22 04:02:34

标签: kubernetes envoyproxy

我在cent os中有一个kubernetes主/节点设置。在将大使设置为API网关之后,我尝试了一个带有QOTM服务的示例路由,为此,当我向该路由发送http请求时,在响应中收到503服务不可用,主体为=“上游不健康”。但是,当我将其作为单独的docker容器运行时,仍使用相同的qotm服务,该服务可用于该路由。 在Kubernetes中有什么特别需要注意的事情来设置大使。

> kubectl exec ambassador-589c864695-cg556 -- curl -v 10.101.64.22/qotm/*
> no healthy upstream*   Trying 10.101.64.22...
> * TCP_NODELAY set
>  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
>                                 Dload  Upload   Total   Spent    Left  Speed
>  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* > Connected to 10.101.64.22 (10.101.64.22) port 80 (#0)
> GET /qotm/* HTTP/1.1
> Host: 10.101.64.22
> User-Agent: curl/7.63.0
> Accept: */*
>
< HTTP/1.1 503 Service Unavailable
< content-length: 19
< content-type: text/plain
< date: Fri, 22 Mar 2019 03:54:16 GMT
< server: envoy
<
{ [19 bytes data]
100    19  100    19    0     0  19000      0 --:--:-- --:--:-- --:--:-- 19000
* Connection #0 to host 10.101.64.22 left intact

0 个答案:

没有答案