vcluster_create
Create a new virtual cluster with a specific name. Use custom values, upgrade existing clusters, or specify a kubeconfig for advanced configuration.
Instructions
Create a new vcluster.
This function creates a new vcluster with the specified name. Optionally, you can provide a values file to customize the vcluster configuration during creation. If the upgrade parameter is set to True, the cluster will be upgraded if it was created before.
Args: name: The name for the new vcluster. values: Optional path to a values file for vcluster configuration. upgrade: Optional flag to upgrade the cluster if it was created before. kubeconfig_path: Optional path to a kubeconfig file. If not provided, the default kubeconfig from the environment will be used.
Returns: Union[CommandResult, str]: CommandResult on success, or error object if failed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| values | No | ||
| upgrade | No | ||
| kubeconfig_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |