To override the default node selectors (that are set for the entire environment in #1 above), the administrator can set the above value as an empty string (“”) for a project namespace. In such projects the defaults won’t apply.
3. Adding NodeSelectors to a DeploymentConfig
A developer or a deployer can make specific components to deploy on specific nodes by adding node selectors to a deployment configuration.
#oc edit dc <deploymentConfigName> -o json
find the section “spec” under “template” and add node selector section
#oc get template <templatename> -n openshift > filename.json
Edit the json file and add the nodeselectors like how you did for the deployment configuration in #3 above. Also change the template name and namespace values in the metadata section at the beginning of the template.Save the json file.
We are on a constant mission to improve virtualization experiences in OpenShift. In OpenShift 4.9, we are introducing new features to improve how you use OpenShift Virtualization to accomplish your ...
Today, I am pleased to announce the general availability of Red Hat OpenShift 4.9. While this blog provides an overview of the features, functions, and benefits, the OpenShift 4.9 press release about ...