I'm trying to put together a script that deploys o...
# google-cloud
d
I'm trying to put together a script that deploys onto two different zones so I am avoiding the use of the default zone configuration. Per @gentle-diamond-70147's instructions I created a
gcp.Provider
instance that specifies which zone to use but I don't understand how to tell Kubernetes which gcp.Provider to use. I mean, ultimately I want to create a single Kubernetes deployment that deploys nodes onto two different zones that I specify. How do I do that? Am I going about this the wrong way?
g
You create node pools across zones
Or you create a regional cluster where every node pool will include all its selected zones
You only need one
gcp.Provider
for that On the kubernetes pods you can add node selectors to schedule pod to a specific zone using the failure domain label
<http://failure-domain.beta.kubernetes.io/zone|failure-domain.beta.kubernetes.io/zone>