I've got a GCP project which contains multiple Kubernetes clusters. When I 
create an ingress via kubectl create with different names (
service_name-cluster1 and service_name-cluster2) in both clusters, the GCP 
console shows that the load balancers for both ingresses are pointing at 
the same instance group, named k8s-ig. This prevents one or both of the 
ingresses working. 


Prior to the cluster upgrade to version 1.3 of Kubernetes, the GKE Ingress 
BETA_LIMITATIONS 
<https://github.com/kubernetes/contrib/blob/61c03a7d607c1f388e2294eb2a9f512e8ed5a460/ingress/controllers/gce/BETA_LIMITATIONS.md>
 file 
explicitly stated that If you're creating multiple clusters that will use 
Ingress within a single GCE project, you must assign a UID to GLBC so it 
doesn't stomp on resources from another cluster.


Adding --cluster-uid would result in namespacing like k8s-ig--prod for 
instance groups, which is the behavior I would expect from 1.3 by default. 
Based on PR 680 to kubernetes/contrib/ingress/gce (linked below), it looks 
like cluster-uid is no longer a required flag, and in fact there's no easy 
way to go add it somewhere. However, I've upgraded my clusters to 1.3 and 
no namespacing is happening.


Based on my reading of the getClusterUID function in that commit 
<https://github.com/kubernetes/contrib/pull/680/files#diff-db248caee1caa98cf1c1c8d12349eb67R233>,
 
I found and deleted a kubernetes configMap called ingress-uid, which 
contained a uid entry without a value. I then deleted all of my ingresses, 
tore down the L7-default-backend pod by deleting it and allowing it to be 
recreated by the replication controller, and created an ingress again.


Still, no namespacing and my ingresses are clobbering each other. Have I 
missed a step in removing any empty cluster-uid configurations?


I've spun up a new testing container cluster and confirmed that namespacing 
happens properly. Only the two clusters which existed previously have 
failed to enable any proper naming.

-- 
You received this message because you are subscribed to the Google Groups 
"Containers at Google" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-containers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to