Create the ClusterPodPlacementConfig object by using the CLI
To deploy the pod placement operand that enables architecture-aware workload scheduling, you can create the ClusterPodPlacementConfig object by using the OpenShift CLI (oc).
Prerequisites
-
You have installed the OpenShift CLI (
oc). -
You have logged in to
ocas a user withcluster-adminprivileges. -
You have installed the Multiarch Tuning Operator.
Procedure
-
Create a
ClusterPodPlacementConfigobject YAML file:ExampleClusterPodPlacementConfigobject configurationapiVersion: multiarch.openshift.io/v1beta1 kind: ClusterPodPlacementConfig metadata: name: cluster spec: logVerbosityLevel: Normal namespaceSelector: matchExpressions: - key: multiarch.openshift.io/exclude-pod-placement operator: DoesNotExist plugins: nodeAffinityScoring: enabled: true platforms: - architecture: amd64 weight: 100 - architecture: arm64 weight: 50 -
Create the
ClusterPodPlacementConfigobject by running the following command:$ oc create -f <file_name>Replace
<file_name>with the name of theClusterPodPlacementConfigobject YAML file.
Verification
-
To check that the
ClusterPodPlacementConfigobject is created, run the following command:$ oc get clusterpodplacementconfigExample outputNAME AGE cluster 29s