config/sysinv/cgts-client
Ramesh Kumar Sivanandam 8b591b5a80 Add support for "cordon" and "uncordon" to sysinv
This change provides two system commands: 'system kube-host-cordon'
and 'system kube-host-uncordon'. The "system kube-host-cordon
<host-name>" command will evict the regular pods from the host.
This command will not evict the mirror and daemon set-managed pods.

The "system kube-host-uncordon <host-name>" command will
allow the regular pods on the host again.

These system commands will be used during K8s version upgrade on
AIO-SX and in the following sequence:
 - system kube-upgrade-start <target-version>
 - system kube-upgrade-download-images
 - system kube-upgrade-networking
 - system kube-host-cordon controller-0
 - system kube-host-upgrade controller-0 control-plane
 - system kube-host-upgrade controller-0 kubelet
 - system kube-host-uncordon controller-0
 - system kube-upgrade-complete
 - system kube-upgrade-delete

Test Plan: Debian
PASS: Fresh install ISO as AIO-SX. Successfully upgraded
      from 1.23.1 to 1.24 using the manual K8s upgrade.
      After executing cordon system command some of the pods went to
      the 'Pending' status. After executing uncordon system command
      pending pods are return to 'Running' status.
      Used the command 'kubectl get pods -n <namespace>' to verify
      the status before and after executing the cordon and uncordon.

Story: 2010565
Task: 47825

Change-Id: Ia07e1ec3e4f955f3b6dd1ea6084b9682b3f09acd
Signed-off-by: Ramesh Kumar Sivanandam <rameshkumar.sivanandam@windriver.com>
2023-05-10 10:30:13 -04:00
..
centos Python 2 to Python 3 compatibility 2021-04-16 07:09:21 -04:00
cgts-client Add support for "cordon" and "uncordon" to sysinv 2023-05-10 10:30:13 -04:00
debian Update debian package versions to use git commits 2023-02-10 20:11:06 +00:00
opensuse Python 2 to Python 3 compatibility 2021-04-16 07:09:21 -04:00
.gitignore StarlingX open source release updates 2018-05-31 07:35:52 -07:00
PKG-INFO StarlingX open source release updates 2018-05-31 07:35:52 -07:00