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-enable-manual-addon.adoc

50 lines
1.6 KiB
Plaintext
Raw Normal View History

// Module included in the following assemblies:
// * hosted-control-planes/hcp-prepare/hcp-enable-disable.adoc
:_mod-docs-content-type: PROCEDURE
[id="hcp-enable-manual-addon_{context}"]
= Manually enabling the hypershift-addon managed cluster add-on for local-cluster
2025-01-16 18:00:28 +05:30
Enabling the {hcp} feature automatically enables the `hypershift-addon` managed cluster add-on. If you need to enable the `hypershift-addon` managed cluster add-on manually, complete the following steps to use the `hypershift-addon` to install the HyperShift Operator on `local-cluster`.
.Procedure
2025-01-16 18:00:28 +05:30
. Create the `ManagedClusterAddon` add-on named `hypershift-addon` by creating a file that resembles the following example:
+
[source,yaml]
----
apiVersion: addon.open-cluster-management.io/v1alpha1
kind: ManagedClusterAddOn
metadata:
name: hypershift-addon
2025-01-16 18:00:28 +05:30
namespace: local-cluster
spec:
installNamespace: open-cluster-management-agent-addon
----
. Apply the file by running the following command:
+
[source,terminal]
----
$ oc apply -f <filename>
----
+
2025-01-16 18:00:28 +05:30
Replace `filename` with the name of the file that you created.
2025-01-16 18:00:28 +05:30
. Confirm that the `hypershift-addon` managed cluster add-on is installed by running the following command:
+
[source,terminal]
----
$ oc get managedclusteraddons -n local-cluster hypershift-addon
----
+
If the add-on is installed, the output resembles the following example:
+
[source,terminal]
----
NAME AVAILABLE DEGRADED PROGRESSING
hypershift-addon True
----
2025-01-16 18:00:28 +05:30
Your `hypershift-addon` managed cluster add-on is installed and the hosting cluster is available to create and manage hosted clusters.