[Starlingx-discuss] [docs]Provide doc input for 2006781

Qi, Mingyuan mingyuan.qi at intel.com
Tue Mar 3 05:53:06 UTC 2020


Thanks Bart, all clear.

Mingyuan

From: Wensley, Barton <Barton.Wensley at windriver.com>
Sent: Friday, February 28, 2020 22:25
To: Qi, Mingyuan <mingyuan.qi at intel.com>; Wang, Jing (Angie) <Angie.Wang at windriver.com>; starlingx-discuss at lists.starlingx.io
Cc: Dale, Kristal <kristal.dale at intel.com>
Subject: RE: [docs]Provide doc input for 2006781

Good questions Mingyuan. Since I did the original design for k8s upgrades I'll reply to your questions (see below).

Bart

From: Qi, Mingyuan [mailto:mingyuan.qi at intel.com]
Sent: February 28, 2020 5:01 AM
To: Wang, Jing (Angie); starlingx-discuss at lists.starlingx.io<mailto:starlingx-discuss at lists.starlingx.io>
Cc: Dale, Kristal
Subject: Re: [Starlingx-discuss] [docs]Provide doc input for 2006781

Hi Angie,

The feature looks great that we can now upgrade the k8s cluster at runtime. Regarding the details, I and other folks have several questions that we didn't find clues in the doc. Could you please give us the info from designer's view?


  *   Why the upgrade complete cmd line needed? Any essential checks?
[Bart] This command does a final check to verify that all the k8s components are now running the new release and then updates the state to upgrade-complete.


  *   If the first master node upgrade completed on the active controller, that means the active control plane is upgraded to the new version. Then how to ensure the compatibility between upgraded controller plane and un-upgraded kubelet before step 12?
[Bart] The k8s version skew policy (https://kubernetes.io/docs/setup/release/version-skew-policy) specifies that the kubelet may be up to two minor versions older than the kube-apiserver. Any k8s upgrades done to StarlingX deployments must respect those rules.


  *   What will happen if some nodes restart unexpectedly between step 11 and 12?
[Bart] The kubelet on the node that restarts would come up running the new version, but would be reading the old format of the kubelet config file. This should be supported (new values in the config file will be defaulted). The user can still run the kube-host-upgrade command after this to upgrade the kubelet config file.


  *   How to deal with the certificates and keys of Kubernetes during upgrading?
[Bart] As mentioned in the spec (https://docs.starlingx.io/specs/specs/stx-4.0/approved/containerization-2006781-kubernetes-upgrades.html), we are using the kubeadm command to perform the upgrade. It will take care of anything certificate and key related.


  *   Is upgrade rollback supported regardless the upgrade completion?
[Bart] There is no support for rollback. I'm not sure if we will add this in the future - the general consensus in the k8s community is that k8s downgrades are not supported.


  *   Is kubelet/kubectl patch marked as in-service patch or reboot-required patch?
[Bart] It is an in-service patch.


  *   Why lock/unlock is needed to upgrade kubelet? Is there a way to avoid that? Since this will impact the running pods on all nodes.
[Bart] It is not safe to upgrade the kubelet while there are pods running on the node. The lock will move the pods off the node. In the future, when we add orchestration of k8s upgrades (with the VIM), we will likely add support to move the pods off the node without locking it, which would avoid the reboot of the node when the kubelet was upgraded.

Thanks,
Mingyuan

From: Wang, Jing (Angie) <Angie.Wang at windriver.com<mailto:Angie.Wang at windriver.com>>
Sent: Thursday, February 27, 2020 23:17
To: starlingx-discuss at lists.starlingx.io<mailto:starlingx-discuss at lists.starlingx.io>
Cc: Dale, Kristal <kristal.dale at intel.com<mailto:kristal.dale at intel.com>>
Subject: [Starlingx-discuss] [docs]Provide doc input for 2006781

Hi All,

The attached file is the documentation changes required for the story "Kubernetes upgrade support in StarlingX" (https://storyboard.openstack.org/#!/story/2006781).

Thanks,
Angie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20200303/078d1a36/attachment-0001.html>


More information about the Starlingx-discuss mailing list