After provisioning, you can set your deployment to use dedicated nodes.
Procedure
- Run the following command to patch your db2ucluster:
oc patch db2ucluster <instance_id> -n ${PROJECT_CPD_INST_OPERANDS} --type merge -p '{"spec":{"affinity":{"nodeAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":{"nodeSelectorTerms":[{"matchExpressions":[{"key":"icp4data","operator":"In","values":["<label_name>"]}]}]}}},"tolerations":[{"effect":"NoSchedule","key":"icp4data","operator":"Equal","value":"<dedicated_specifier>"}]}}'
- Run the following commands to verify that the deployment is now using dedicated
nodes:
oc get sts c-<instance_id>-db2u -n ${PROJECT_CPD_INST_OPERANDS} -oyaml | grep <dedicated_specifier>
oc get sts c-<instance_id>-etcd -n ${PROJECT_CPD_INST_OPERANDS} -oyaml | grep <dedicated_specifier>
Refer
to the following example
output:
value: <dedicated_specifier>
Where
<dedicated_specifier> is the assigned label of the node dedicated to the
deployment.