Skip to content

Commit

Permalink
Add more details and update updates_and_upgrades.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rifelpet committed Jan 9, 2025
1 parent 46ea30d commit ae625a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/operations/updates_and_upgrades.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,14 @@ It is recommended to run the latest version of kOps to ensure compatibility with
In future the upgrade step will likely perform the update immediately (and possibly even without a
node restart), but currently you must:

For kOps 1.31 and newer, run `kops reconcile cluster $NAME --yes`

For older kOps versions, run:
* `kops update cluster $NAME` to preview, then `kops update cluster $NAME --yes`
* `kops rolling-update cluster $NAME` to preview, then `kops rolling-update cluster $NAME --yes`

For more detail about the command change in kOps 1.31, see [docs/tutorial/upgrading-kubernetes.md](/docs/tutorial/upgrading-kubernetes.md).

Upgrade uses the latest Kubernetes version considered stable by kOps, defined in `https://github.com/kubernetes/kops/blob/master/channels/stable`.


Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/upgrading-kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Kops' upgrade procedure has hostorically risked violating the [Kubelet version skew policy](https://kubernetes.io/releases/version-skew-policy/#kubelet). Between `kops update cluster --yes` and every kube-apiserver being rotated with `kops rolling-update cluster --yes`, newly launched nodes running new kubelet versions could be connecting to older `kube-apiserver` nodes.

**Violating this policy when upgrading to Kubernetes 1.31 can cause newer kubelets to crash.**
**Violating this policy when upgrading to Kubernetes 1.31 can cause newer kubelets to crash.** [This kubernetes issue](https://github.com/kubernetes/kubernetes/issues/127316) provides details though it was not addressed because the change does not actually violate the version skew policy, it merely breaks tooling that was already violating the policy.

To upgrade a cluster to Kubernetes 1.31 or newer, use the new `kops reconcile cluster` command introduced in Kops 1.31. This replaces both `kops update cluster --yes` and `kops rolling-update cluster --yes`.

Expand Down

0 comments on commit ae625a6

Please sign in to comment.