You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -66,6 +75,10 @@ You can specify the worker server type as in cluster create.`,
66
75
log.Fatal("master not found")
67
76
}
68
77
78
+
ifcloudInit!="" {
79
+
cluster.CloudInitFile=cloudInit
80
+
}
81
+
69
82
maxNo:=0
70
83
for_, node:=rangecluster.Nodes {
71
84
if!node.IsMaster {
@@ -133,4 +146,5 @@ func init() {
133
146
clusterAddWorkerCmd.Flags().String("worker-server-type", "cx11", "Server type used of workers")
134
147
clusterAddWorkerCmd.Flags().IntP("nodes", "n", 2, "Number of nodes for the cluster")
135
148
clusterAddWorkerCmd.Flags().StringSlice("datacenters", []string{"fsn1-dc8", "nbg1-dc3", "hel1-dc2", "fsn1-dc14"}, "Can be used to filter datacenters by their name")
149
+
clusterAddWorkerCmd.Flags().StringP("cloud-init", "", "", "Cloud-init file for node preconfiguration")
0 commit comments