Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 15 additions & 14 deletions modules/hcp-import-manual-aws.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,37 +24,37 @@ metadata:
labels:
cloud: auto-detect
cluster.open-cluster-management.io/clusterset: default
name: <cluster_name>
name: <hosted_cluster_name> <1>
vendor: OpenShift
name: <cluster_name>
name: <hosted_cluster_name>
spec:
hubAcceptsClient: true
leaseDurationSeconds: 60
----
+
Replace `<cluster_name>` with the name of your hosted cluster.
<1> Replace `<hosted_cluster_name>` with the name of your hosted cluster.

. Run the following command to apply the resource:
+
[source,terminal]
----
$ oc apply -f <file_name>
$ oc apply -f <file_name> <1>
----
+
Replace `<file_name>` with the YAML file name you created in the previous step.
<1> Replace `<file_name>` with the YAML file name you created in the previous step.

. If you have Red{nbsp}Hat Advanced Cluster Management installed, create your `KlusterletAddonConfig` resource by using the following sample YAML file. If you have installed {mce-short} only, skip this step:
. If you have {rh-rhacm-title} installed, create your `KlusterletAddonConfig` resource by using the following sample YAML file. If you have installed {mce-short} only, skip this step:
+
[source,yaml]
----
apiVersion: agent.open-cluster-management.io/v1
kind: KlusterletAddonConfig
metadata:
name: <cluster_name>
namespace: <cluster_name>
name: <hosted_cluster_name> <1>
namespace: <hosted_cluster_namespace> <2>
spec:
clusterName: <cluster_name>
clusterNamespace: <cluster_name>
clusterName: <hosted_cluster_name>
clusterNamespace: <hosted_cluster_namespace>
clusterLabels:
cloud: auto-detect
vendor: auto-detect
Expand All @@ -70,20 +70,21 @@ spec:
enabled: false
----
+
Replace `<cluster_name>` with the name of your hosted cluster.
<1> Replace `<hosted_cluster_name>` with the name of your hosted cluster.
<2> Replace `<hosted_cluster_namespace>` with the name of your hosted cluster namespace.

. Run the following command to apply the resource:
+
[source,terminal]
----
$ oc apply -f <file_name>
$ oc apply -f <file_name> <1>
----
+
Replace `<file_name>` with the YAML file name you created in the previous step.
<1> Replace `<file_name>` with the YAML file name you created in the previous step.

. After the import process is complete, your hosted cluster becomes visible in the console. You can also check the status of your hosted cluster by running the following command:
+
[source,terminal]
----
$ oc get managedcluster <cluster_name>
$ oc get managedcluster <hosted_cluster_name>
----