Skip to content

Commit a2812bb

Browse files
committed
[OSDOCS-18554]: CQA: HCP on AWS: Accessing a hosted cluster
1 parent b385867 commit a2812bb

3 files changed

Lines changed: 7 additions & 21 deletions

File tree

hosted_control_planes/hcp-deploy/hcp-deploy-aws.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ include::modules/hcp-aws-prepare.adoc[leveloffset=+1]
1717

1818
include::modules/hcp-aws-prereqs.adoc[leveloffset=+2]
1919

20-
include::modules/hcp-access-hc-aws-hcpcli.adoc[leveloffset=+1]
21-
2220
[role="_additional-resources"]
2321
.Additional resources
2422
* link:https://docs.redhat.com/en/documentation/red_hat_advanced_cluster_management_for_kubernetes/2.15/html/clusters/cluster_mce_overview#ansible-config-hosted-cluster[Configuring Ansible Automation Platform jobs to run on hosted clusters]
@@ -57,7 +55,9 @@ include::modules/hcp-aws-deploy-hc.adoc[leveloffset=+1]
5755
.Additional resources
5856
* xref:../../hosted_control_planes/hcp-deploy/hcp-deploy-aws.adoc#hcp-enable-arm-amd_hcp-deploy-aws[Running hosted clusters on an ARM64 architecture]
5957
60-
include::modules/hcp-access-hc-aws.adoc[leveloffset=+2]
58+
include::modules/hcp-access-hc-aws.adoc[leveloffset=+1]
59+
60+
include::modules/hcp-access-hc-aws-hcpcli.adoc[leveloffset=+2]
6161

6262
include::modules/hcp-access-pub-hc-aws.adoc[leveloffset=+2]
6363

modules/hcp-access-hc-aws-hcpcli.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
[id="hcp-access-hc-aws-hcpcli_{context}"]
77
= Accessing a hosted cluster on {aws-short} by using the hcp CLI
88

9+
[role="_abstract"]
910
You can access the hosted cluster by using the `hcp` command-line interface (CLI) to generate the `kubeconfig` file.
1011

1112
.Procedure

modules/hcp-access-hc-aws.adoc

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,9 @@
22
//
33
// * hosted-control-planes/hcp-deploy/hcp-deploy-aws.adoc
44

5-
:_mod-docs-content-type: PROCEDURE
5+
:_mod-docs-content-type: CONCEPT
66
[id="hcp-access-hc-aws_{context}"]
77
= Accessing a hosted cluster on {aws-short}
88

9-
You can access the hosted cluster by getting the `kubeconfig` file and the `kubeadmin` credentials directly from resources.
10-
11-
You must be familiar with the access secrets for hosted clusters. The hosted cluster namespace contains hosted cluster resources, and the hosted control plane namespace is where the hosted control plane runs. The secret name formats are as follows:
12-
13-
* `kubeconfig` secret: `<hosted-cluster-namespace>-<name>-admin-kubeconfig`. For example, `clusters-hypershift-demo-admin-kubeconfig`.
14-
* `kubeadmin` password secret: `<hosted-cluster-namespace>-<name>-kubeadmin-password`. For example, `clusters-hypershift-demo-kubeadmin-password`.
15-
16-
.Procedure
17-
18-
* The `kubeconfig` secret contains a Base64-encoded `kubeconfig` field, which you can decode and save into a file to use with the following command:
19-
+
20-
[source,terminal]
21-
----
22-
$ oc --kubeconfig <hosted_cluster_name>.kubeconfig get nodes
23-
----
24-
+
25-
The `kubeadmin` password secret is also Base64-encoded. You can decode it and use the password to log in to the API server or console of the hosted cluster.
9+
[role="_abstract"]
10+
After you create a hosted cluster on {aws-short}, you can access it by using the hosted control plane CLI (`hcp`) or by using `kubeadmin` credentials.

0 commit comments

Comments
 (0)