简体   繁体   English

到特定 pod 端点的入口流量路由

[英]Ingress traffic route to specific pod endpoint

I have a go application in K8S and need to configure Ingress for specific endpoint.我在 K8S 中有一个 go 应用程序,需要为特定端点配置 Ingress。 Example: when user type in browser xx.yy.com, ingress route this traffic to pod /v1/example endpoint.示例:当用户在浏览器中输入 xx.yy.com 时,入口将此流量路由到 pod /v1/example 端点。

How can I do with Ingress or any different method for it ?我该如何使用 Ingress 或任何其他方法呢?

您可以在入口资源中使用nginx.ingress.kubernetes.io/rewrite-target注解

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM