mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
66 lines
1.7 KiB
Plaintext
66 lines
1.7 KiB
Plaintext
//Module included in the following assemblies
|
|
//
|
|
//post_installation_configuration/multiarch-tuning-operator.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="multi-architecture-creating-podplacement-config-using-cli_{context}"]
|
|
= Creating 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 {oc-first}.
|
|
|
|
.Prerequisites
|
|
|
|
* You have installed `oc`.
|
|
* You have logged in to `oc` as a user with `cluster-admin` privileges.
|
|
* You have installed the Multiarch Tuning Operator.
|
|
|
|
.Procedure
|
|
|
|
. Create a `ClusterPodPlacementConfig` object YAML file:
|
|
+
|
|
.Example `ClusterPodPlacementConfig` object configuration
|
|
[source,yaml]
|
|
----
|
|
apiVersion: 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 `ClusterPodPlacementConfig` object by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc create -f <file_name> <1>
|
|
----
|
|
<1> Replace `<file_name>` with the name of the `ClusterPodPlacementConfig` object YAML file.
|
|
|
|
.Verification
|
|
|
|
* To check that the `ClusterPodPlacementConfig` object is created, run the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc get clusterpodplacementconfig
|
|
----
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
NAME AGE
|
|
cluster 29s
|
|
---- |