istio-ingress-sds的一些障碍绕行方法

栏目: 后端 · 发布时间: 7年前

内容简介:1.通过官网的2.决定使用曲线救援方法,在外侧通过nginx来发布tls,内部回源使用http,但是遇见了http 426的错误。➜ ~ curl https://192.168.1.25:443/ -H “Host: uat.sklinux.com” -i -k -v

1.通过官网的 by step 使用ingress-gateway发布ssl始终不成功,但是ingress-gateway的http服务暴露ok。

2.决定使用曲线救援方法,在外侧通过nginx来发布tls,内部回源使用http,但是遇见了http 426的错误。

➜ ~ curl https://192.168.1.25:443/ -H “Host: uat.sklinux.com” -i -k -v

* Trying 192.168.1.25…

* TCP_NODELAY set

* Connected to 192.168.1.25 (192.168.1.25) port 443 (#0)

* WARNING: disabling hostname validation also disables SNI.

* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256

* Server certificate: *.uat.sklinux.com

* Server certificate: Fishdrowned ROOT CA

> GET / HTTP/1.1

> Host: uat.sklinux.com

> User-Agent: curl/7.54.0

> Accept: */*

>

< HTTP/1.1 426 Upgrade Required

HTTP/1.1 426 Upgrade Required

< Server: nginx

Server: nginx

< Date: Mon, 27 May 2019 02:25:25 GMT

Date: Mon, 27 May 2019 02:25:25 GMT

< Content-Length: 0

Content-Length: 0

< Connection: keep-alive

Connection: keep-alive

经查原因为:

nginx 反向代理默认走的http 1.0版本

但是 被反向代理的服务器是1.1版本的!

所以在反向代理的时候加上一句: proxy_http_version 1.1;

即可!

但是最终通过SDS进行tls服务发布还没彻底解决,这个问题将持续跟进社区。


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Discrete Mathematics and Its Applications

Discrete Mathematics and Its Applications

Kenneth H Rosen / McGraw-Hill Science/Engineering/Math / 2003-04-22 / USD 132.81

Discrete Mathematics and its Applications is a focused introduction to the primary themes in a discrete mathematics course, as introduced through extensive applications, expansive discussion, and deta......一起来看看 《Discrete Mathematics and Its Applications》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具