You are correct -- node pools must exist across all zones in a multi-zone
cluster. The intent is to have a consistent resource footprint across all
zones. Due to the behavior of the default k8s scheduler, this will result
in the least amount of surprise because applications should be spread more
evenly across zones.

On Sat, May 28, 2016 at 4:59 AM, Rimas Mocevicius <[email protected]> wrote:

> Ok, did more digging
>
> so the commands: " gcloud container node-pools create ha-zone-b
> --cluster=development-cluster-2 --machine-type=g1-small --disk-size=50
> --num-nodes=1 --zone europe-west1-b"
> bit "-zone europe-west1-b" is to tell in which zone your cluster is set
> and creates 1 node per zone
>
> So it does not look like you cannot create a node pool just in one zone
> for multi zone clusters
>
> On Saturday, 28 May 2016 12:43:41 UTC+1, Rimas Mocevicius wrote:
>>
>> Robert,
>>
>> I'm able to create multizone GKE clusters without any problems.
>>
>> OK, tried to set a new cluster:
>> $ gcloud container clusters create development-cluster-2 \
>>      --zone europe-west1-b \
>>      --additional-zones=europe-west1-c,europe-west1-d \
>>      --machine-type g1-small \
>>      --num-nodes 2 \
>>      --disk-size 50
>>
>> $ gcloud container clusters list
>> NAME                   ZONE            MASTER_VERSION  MASTER_IP
>>  MACHINE_TYPE  NODE_VERSION  NUM_NODES  STATUS
>> development-cluster-2  europe-west1-b  1.2.4           130.211.xx.xx
>>  g1-small      1.2.4         6          RUNNING
>>
>> Now creating the node pool in zone C:
>> $ gcloud container node-pools create ha-zone-c
>> --cluster=development-cluster-2 --machine-type=g1-small --disk-size=50
>> --num-nodes=1 --zone europe-west1-c
>> ERROR: (gcloud.container.node-pools.create) ResponseError: code=404,
>> message=The resource
>> "projects/my_project/zones/europe-west1-c/clusters/development-cluster-2"
>> was not found.
>>
>> Now creating the node pool in zone B where the GKE Master is hosted:
>> $ gcloud container node-pools create ha-zone-b
>> --cluster=development-cluster-2 --machine-type=g1-small --disk-size=50
>> --num-nodes=1 --zone europe-west1-b
>> Creating node pool ha-zone-b...|
>>
>> So the problem is with creating node pools in the zones which were added
>> as "--additional-zones=europe-west1-c,europe-west1-d"
>>
>> Thanks
>>
>> Rimas
>>
>> On Friday, 27 May 2016 21:57:52 UTC+1, Robert Bailey wrote:
>>>
>>> That's a node pool create error. Can you try:
>>>
>>> gcloud container clusters create multi-zone --zone=europe-west1-a
>>> --additional-zones=europe-west1-c,europe-west1-d
>>>
>>> and then should should have a single node pool (named default) that has
>>> VMs in three zones in the europe-west1 region.
>>>
>>>
>>> On Fri, May 27, 2016 at 1:24 PM, Rimas Mocevicius <[email protected]>
>>> wrote:
>>>
>>>> Robert,
>>>>
>>>> I'm getting the same error for multi-zone as for single zone:
>>>> ERROR: (gcloud.container.node-pools.create) ResponseError: code=404,
>>>> message=The resource "projects/my_project/zones/
>>>> europe-west1-c/clusters/dev-cluster-1" was not found
>>>>
>>>> On Friday, 27 May 2016 20:51:43 UTC+1, Robert Bailey wrote:
>>>>
>>>>>
>>>>>
>>>>> On Fri, May 27, 2016 at 12:47 PM, Rimas Mocevicius <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Robert,
>>>>>>
>>>>>> As I have mentioned I have tried in multi-zone cluster (used
>>>>>> --aditional-zones parameter) as well had no luck
>>>>>> to create in additional zones, just only in the main where master is.
>>>>>>
>>>>>
>>>>> What do you mean that you had no luck? You will see a single node
>>>>> pool, but the VMs created will exist in multiple zones (you won't see a
>>>>> node pool per zone).
>>>>>
>>>>>
>>>>>
>>>>>> Docs should be more clear how to use node pool features :-)
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Rimas
>>>>>>
>>>>>>
>>>>>> On Friday, 27 May 2016 20:36:44 UTC+1, Robert Bailey wrote:
>>>>>>>
>>>>>>> The --zone parameter is the zone where your *cluster* exists. If you
>>>>>>> want to spread node pools across zones, then you need to specify the
>>>>>>> --aditional-zones parameter when you create your cluster.
>>>>>>>
>>>>>>> Right now you can't convert a single-zone cluster into a multi-zone
>>>>>>> cluster, but we realize that is an issue for some users and are working 
>>>>>>> on
>>>>>>> a solution.
>>>>>>>
>>>>>>>
>>>>>>> On Fri, May 27, 2016 at 12:58 AM, Rimas Mocevicius <[email protected]
>>>>>>> > wrote:
>>>>>>>
>>>>>>>> Hi there,
>>>>>>>>
>>>>>>>> Awesome stuff that node pools are now available, but I encountered
>>>>>>>> a problem putting node pools to a different zone than k8s master.
>>>>>>>> The same problem for one zone GKE cluster or multi-zone one too.
>>>>>>>>
>>>>>>>> I cannot get node-pool created if I specify the zone:
>>>>>>>> `gcloud container node-pools create ha-zone-c
>>>>>>>> --cluster=dev-cluster-1 --machine-type=g1-small --disk-size=50
>>>>>>>> --num-nodes=1 --zone europe-west1-c`
>>>>>>>> I get this error:
>>>>>>>> `ERROR: (gcloud.container.node-pools.create) ResponseError:
>>>>>>>> code=404, message=The resource
>>>>>>>> "projects/my_project/zones/europe-west1-c/clusters/dev-cluster-1" was 
>>>>>>>> not
>>>>>>>> found`
>>>>>>>>
>>>>>>>> Have the latest k8s v1.2.4 in GKE clusters and the latest GC SDK as
>>>>>>>> well.
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>>
>>>>>>>> Rimas
>>>>>>>>
>>>>>>>> --
>>>>>>>> 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.
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>> 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.
>>>>>>
>>>>>
>>>>> --
>>>> 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.
>>>>
>>>
>>> --
> 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.
>

-- 
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