Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 1 addition & 3 deletions hosted_control_planes/hcp-deploy/hcp-deploy-aws.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ include::modules/hcp-aws-prepare.adoc[leveloffset=+1]

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

include::modules/hcp-access-hc-aws-hcpcli.adoc[leveloffset=+1]

[role="_additional-resources"]
.Additional resources
* 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]
Expand Down Expand Up @@ -57,7 +55,7 @@ include::modules/hcp-aws-deploy-hc.adoc[leveloffset=+1]
.Additional resources
* xref:../../hosted_control_planes/hcp-deploy/hcp-deploy-aws.adoc#hcp-enable-arm-amd_hcp-deploy-aws[Running hosted clusters on an ARM64 architecture]

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

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

Expand Down
26 changes: 0 additions & 26 deletions modules/hcp-access-hc-aws-hcpcli.adoc

This file was deleted.

21 changes: 3 additions & 18 deletions modules/hcp-access-hc-aws.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,9 @@
//
// * hosted-control-planes/hcp-deploy/hcp-deploy-aws.adoc

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

You can access the hosted cluster by getting the `kubeconfig` file and the `kubeadmin` credentials directly from resources.

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:

* `kubeconfig` secret: `<hosted-cluster-namespace>-<name>-admin-kubeconfig`. For example, `clusters-hypershift-demo-admin-kubeconfig`.
* `kubeadmin` password secret: `<hosted-cluster-namespace>-<name>-kubeadmin-password`. For example, `clusters-hypershift-demo-kubeadmin-password`.

.Procedure

* The `kubeconfig` secret contains a Base64-encoded `kubeconfig` field, which you can decode and save into a file to use with the following command:
+
[source,terminal]
----
$ oc --kubeconfig <hosted_cluster_name>.kubeconfig get nodes
----
+
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.
[role="_abstract"]
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.
1 change: 1 addition & 0 deletions modules/hcp-access-pub-hc-aws-cli.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[id="hcp-access-pub-hc-aws-cli_{context}"]
= Accessing a hosted cluster on {aws-short} by using the hcp CLI

[role="_abstract"]
You can access the hosted cluster by using the `hcp` command-line interface (CLI).

.Procedure
Expand Down
3 changes: 2 additions & 1 deletion modules/hcp-access-pub-hc-aws.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
[id="hcp-access-pub-hc-aws_{context}"]
= Accessing a hosted cluster on {aws-short} by using the kubeadmin credentials

After creating a hosted cluster on {aws-first}, you can access a hosted cluster by getting the `kubeconfig` file, access secrets, and the `kubeadmin` credentials.
[role="_abstract"]
After you create a hosted cluster on {aws-first}, you can access it by getting the `kubeconfig` file, access secrets, and the `kubeadmin` credentials.

The hosted cluster namespace contains hosted cluster resources and the access secrets. The hosted control plane runs in the hosted control plane namespace.

Expand Down