talos/docs/osctl/osctl_cluster_create.md
Andrey Smirnov ebd40bd0eb chore: use osctl cluster --wait in basic-integration
There are few workarounds for Drone way of running integration test:
DinD runs as a separate pod, and we can only access its exposed on the
"host" ports, while from Talos cluster this endpoint is not reachable.

So internally Talos nodes still use addresses like "10.5.0.2", while
test is using "docker" to access it (that's name of the `docker` service
in the pipeline).

When running locally, 127.0.0.1 is used as endpoint, which should work
fine both on OS X and Linux.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-12-30 15:15:42 -08:00

1.9 KiB

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")
      --endpoint string             use endpoint instead of provider defaults
  -h, --help                        help for create
      --image string                the image to use (default "docker.io/autonomy/talos:latest")
      --init-node-as-endpoint       use init node as endpoint instead of any load balancer endpoint
      --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
      --wait-timeout duration       timeout to wait for the cluster to be ready (default 20m0s)
      --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 - A collection of commands for managing local docker-based clusters