GoogleCloudPlatform / deploymentmanager-samples

Deployment Manager samples and templates.
Apache License 2.0
934 stars 716 forks source link

(feature): Specify GKE version and Machine Type (resources) when creating a GKE Cluster using cluster.py #530

Open carolynhu opened 4 years ago

carolynhu commented 4 years ago

Hello there. I'm using this script https://github.com/GoogleCloudPlatform/deploymentmanager-samples/blob/master/examples/v2/gke/python/cluster.py#L31 to create a GKE Cluster.

I get a cluster with

I want to ask is there a way that I can specify the above two parameters? Or this is by default? If by default, could we add this feature to make the two fields configurable?

Thanks very much!

ocsig commented 4 years ago

Hi @carolynhu, First of all let me recommend you to use or at least take a look at the Cloud Foundation Toolkit GKE template, it may solves some of your future questions. It supports initialClusterVersion and nodeConfig.machineType which is your first and last request.

I was looking for Master Zone and I may misunderstand what you are looking for. Based on my understanding your cluster is either Zonal and then the master is in the same zone as your cluster or regional, then GKE replicate cluster masters across multiple zones within in a single region.