charmed-kubernetes / kubernetes-docs

This repository contains the development version of docs for Charmed Kubernetes
7 stars 52 forks source link

Fix the upgrade steps doc - Upgrade/refresh charm channel #796

Closed pedrofragola closed 11 months ago

pedrofragola commented 12 months ago

The doc[0] uses the sequence below to upgrade from 1.26 to 1.27

juju upgrade-charm kubernetes-control-plane
juju config kubernetes-control-plane channel=1.25/stable

It's important to add the step to upgrade the charm channel

juju refresh kubernetes-control-plane --channel=1.27/stable

Also changing the channel to 1.27 instead 1.25

Note: it's necessary to add the step to upgrade all charms channel.

[0] https://ubuntu.com/kubernetes/docs/1.27/upgrading

kwmonroe commented 12 months ago

Thanks for the report and solution!

Fwiw, this stems from a time when charms didn't have named tracks and so upgrade-charm was good enough to ensure the latest charms were deployed. Refreshing to a new named track is now the right way to go; this fix will help prevent bugs like lp:2017353. huzzah!

addyess commented 12 months ago

https://github.com/charmed-kubernetes/kubernetes-docs/pull/797