@@ -200,7 +200,7 @@ func (d *deployer) createCluster(zones []string, adminAccess string, yes bool) e
200200 }
201201 args = appendIfUnset (args , "--admin-access" , adminAccess )
202202
203- // Dont set --master -count if either --control-plane-count or --master-count
203+ // Dont set --control-plane -count if either --control-plane-count or --master-count
204204 // has been provided in --create-args
205205 foundCPCount := false
206206 for _ , existingArg := range args {
@@ -211,27 +211,27 @@ func (d *deployer) createCluster(zones []string, adminAccess string, yes bool) e
211211 }
212212 }
213213 if ! foundCPCount {
214- args = appendIfUnset (args , "--master -count" , fmt .Sprintf ("%d" , d .ControlPlaneCount ))
214+ args = appendIfUnset (args , "--control-plane -count" , fmt .Sprintf ("%d" , d .ControlPlaneCount ))
215215 }
216216
217217 switch d .CloudProvider {
218218 case "aws" :
219219 if isArm {
220- args = appendIfUnset (args , "--master -size" , "c6g.large" )
220+ args = appendIfUnset (args , "--control-plane -size" , "c6g.large" )
221221 args = appendIfUnset (args , "--node-size" , "c6g.large" )
222222 } else {
223- args = appendIfUnset (args , "--master -size" , "c5.large" )
223+ args = appendIfUnset (args , "--control-plane -size" , "c5.large" )
224224 }
225225 case "azure" :
226226 // Use SKUs for which there is enough quota
227227 args = appendIfUnset (args , "--control-plane-size" , "Standard_D4s_v3" )
228228 args = appendIfUnset (args , "--node-size" , "Standard_D2s_v3" )
229229 case "gce" :
230230 if isArm {
231- args = appendIfUnset (args , "--master -size" , "t2a-standard-2" )
231+ args = appendIfUnset (args , "--control-plane -size" , "t2a-standard-2" )
232232 args = appendIfUnset (args , "--node-size" , "t2a-standard-2" )
233233 } else {
234- args = appendIfUnset (args , "--master -size" , "e2-standard-2" )
234+ args = appendIfUnset (args , "--control-plane -size" , "e2-standard-2" )
235235 args = appendIfUnset (args , "--node-size" , "e2-standard-2" )
236236 }
237237 if d .GCPProject != "" {
@@ -244,11 +244,11 @@ func (d *deployer) createCluster(zones []string, adminAccess string, yes bool) e
244244 // We used to set the --vpc flag to split clusters into different networks, this is now the default.
245245 // args = appendIfUnset(args, "--vpc", strings.Split(d.ClusterName, ".")[0])
246246 case "digitalocean" :
247- args = appendIfUnset (args , "--master -size" , "c2-16vcpu-32gb" )
247+ args = appendIfUnset (args , "--control-plane -size" , "c2-16vcpu-32gb" )
248248 args = appendIfUnset (args , "--node-size" , "c2-16vcpu-32gb" )
249249 }
250250
251- args = appendIfUnset (args , "--master -volume-size" , "48" )
251+ args = appendIfUnset (args , "--control-plane -volume-size" , "48" )
252252 args = appendIfUnset (args , "--node-count" , "4" )
253253 args = appendIfUnset (args , "--node-volume-size" , "48" )
254254 args = appendIfUnset (args , "--zones" , strings .Join (zones , "," ))
0 commit comments