mirror of https://github.com/kubernetes/kops.git
Add --post-drain-delay to rolling-update cluster command
This commit is contained in:
parent
ecf280a070
commit
f66a2abc40
|
@ -181,6 +181,7 @@ func NewCmdRollingUpdateCluster(f *util.Factory, out io.Writer) *cobra.Command {
|
|||
cmd.Flags().DurationVar(&options.MasterInterval, "master-interval", options.MasterInterval, "Time to wait between restarting masters")
|
||||
cmd.Flags().DurationVar(&options.NodeInterval, "node-interval", options.NodeInterval, "Time to wait between restarting nodes")
|
||||
cmd.Flags().DurationVar(&options.BastionInterval, "bastion-interval", options.BastionInterval, "Time to wait between restarting bastions")
|
||||
cmd.Flags().DurationVar(&options.PostDrainDelay, "post-drain-delay", options.PostDrainDelay, "Time to wait after draining each node")
|
||||
cmd.Flags().BoolVarP(&options.Interactive, "interactive", "i", options.Interactive, "Prompt to continue after each instance is updated")
|
||||
cmd.Flags().StringSliceVar(&options.InstanceGroups, "instance-group", options.InstanceGroups, "List of instance groups to update (defaults to all if not specified)")
|
||||
cmd.Flags().StringSliceVar(&options.InstanceGroupRoles, "instance-group-roles", options.InstanceGroupRoles, "If specified, only instance groups of the specified role will be updated (e.g. Master,Node,Bastion)")
|
||||
|
|
|
@ -78,6 +78,7 @@ kops rolling-update cluster [flags]
|
|||
-i, --interactive Prompt to continue after each instance is updated
|
||||
--master-interval duration Time to wait between restarting masters (default 5m0s)
|
||||
--node-interval duration Time to wait between restarting nodes (default 4m0s)
|
||||
--post-drain-delay duration Time to wait after draining each node (default 1m30s)
|
||||
--validation-timeout duration Maximum time to wait for a cluster to validate (default 5m0s)
|
||||
-y, --yes Perform rolling update immediately, without --yes rolling-update executes a dry-run
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue