You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: cmd/kops/rollingupdatecluster.go
+32-25
Original file line number
Diff line number
Diff line change
@@ -45,32 +45,50 @@ var (
45
45
rollingupdate_long=pretty.LongDesc(i18n.T(`
46
46
This command updates a kubernetes cluster to match the cloud, and kops specifications.
47
47
48
-
To perform rolling update, you need to update the cloud resources first with "kops update cluster"
49
-
50
-
Note: terraform users will need run the following commands all from the same directory "kops update cluster --target=terraform" then "terraform plan" then "terraform apply"
51
-
prior to running "kops rolling-update cluster"
52
-
53
-
Use `+pretty.Bash("export KOPS_FEATURE_FLAGS=\"+DrainAndValidateRollingUpdate\"") +` to use beta code that drains the nodes
54
-
and validates the cluster. New flags for Drain and Validation operations will be shown when
55
-
the environment variable is set.`))
48
+
To perform rolling update, you need to update the cloud resources first with the command
49
+
`+pretty.Bash("kops update cluster") +`.
50
+
51
+
If rolling-update does not report that the cluster needs to be rolled you can force the cluster to be
52
+
rolled with the force flag. Rolling update drains and validates the cluster by default. A cluster is
53
+
deemed validated when all required nodes are running, and all pods in the kube-system namespace are operational.
54
+
When a node is deleted rolling-update sleeps the interval for the node type, and the tries for the same period
55
+
of time for the cluster to be validated. For instance setting --master-interval=3m causes rolling-update
56
+
to wait for 3m after a master is rolled, and another 3m for the cluster to stabilize and pass
57
+
validation.
58
+
59
+
Note: terraform users will need run the following commands all from the same directory
cmd.Flags().BoolVar(&options.FailOnDrainError, "fail-on-drain-error", true, "The rolling-update will fail if draining a node fails.")
154
168
cmd.Flags().BoolVar(&options.FailOnValidate, "fail-on-validate-error", true, "The rolling-update will fail if the cluster fails to validate.")
155
-
cmd.Flags().IntVar(&options.ValidateRetries, "validate-retries", options.ValidateRetries, "The number of times that a node will be validated. Between validation kops sleeps the master-interval/2 or node-interval/2 duration.")
156
-
cmd.Flags().DurationVar(&options.DrainInterval, "drain-interval", options.DrainInterval, "The duration that a rolling-update will wait after the node is drained.")
0 commit comments