$ oc patch operatorhub cluster -p '{"spec": {"disableAllDefaultSources": true}}' --type=merge
When a grpc type catalog source defines the spec.image field, the Catalog Operator creates a pod to serve that image.
By default, the pod specification configures the following default settings:
Node selector: kubernetes.io/os=linux
Priority class name: system-cluster-critical
Tolerations: None
As an administrator, you can override these defaults by configuring fields in the optional spec.grpcPodConfig section of the CatalogSource object.
|
The Marketplace Operator, To apply persistent changes to |
You can make persistent local changes to a CatalogSource object by disabling the default CatalogSource object. Otherwise, the Marketplace Operator automatically reverts any manual modifications to fields in the spec.grpcPodConfig section.
The Marketplace Operator, openshift-marketplace, manages the default custom resources (CRs) of the OperatorHub. The OperatorHub manages CatalogSource objects.
To apply persistent changes to CatalogSource object, you must first disable a default CatalogSource object.
To disable all the default CatalogSource objects at a local level, enter the following command:
$ oc patch operatorhub cluster -p '{"spec": {"disableAllDefaultSources": true}}' --type=merge
|
You can also configure the default |
To control which nodes run catalog source pods, you can override the default node selector in the spec.grpcPodConfig section of the CatalogSource object.
A CatalogSource object of source type grpc with spec.image is defined.
Edit the CatalogSource object and add or modify the spec.grpcPodConfig section to include the following:
grpcPodConfig:
nodeSelector:
custom_label: <label>
where <label> is the label for the node selector that you want catalog source pods to use for scheduling.
To control the scheduling priority of catalog source pods, you can override the default priority class name in the spec.grpcPodConfig section of the CatalogSource object.
A CatalogSource object of source type grpc with a defined spec.image.
Edit the CatalogSource object and configure the spec.grpcPodConfig section, similar to the following example:
grpcPodConfig:
priorityClassName: <priority_class>
where:
<priority_class>Specifies one of the following priority classes:
A default Kubernetes priority class, such as system-cluster-critical or system-node-critical
An empty string ("") to assign the default priority
A custom, pre-existing priority class name
|
Previously, the only pod scheduling parameter that could be overriden was
If a |
To allow catalog source pods to schedule onto nodes with matching taints, you can override the default tolerations in the spec.grpcPodConfig section of the CatalogSource object.
A CatalogSource object of source type grpc with spec.image is defined.
Edit the CatalogSource object and add or modify the spec.grpcPodConfig section to include the following:
grpcPodConfig:
tolerations:
- key: "<key_name>"
operator: "<operator_type>"
value: "<value>"
effect: "<effect>"