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
feat(kubernetes): support storage customisation (#510)
Add support for customising storage tier and size for Kubernetes node
groups utilising GPU and Cloud Native plans.
Signed-off-by: Ville Vesilehto <ville.vesilehto@upcloud.com>
"Note: storage-size and storage-tier are only supported for Cloud Native (CLOUDNATIVE-*) and GPU (GPU-*) plans. Valid storage tiers: maxiops, standard, hdd.",
fs.StringVar(&p.Plan, "plan", "", "Server plan to use for nodes in the node group. Run `upctl server plans` to list all available plans.")
41
50
fs.StringArrayVar(&p.SSHKeys, "ssh-key", []string{}, "SSH keys to be configured as authorized keys to the nodes.")
42
51
fs.StringVar(&p.Storage, "storage", "", "Storage template to use when creating the nodes. Defaults to `UpCloud K8s` public template.")
52
+
fs.IntVar(&p.StorageSize, "storage-size", 0, fmt.Sprintf("Custom storage size in GiB. Only applicable for Cloud Native (%s*) and GPU (%s*) plans. If not specified, uses plan default.", CloudNativePlanPrefix, GPUPlanPrefix))
53
+
fs.StringVar(&p.StorageTier, "storage-tier", "", fmt.Sprintf("Storage tier (maxiops, standard, hdd). Only applicable for Cloud Native (%s*) and GPU (%s*) plans. If not specified, uses plan default.", CloudNativePlanPrefix, GPUPlanPrefix))
43
54
fs.StringArrayVar(&p.Taints, "taint", []string{}, "Taints to be configured to the nodes in `key=value:effect` format")
44
55
config.AddEnableOrDisableFlag(fs, &p.UtilityNetworkAccess, true, "utility-network-access", "utility network access. If disabled, nodes in this group will not have access to utility network")
errorMsg: "storage customization (--storage-size, --storage-tier) is only supported for Cloud Native (CLOUDNATIVE-*) and GPU (GPU-*) plans, got plan: 2xCPU-4GB",
0 commit comments