
Simplify install doc dir structure - Remove r6 directory - Rename r7 directory to be non release-specific - Delete unused files - Delete obsolete include files - Delete obsolete commented sections in install topics - Remove redundent version menu entry Signed-off-by: Ron Stone <ronald.stone@windriver.com> Change-Id: I59634826d4b3af41410e9d26cc182f6b4aed8ade
2.5 KiB
Convert Worker Nodes
In a hybrid (Kubernetes and OpenStack) cluster scenario you may need
to convert worker nodes to/from
openstack-compute-nodes
.
- Convert a k8s-only worker into a OpenStack compute
Lock the worker host:
system host-lock <host>
Add the
openstack-compute-node
taint.kubectl taint nodes <kubernetes-node-name> openstack-compute-node:NoSchedule
Assign OpenStack labels:
system host-label-assign <host> --overwrite openstack-compute-node=enabled avs=enabled sriov=enabled
Allocate vswitch huge pages:
system host-memory-modify -1G 1 -f vswitch <host> 0 system host-memory-modify -1G 1 -f vswitch <host> 1
Change the class of the data network interface:
system host-if-modify -c data <host> <if_name_or_uuid>
Note
If data network interface does not exist yet, refer to documentation on creating it.
Change Kubernetes CPU Manager Policy to allow to use application cores:
system host-label-remove <host> kube-cpu-mgr-policy
Unlock the worker host:
system host-unlock <host>
- Convert a OpenStack compute into a k8s-only worker.
Lock the worker host:
system host-lock <host>
Remove OpenStack labels:
system host-label-remove <host> openstack-compute-node avs sriov
Note
The labels have to be removed, not to have its values changed.
Deallocate vswitch huge pages:
system host-memory-modify -1G 0 -f vswitch <host> 0 system host-memory-modify -1G 0 -f vswitch <host> 1
Change the class of the data network interface:
system host-if-modify -c none <host> <if_name_or_uuid>
Note
This change is needed to avoid raising a permanent alarm for the interface without the need to delete it.
Unlock the worker host:
system host-unlock <host>