Is it possible to route traffic to a specific Pod?

后端 未结 2 1696
你的背包
你的背包 2021-01-12 02:19

Say I am running my app in GKE, and this is a multi-tenant application.

I create multiple Pods that hosts my application.

Now I want: Customers 1-1000 to us

2条回答
  •  隐瞒了意图╮
    2021-01-12 02:55

    Not with Pods by themselves, but you should be able to with Services.

    Pods are intended to be stateless and indistinguishable from one another.

    But you should be able to create a Deployment per customer group, and a Service per Deployment. The Ingress nginx should be able to be told to map incoming requests by whatever attributes are relevant to specific customer group Services.

提交回复
热议问题