talos/docs/osctl/osctl_cluster_create.md
Andrey Smirnov 0081ac5fac refactor: extract Talos cluster provisioner as common code
This extracts Docker Talos cluster provisioner as common code
which might be shared between `osctl cluster` and integration-test.

There should be almost no functional changes.

As proof of concept, abstract cluster readiness checks were implemented
based on provisioned cluster state. It implements same checks as
`basic-integration.sh` in pure Go via Talos/K8s clients.

`conditions` package was promoted from machined-internal to
`internal/pkg` as it is used to run the checks.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-12-27 12:14:19 -08:00

43 lines
1.6 KiB
Markdown

<!-- markdownlint-disable -->
## osctl cluster create
Creates a local docker-based kubernetes cluster
### Synopsis
Creates a local docker-based kubernetes cluster
```
osctl cluster create [flags]
```
### Options
```
--cidr string CIDR of the docker bridge network (default "10.5.0.0/24")
--cpus string the share of CPUs as fraction (each container) (default "1.5")
-h, --help help for create
--image string the image to use (default "docker.io/autonomy/talos:latest")
--kubernetes-version string desired kubernetes version to run (default "1.17.0")
--masters int the number of masters to create (default 1)
--memory int the limit on memory usage in MB (each container) (default 1024)
--mtu int MTU of the docker bridge network (default 1500)
--wait wait for the cluster to be ready before returning
--workers int the number of workers to create (default 1)
```
### Options inherited from parent commands
```
--context string Context to be used in command
-e, --endpoints strings override default endpoints in Talos configuration
--name string the name of the cluster (default "talos-default")
-n, --nodes strings target the specified nodes
--talosconfig string The path to the Talos configuration file (default "/home/user/.talos/config")
```
### SEE ALSO
* [osctl cluster](osctl_cluster.md) - A collection of commands for managing local docker-based clusters