docs: add some notes about 'k3d start cluster --wait --timeout'

pull/252/head
iwilltry42 4 years ago
parent 99f5a6884a
commit 5afa25154c
No known key found for this signature in database
GPG Key ID: 7BA57AD1CFF16110
  1. 4
      cmd/start/startCluster.go
  2. 2
      docs/usage/commands.md

@ -60,8 +60,8 @@ func NewCmdStartCluster() *cobra.Command {
// add flags
cmd.Flags().BoolP("all", "a", false, "Start all existing clusters")
cmd.Flags().BoolVar(&startClusterOpts.WaitForMaster, "wait", false, "Wait for the master(s) to be ready before returning.")
cmd.Flags().DurationVar(&startClusterOpts.Timeout, "timeout", 0*time.Second, "Rollback changes if cluster couldn't be created in specified duration.")
cmd.Flags().BoolVar(&startClusterOpts.WaitForMaster, "wait", false, "Wait for the master(s) (and loadbalancer) to be ready before returning.")
cmd.Flags().DurationVar(&startClusterOpts.Timeout, "timeout", 0*time.Second, "Maximum waiting time for '--wait' before canceling/returning.")
// add subcommands

@ -33,6 +33,8 @@ k3d
start
cluster CLUSTERNAME # start a (stopped) cluster
-a, --all # start all clusters
--wait # wait for all masters and master-loadbalancer to be up before returning
--timeout # maximum waiting time for '--wait' before canceling/returning
node NODENAME # start a (stopped) node
stop
cluster CLUSTERNAME # stop a cluster

Loading…
Cancel
Save