Can you route an Kubernetes ingress resource based on port?

后端 未结 1 1084
时光取名叫无心
时光取名叫无心 2021-01-20 08:37

I have a Kubernetes service that expose two ports, one for the external interface (target port 8080) and one for the admin interface (target port 8081). I\'d like to make bo

相关标签:
1条回答
  • 2021-01-20 09:16

    Via separate Ingress objects, you should be able to direct HTTP and HTTPS traffic to different ports and/or services, and hostnames can map to distinct ports and/or services.

    However, Ingress currently assumes port 80 for HTTP and 443 for HTTPS for ingress, so it's not currently possible to direct traffic to ports 81 and 4431 via Ingress. I recommend using a different hostname for the admin interface.

    Note that TLS is only supported in release 1.2.

    0 讨论(0)
提交回复
热议问题