Skip to content
New issue

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

你好,关于headlessservice相关问题当中介绍的pod 重建后访问失败,在istio1.14.1当中也未能得到解决 #8

Open
wang-xiaowu opened this issue Dec 14, 2022 · 0 comments

Comments

@wang-xiaowu
Copy link

你好,关于headlessservice相关问题当中介绍的pod 重建后访问失败,在istio1.14.1当中也未能得到解决

k8s version: k3s+v1.24.4
istio version: 1.14.1

链路: 内部nginx网关 -》server
现象:

  1. 网关(sidecar) -> server(sidecar), 重启server后网关502
  2. 网关(sidecar) -> server(no sidecar), 重启server后网关502
  3. 网关(no sidecar) -> server(no sidecar), 重启server后网关ok

这是正常请求下,网关istio-proxy的日志

{
    "downstream_remote_address":"10.42.0.0:0",
    "duration":0,
    "upstream_transport_failure_reason":null,
    "protocol":"HTTP/1.1",
    "requested_server_name":"outbound_.80_.release-k3s_.orange-gateway-a.sopei-biz.svc.cluster.local",
    "connection_termination_details":null,
    "bytes_sent":0,
    "upstream_host":"10.42.2.212:80",
    "response_code":304,
    "user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36",
    "upstream_service_time":"0",
    "response_code_details":"via_upstream",
    "start_time":"2022-12-14T02:17:13.015Z",
    "path":"/",
    "downstream_local_address":"10.42.2.212:80",
    "upstream_cluster":"inbound|80||",
    "response_flags":"-",
    "authority":"<my remoteAddr>",
    "upstream_local_address":"127.0.0.6:35737",
    "route_name":"default",
    "x_forwarded_for":"xxx,10.42.0.0",
    "method":"GET",
    "request_id":"ede72a4a-c171-4ec0-99bd-f07e05e66c62",
    "bytes_received":0
}

这是非正常请求下,网关istio-proxy的日志

{
    "path":"/socket.io/?EIO=3&transport=websocket",
    "method":"GET",
    "upstream_cluster":"inbound|80||",
    "authority":"<my remoteAddr>",
    "response_code":502,
    "duration":6217,
    "bytes_received":0,
    "request_id":"fdf17622-247d-9e5d-bafc-6140d355e78f",
    "connection_termination_details":null,
    "upstream_service_time":null,
    "upstream_local_address":"127.0.0.6:53377",
    "downstream_local_address":"10.42.2.212:80",
    "upstream_transport_failure_reason":null,
    "route_name":"default",
    "user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36",
    "start_time":"2022-12-14T02:20:25.703Z",
    "protocol":"HTTP/1.1",
    "x_forwarded_for":"xxx,10.42.1.0",
    "response_flags":"-",
    "bytes_sent":556,
    "upstream_host":"10.42.2.212:80",
    "downstream_remote_address":"10.42.1.0:0",
    "response_code_details":"via_upstream",
    "requested_server_name":"outbound_.80_.release-k3s_.orange-gateway-a.sopei-biz.svc.cluster.local"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant