-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ACM-2.10] ACM#10464: Extracting OpenShift release image digest #6393
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -1,51 +1,54 @@ | ||||||||
[#creating-a-hosted-cluster-bm] | ||||||||
= Creating a hosted cluster on bare metal | ||||||||
|
||||||||
You can create a hosted cluster or import one. For instructions to import a hosted cluster, see _Importing a hosted cluster_. | ||||||||
You can create a hosted cluster on bare metal or import one. For instructions to import a hosted cluster, see _Importing a hosted cluster_. | ||||||||
|
||||||||
. Create the hosted control plane namespace by entering the following command: | ||||||||
|
||||||||
+ | ||||||||
[source,bash] | ||||||||
---- | ||||||||
oc create ns <hosted-cluster-namespace>-<hosted-cluster-name> | ||||||||
oc create ns <hosted_cluster_namespace>-<hosted_cluster_name> | ||||||||
---- | ||||||||
|
||||||||
+ | ||||||||
Replace `<hosted-cluster-namespace>` with your hosted cluster namespace name, for example, `clusters`. Replace `<hosted-cluster-name>` with your hosted cluster name. | ||||||||
Replace `<hosted_cluster_namespace>` with your hosted cluster namespace name, for example, `clusters`. Replace `<hosted_cluster_name>` with your hosted cluster name. | ||||||||
|
||||||||
. Verify that you have a default storage class configured for your cluster. Otherwise, you might see pending PVCs. See the following example: | ||||||||
. Verify that you have a default storage class configured for your cluster. Otherwise, you might see pending PVCs. Run the following command: | ||||||||
|
||||||||
+ | ||||||||
[source,bash] | ||||||||
---- | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. similar question from my other review: #6394 (comment) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a continuous one command. Added [source,bash] for this command too. |
||||||||
hcp create cluster agent \ | ||||||||
--name=<hosted-cluster-name> \ <1> | ||||||||
--pull-secret=<path-to-pull-secret> \ <2> | ||||||||
--agent-namespace=<hosted-control-plane-namespace> \ <3> | ||||||||
--name=<hosted_cluster_name> \ <1> | ||||||||
--pull-secret=<path_to_pull_secret> \ <2> | ||||||||
--agent-namespace=<hosted_control_plane_namespace> \ <3> | ||||||||
--base-domain=<basedomain> \ <4> | ||||||||
--api-server-address=api.<hosted-cluster-name>.<basedomain> \ | ||||||||
--etcd-storage-class=<etcd-storage-class> \ <5> | ||||||||
--ssh-key <path-to-ssh-key> \ <6> | ||||||||
--namespace <hosted-cluster-namespace> \ <7> | ||||||||
--api-server-address=api.<hosted_cluster_name>.<basedomain> \ | ||||||||
--etcd-storage-class=<etcd_storage_class> \ <5> | ||||||||
--ssh-key <path_to_ssh_public_key> \ <6> | ||||||||
--namespace <hosted_cluster_namespace> \ <7> | ||||||||
--control-plane-availability-policy SingleReplica \ | ||||||||
--release-image=quay.io/openshift-release-dev/ocp-release:<ocp-release> <8> | ||||||||
--release-image=quay.io/openshift-release-dev/ocp-release:<ocp_release_image> <8> | ||||||||
---- | ||||||||
|
||||||||
+ | ||||||||
<1> Specify the name of your hosted cluster, for instance, `example`. | ||||||||
<2> Specify the path to your pull secret, for example, `/user/name/pullsecret`. | ||||||||
<3> Specify your hosted control plane namespace, for example, `clusters-example`. Ensure that agents are available in this namespace by using the `oc get agent -n <hosted-control-plane-namespace>` command. | ||||||||
<3> Specify your hosted control plane namespace, for example, `clusters-example`. Ensure that agents are available in this namespace by using the `oc get agent -n <hosted_control_plane_namespace>` command. | ||||||||
<4> Specify your base domain, for example, `krnl.es`. | ||||||||
<5> Specify the etcd storage class name, for example, `lvm-storageclass`. | ||||||||
<6> Specify the path to your SSH public key. The default file path is `~/.ssh/id_rsa.pub`. | ||||||||
<7> Specify your hosted cluster namespace. | ||||||||
<8> Specify the supported {ocp-short} version that you want to use, for example, `4.14.0-x86_64`. | ||||||||
<8> Specify the supported {ocp-short} version that you want to use, for example, `4.14.0-x86_64`. If you are using a disconnected environment, replace `<ocp_release_image>` with the digest image. To extract the {ocp-short} release image digest, see _Extracting the {ocp-short} release image digest_. | ||||||||
|
||||||||
+ | ||||||||
. After a few moments, verify that your hosted control plane pods are up and running by entering the following command: | ||||||||
|
||||||||
+ | ||||||||
[source,bash] | ||||||||
---- | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
oc -n <hosted-control-plane-namespace> get pods | ||||||||
oc -n <hosted_control_plane_namespacecontrol> get pods | ||||||||
---- | ||||||||
|
||||||||
+ | ||||||||
|
@@ -58,8 +61,6 @@ capi-provider-7dcf5fc4c4-nr9sq 1/1 Running 0 4m | |||||||
catalog-operator-6cd867cc7-phb2q 2/2 Running 0 2m50s | ||||||||
certified-operators-catalog-884c756c4-zdt64 1/1 Running 0 2m51s | ||||||||
cluster-api-f75d86f8c-56wfz 1/1 Running 0 4m32s | ||||||||
cluster-autoscaler-7977864686-2rz4c 1/1 Running 0 4m13s | ||||||||
cluster-network-operator-754cf4ffd6-lwfm2 1/1 Running 0 2m51s | ||||||||
---- | ||||||||
|
||||||||
[#hosted-create-bare-metal-console] | ||||||||
|
@@ -112,3 +113,5 @@ The **Hosted cluster** view is displayed. | |||||||
* To access a hosted cluster, see xref:../hosted_control_planes/access_hosted_cluster.adoc#access-hosted-cluster[Accessing the hosted cluster]. | ||||||||
|
||||||||
* To add hosts to the host inventory by using the Discovery Image, see link:../cluster_lifecycle/cim_add_host.adoc[Adding hosts to the host inventory by using the Discovery Image]. | ||||||||
|
||||||||
* To extract the {ocp-short} release image digest, see xref:../hosted_control_planes/disconnected_intro.adoc#configure-hosted-disconnected-digest-image[Extracting the {ocp-short} release image digest]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.