1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/hcp-dc-addon.adoc
Martin Gencur f281db32b6 OCPBUGS-53162: Long command-line prompts not visible
This commit break long command-line prompts into multiple lines so that
the command is visible without scrolling.
2025-03-18 15:10:22 +00:00

42 lines
1.4 KiB
Plaintext

// Module included in the following assemblies:
//
// * hosted_control_planes/hcp-disconnected/hcp-dc-monitor.adoc
:_mod-docs-content-type: PROCEDURE
[id="hcp-dc-addon_{context}"]
= Configuring the hypershift-addon managed cluster add-on to run on an infrastructure node
By default, no node placement preference is specified for the `hypershift-addon` managed cluster add-on. Consider running the add-ons on the infrastructure nodes, because by doing so, you can prevent incurring billing costs against subscription counts and separate maintenance and management tasks.
.Procedure
. Log in to the hub cluster.
. Open the `hypershift-addon-deploy-config` add-on deployment configuration specification for editing by entering the following command:
+
[source,terminal]
----
$ oc edit addondeploymentconfig hypershift-addon-deploy-config \
-n multicluster-engine
----
. Add the `nodePlacement` field to the specification, as shown in the following example:
+
[source,yaml]
----
apiVersion: addon.open-cluster-management.io/v1alpha1
kind: AddOnDeploymentConfig
metadata:
name: hypershift-addon-deploy-config
namespace: multicluster-engine
spec:
nodePlacement:
nodeSelector:
node-role.kubernetes.io/infra: ""
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/infra
operator: Exists
----
. Save the changes. The `hypershift-addon` managed cluster add-on is deployed on an infrastructure node for new and existing managed clusters.