mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
26 lines
897 B
Plaintext
26 lines
897 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * virt/install/virt-specifying-nodes-for-virtualization-components.adoc
|
|
|
|
[id="virt-example-node-placement-node-selector-olm-subscription_{context}"]
|
|
= Example: Node placement with nodeSelector in the OLM Subscription object
|
|
|
|
In this example, `nodeSelector` is configured so that OLM places the {VirtProductName} Operators on nodes that are labeled with `example.io/example-infra-key = example-infra-value`.
|
|
|
|
[source,yaml,subs="attributes+"]
|
|
----
|
|
apiVersion: operators.coreos.com/v1beta1
|
|
kind: Subscription
|
|
metadata:
|
|
name: hco-operatorhub
|
|
namespace: openshift-cnv
|
|
spec:
|
|
source: redhat-operators
|
|
sourceNamespace: openshift-marketplace
|
|
name: kubevirt-hyperconverged
|
|
startingCSV: kubevirt-hyperconverged-operator.v{HCOVersion}
|
|
channel: "stable"
|
|
config:
|
|
nodeSelector:
|
|
example.io/example-infra-key: example-infra-value
|
|
---- |