Skip to content

Instantly share code, notes, and snippets.

@csbell
csbell / multi-cluster-ingress.txt
Created June 15, 2017 20:04
Setting up multi-cluster ingress on GKE (requires >= 1.6.4)
0. Requirements: There are no prior existing ingresses.
1. Add/Update configmap in each cluster: kubectl --context <clusterA,clusterB...> edit cm/ingress-uid -n kube-system
###
data:
provider-uid: 34e7fb390cc1a5a5 # 16-char hexstring must be *unique* per cluster (value doesn't matter)
uid: e3bb67f220a0f898 # 16-char hexstring must be the *same* in each cluster
###
2. Propagate same ingress object in each cluster (type should be of NodePort with same NodePort value).
kubectl --context <clusterA,clusterB...> create -f youringress.yaml