Skip to content

Clusters.Create

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

Create a cluster.

Parameters

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.

Returns

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

Type to search…