Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to connect multiple backend k8s services across namespaces from Apigee to achieve Multitenancy

We have a GKE cluster with multiple namesspaces for different Customers. Each namespace has Kubernetes service named "myService". 

We want to connect to these k8s services from Apigee proxies. When request comes from customer A  then "myService" from Namespace for Customer A should be called from Apigee proxy.

Similarly ,  When request comes from customer B then "myService" from Namespace for Customer B should be called from Apigee proxy.

What can be the optimal solution to make these 1-to-1 connections possible from Apigee proxy to corrospnding k8s service on respective Namespace.

@imesh @strebel @anilsr 

 

 

Solved Solved
1 3 440
1 ACCEPTED SOLUTION

That's a slightly more complicated story then. GKE provides integration with Cloud DNS that would allow you to address the service from a VPC outside the cluster. Please see this link here: https://cloud.google.com/kubernetes-engine/docs/how-to/cloud-dns#vpc_scope_dns

View solution in original post

3 REPLIES 3