我在群集中有一个服务(节点REST应用程序,让它称之为ABC)。这个应用程序侦听两个端口,一个在HTTP上运行,另一个在HTTPS上运行。
我使用Ingress。我可以看到Ingress只使用HTTP端口与ABC通信。我通过停止HTTP并仅在HTTPS上运行ABC来确认这一点。
我是否必须在Ingress中进行任何特定设置,以便使用HTTPS而不是HTTP与ABC进行通信?或者,当使用Ingress时,它是在HTTP上的集群中运行服务的模式吗?
Ingress yaml:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: test-ingress
spec:
rules:
- host: abc.containers.myhost.net
http:
paths:
- backend:
serviceName: my-test-node
servicePort: 9080
path: my-test-node/xyz
tls:
- hosts:
- abc.containers.myhost.net
secretName: abc1