Skip to content

Commit a3b0266

Browse files
authored
Merge pull request #51678 from mjpytlak/osdocs-3520
OSDOCS-3520: Adding steps to deploy with a GCP Marketplace image
2 parents 121ef58 + b17bf40 commit a3b0266

File tree

3 files changed

+50
-2
lines changed

3 files changed

+50
-2
lines changed

installing/installing_gcp/installing-gcp-customizations.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,28 @@ include::modules/installation-gcp-tested-machine-types.adoc[leveloffset=+2]
3636
include::modules/installation-gcp-config-yaml.adoc[leveloffset=+2]
3737

3838
[role="_additional-resources"]
39-
== Additional resources
39+
.Additional resources
4040

4141
* xref:../../machine_management/creating_machinesets/creating-machineset-gcp.adoc#machineset-enabling-customer-managed-encryption_creating-machineset-gcp[Enabling customer-managed encryption keys for a compute machine set]
4242

4343
include::modules/installation-configure-proxy.adoc[leveloffset=+2]
4444

45+
include::modules/installation-gcp-marketplace.adoc[leveloffset=+1]
46+
4547
include::modules/installation-launching-installer.adoc[leveloffset=+1]
4648

4749
include::modules/cli-installing-cli.adoc[leveloffset=+1]
4850

4951
include::modules/cli-logging-in-kubeadmin.adoc[leveloffset=+1]
5052

53+
[role="_additional-resources"]
5154
.Additional resources
5255

5356
* See xref:../../web_console/web-console.adoc#web-console[Accessing the web console] for more details about accessing and understanding the {product-title} web console.
5457

5558
include::modules/cluster-telemetry.adoc[leveloffset=+1]
5659

60+
[role="_additional-resources"]
5761
.Additional resources
5862

5963
* See xref:../../support/remote_health_monitoring/about-remote-health-monitoring.adoc#about-remote-health-monitoring[About remote health monitoring] for more information about the Telemetry service

modules/installation-creating-gcp-worker.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ EOF
111111
<2> `infra_id` is the `INFRA_ID` infrastructure name from the extraction step.
112112
<3> `zone` is the zone to deploy the worker machine into, for example `us-central1-a`.
113113
<4> `compute_subnet` is the `selfLink` URL to the compute subnet.
114-
<5> `image` is the `selfLink` URL to the {op-system} image.
114+
<5> `image` is the `selfLink` URL to the {op-system} image. To deploy using a GCP Marketplace image, specify `image: \https://www.googleapis.com/compute/v1/projects/redhat-marketplace-public/global/images/redhat-coreos-ocp-48-x86-64-202210040145`.
115115
<6> `machine_type` is the machine type of the instance, for example `n1-standard-4`.
116116
<7> `service_account_email` is the email address for the worker service account that you created.
117117
<8> `ignition` is the contents of the `worker.ign` file.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * installing/installing_gcp/installing-gcp-customizations.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="installation-gcp-marketplace_{context}"]
7+
= Using a GCP Marketplace image
8+
If you want to deploy an {product-title} cluster using a GCP Marketplace image, you must create the manifests and edit the compute machine set definitions to specify the GCP Marketplace image.
9+
10+
.Prerequisites
11+
12+
* You have the {product-title} installation program and the pull secret for your cluster.
13+
14+
.Procedure
15+
16+
. Generate the installation manifests by running the following command:
17+
+
18+
[source,terminal]
19+
----
20+
$ openshift-install create manifests --dir <installation_dir>
21+
----
22+
23+
. Locate the following files:
24+
25+
** `<installation_dir>/openshift/99_openshift-cluster-api_worker-machineset-0.yaml`
26+
** `<installation_dir>/openshift/99_openshift-cluster-api_worker-machineset-1.yaml`
27+
** `<installation_dir>/openshift/99_openshift-cluster-api_worker-machineset-2.yaml`
28+
29+
. In each file, edit the `.spec.template.spec.providerSpec.value.disks[0].image` property to `projects/redhat-marketplace-public/global/images/redhat-coreos-ocp-48-x86-64-202210040145`.
30+
31+
.Example compute machine set with the GCP Marketplace image
32+
[source,yaml]
33+
----
34+
deletionProtection: false
35+
disks:
36+
- autoDelete: true
37+
boot: true
38+
image: projects/redhat-marketplace-public/global/images/redhat-coreos-ocp-48-x86-64-202210040145
39+
labels: null
40+
sizeGb: 128
41+
type: pd-ssd
42+
kind: GCPMachineProviderSpec
43+
machineType: n2-standard-4
44+
----

0 commit comments

Comments
 (0)