mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
67 lines
2.0 KiB
Plaintext
67 lines
2.0 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * installing/installing_aws/ipi/installing-aws-outposts.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="aws-outposts-environment-info-oc_{context}"]
|
|
= Obtaining information from your {product-title} cluster
|
|
|
|
You can use the {oc-first} to obtain information from your {product-title} cluster.
|
|
|
|
[TIP]
|
|
====
|
|
You might find it convenient to store some or all of these values as environment variables by using the `export` command.
|
|
====
|
|
|
|
.Prerequisites
|
|
|
|
* You have installed an {product-title} cluster into a custom VPC on AWS.
|
|
|
|
* You have access to the cluster using an account with `cluster-admin` permissions.
|
|
|
|
* You have installed the {oc-first}.
|
|
|
|
.Procedure
|
|
|
|
. List the infrastructure ID for the cluster by running the following command. Retain this value.
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc get -o jsonpath='{.status.infrastructureName}{"\n"}' infrastructures.config.openshift.io cluster
|
|
----
|
|
|
|
. Obtain details about the compute machine sets that the installation program created by running the following commands:
|
|
|
|
.. List the compute machine sets on your cluster:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc get machinesets.machine.openshift.io -n openshift-machine-api
|
|
----
|
|
+
|
|
.Example output
|
|
[source,text]
|
|
----
|
|
NAME DESIRED CURRENT READY AVAILABLE AGE
|
|
<compute_machine_set_name_1> 1 1 1 1 55m
|
|
<compute_machine_set_name_2> 1 1 1 1 55m
|
|
----
|
|
|
|
.. Display the Amazon Machine Image (AMI) ID for one of the listed compute machine sets. Retain this value.
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc get machinesets.machine.openshift.io <compute_machine_set_name_1> \
|
|
-n openshift-machine-api \
|
|
-o jsonpath='{.spec.template.spec.providerSpec.value.ami.id}'
|
|
----
|
|
|
|
.. Display the subnet ID for the AWS VPC cluster. Retain this value.
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc get machinesets.machine.openshift.io <compute_machine_set_name_1> \
|
|
-n openshift-machine-api \
|
|
-o jsonpath='{.spec.template.spec.providerSpec.value.subnet.id}'
|
|
----
|