Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions cloudstack/resource_cloudstack_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ func resourceCloudStackKubernetesCluster() *schema.Resource {
Optional: true,
ForceNew: true,
},

"noderootdisksize": {
Type: schema.TypeInt,
Optional: true,
Default: 8,
},
},
}
}
Expand Down Expand Up @@ -171,6 +177,9 @@ func resourceCloudStackKubernetesClusterCreate(d *schema.ResourceData, meta inte
if controlNodesSize, ok := d.GetOk("control_nodes_size"); ok {
p.SetControlnodes(int64(controlNodesSize.(int)))
}
if noderootdisksize, ok := d.GetOk("noderootdisksize"); ok {
p.SetNoderootdisksize(int64(noderootdisksize.(int)))
}

// If there is a project supplied, we retrieve and set the project id
if err := setProjectid(p, cs, d); err != nil {
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/kubernetes_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ The following arguments are supported:
* `ip_address` - (Computed) The IP address of the Kubernetes cluster.
* `state` - (Optional) The state of the Kubernetes cluster. Defaults to `"Running"`.
* `project` - (Optional) The project to assign the Kubernetes cluster to.
* `noderootdisksize` - (Optional) root disk size in GB for each node.

## Attributes Reference

Expand Down