Skip to content

Clusters.Create

func (*ClusterClient) Create(
ctx context.Context,
name string,
options ...cluster.CreateOption,
) (*workflows.Cluster, error)

Create a cluster.

name string

A display name for the cluster.

cluster.WithDescription(description string) cluster.CreateOption

Optional cluster description.

cluster.WithSlug(slug string) cluster.CreateOption

Optional cluster slug. If omitted, Tilebox generates a slug from the cluster name.

The created cluster object, including its slug, name, description, whether it can be deleted, and deployed workflows.