没错,这是由于把443端口转发80端口的原因:
先检查请求网址是否正确:
比如curl https://xxx:80/
这种会出错。
不是这种情况,请检查kubernetes service 配置,下面的targetPort:不要指向80了。
ports:
- name: http
nodePort: 31544
port: 80
protocol: TCP
targetPort: 80
- name: https
nodePort: 31609
port: 443
protocol: TCP
targetPort: 443