mirror of https://github.com/kubernetes/kops.git
upup: allow master-size to be specified through CLI
This commit is contained in:
parent
53e4875a5b
commit
7006746be4
|
|
@ -57,6 +57,9 @@ func main() {
|
|||
nodeSize := ""
|
||||
flag.StringVar(&nodeSize, "node-size", nodeSize, "Set instance size for nodes")
|
||||
|
||||
masterSize := ""
|
||||
flag.StringVar(&masterSize, "master-size", masterSize, "Set instance size for masters")
|
||||
|
||||
nodeCount := 0
|
||||
flag.IntVar(&nodeCount, "node-count", nodeCount, "Set the number of nodes")
|
||||
|
||||
|
|
@ -79,6 +82,10 @@ func main() {
|
|||
config.NodeCount = nodeCount
|
||||
}
|
||||
|
||||
if masterSize != "" {
|
||||
config.MasterMachineType = masterSize
|
||||
}
|
||||
|
||||
if dnsZone != "" {
|
||||
config.DNSZone = dnsZone
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue