Skip to content

Commit 2b05d92

Browse files
authored
Merge pull request #93709 from bscott-rh/OSDOCS-14757
OSDOCS-14757 greatly reducing GCP sample install config files
2 parents cc19d40 + fbecbee commit 2b05d92

10 files changed

Lines changed: 140 additions & 83 deletions

installing/installing_gcp/installing-gcp-customizations.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,12 @@ include::modules/installation-gcp-managing-dns-solution.adoc[leveloffset=+2]
5959
.Additional resources
6060
* xref:../../installing/installing_gcp/installation-config-parameters-gcp.adoc#installation-configuration-parameters-additional-gcp_installation-config-parameters-gcp[Additional {gcp-first} configuration parameters]
6161

62-
include::modules/installation-gcp-config-yaml.adoc[leveloffset=+2]
62+
include::modules/installation-gcp-config-yaml-simple.adoc[leveloffset=+2]
6363

6464
[role="_additional-resources"]
6565
.Additional resources
6666

67+
* xref:../../installing/installing_gcp/installation-config-parameters-gcp.adoc#installation-config-parameters-gcp[Installation configuration parameters for GCP]
6768
* 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]
6869

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

installing/installing_gcp/installing-gcp-private.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,12 @@ include::modules/installation-gcp-managing-dns-solution.adoc[leveloffset=+2]
6161
.Additional resources
6262
* xref:../../installing/installing_gcp/installation-config-parameters-gcp.adoc#installation-config-parameters-gcp[Installation configuration parameters for {gcp-first}]
6363

64-
include::modules/installation-gcp-config-yaml.adoc[leveloffset=+2]
64+
include::modules/installation-gcp-config-yaml-simple.adoc[leveloffset=+2]
6565

6666
[role="_additional-resources"]
6767
.Additional resources
6868

69+
* xref:../../installing/installing_gcp/installation-config-parameters-gcp.adoc#installation-config-parameters-gcp[Installation configuration parameters for GCP]
6970
* 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]
7071

7172
include::modules/nw-gcp-installing-global-access-configuration.adoc[leveloffset=+2]

installing/installing_gcp/installing-gcp-shared-vpc.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,12 @@ include::modules/installation-gcp-managing-dns-solution.adoc[leveloffset=+2]
5252
.Additional resources
5353
* xref:../../installing/installing_gcp/installation-config-parameters-gcp.adoc#installation-config-parameters-gcp[Installation configuration parameters for {gcp-first}]
5454

55-
include::modules/installation-gcp-shared-vpc-config.adoc[leveloffset=+2]
55+
include::modules/installation-gcp-config-yaml-simple.adoc[leveloffset=+2]
56+
57+
[role="_additional-resources"]
58+
.Additional resources
59+
60+
* xref:../../installing/installing_gcp/installation-config-parameters-gcp.adoc#installation-config-parameters-gcp[Installation configuration parameters for GCP]
5661

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

installing/installing_gcp/installing-gcp-vpc.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@ include::modules/installation-gcp-managing-dns-solution.adoc[leveloffset=+2]
5858
.Additional resources
5959
* xref:../../installing/installing_gcp/installation-config-parameters-gcp.adoc#installation-config-parameters-gcp[Installation configuration parameters for {gcp-first}]
6060

61-
include::modules/installation-gcp-config-yaml.adoc[leveloffset=+2]
61+
include::modules/installation-gcp-config-yaml-simple.adoc[leveloffset=+2]
6262

6363
[role="_additional-resources"]
6464
.Additional resources
6565

66+
* xref:../../installing/installing_gcp/installation-config-parameters-gcp.adoc#installation-config-parameters-gcp[Installation configuration parameters for GCP]
6667
* 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]
6768

6869
include::modules/nw-gcp-installing-global-access-configuration.adoc[leveloffset=+2]

installing/installing_gcp/installing-restricted-networks-gcp-installer-provisioned.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ include::modules/installation-gcp-managing-dns-solution.adoc[leveloffset=+2]
7171
.Additional resources
7272
* xref:../../installing/installing_gcp/installation-config-parameters-gcp.adoc#installation-config-parameters-gcp[Installation configuration parameters for {gcp-first}]
7373

74-
include::modules/installation-gcp-config-yaml.adoc[leveloffset=+2]
74+
include::modules/installation-gcp-config-yaml-simple.adoc[leveloffset=+2]
75+
76+
[role="_additional-resources"]
77+
.Additional resources
78+
79+
* xref:../../installing/installing_gcp/installation-config-parameters-gcp.adoc#installation-config-parameters-gcp[Installation configuration parameters for GCP]
7580

7681
include::modules/nw-gcp-installing-global-access-configuration.adoc[leveloffset=+2]
7782

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * installing/installing_gcp/installing-gcp-customizations.adoc
4+
// * installing/installing_gcp/installing-gcp-network-customizations.adoc
5+
// * installing/installing_gcp/installing-gcp-vpc.adoc
6+
// * installing/installing_gcp/installing-gcp-private.adoc
7+
// * installing/installing_gcp/installing-restricted-networks-gcp-installer-provisioned.adoc
8+
9+
:_mod-docs-content-type: REFERENCE
10+
[id="installation-gcp-config-yaml_{context}"]
11+
= Sample customized install-config.yaml file for {gcp-full}
12+
13+
[role="_abstract"]
14+
To specify more details about your {product-title} cluster's platform or modify the values of the required parameters, you can customize the `install-config.yaml` file.
15+
16+
[IMPORTANT]
17+
====
18+
This sample YAML file is provided for reference only. You must obtain your `install-config.yaml` file by using the installation program and modify it.
19+
====
20+
21+
[source,yaml]
22+
----
23+
apiVersion: v1
24+
baseDomain: example.com
25+
pullSecret: '{"auths": ...}'
26+
controlPlane:
27+
name: master
28+
replicas: 3
29+
platform:
30+
gcp:
31+
type: n2-standard-4
32+
compute:
33+
- name: worker
34+
replicas: 3
35+
platform:
36+
gcp:
37+
type: n2-standard-4
38+
metadata:
39+
name: test-cluster
40+
networking:
41+
clusterNetwork:
42+
- cidr: 10.128.0.0/14
43+
hostPrefix: 23
44+
platform:
45+
gcp:
46+
projectID: sample-project
47+
region: us-east1
48+
----
49+
where:
50+
51+
`controlPlane`:: Specifies parameters that apply to control plane machines.
52+
`compute`:: Specifies parameters that apply to compute machines.
53+
`networking`:: Specifies parameters that apply to the cluster networking configuration. If you do not provide networking values, the installation program provides default values.
54+
`platform`:: Specifies parameters that apply to the infrastructure platform that hosts the cluster.

modules/installation-gcp-shared-vpc-config.adoc

Lines changed: 0 additions & 71 deletions
This file was deleted.

modules/installation-initializing-manual.adoc

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,46 @@ $ mkdir <installation_directory>
127127
You must create a directory. Some installation assets, such as bootstrap X.509 certificates have short expiration intervals, so you must not reuse an installation directory. If you want to reuse individual files from another cluster installation, you can copy them into your directory. However, the file names for the installation assets might change between releases. Use caution when copying installation files from an earlier {product-title} version.
128128
====
129129

130+
ifdef::gcp-private[]
131+
. Edit the `install-config.yaml` file to set the `publish: Internal` parameter.
132+
. Edit the `install-config.yaml` file to set the parameters necessary for installation into an existing VPC.
133+
.. Define the network and subnets for the VPC to install the cluster in under the parent `platform.gcp` field:
134+
+
135+
[source,yaml]
136+
----
137+
platform:
138+
gcp:
139+
network: <existing_vpc>
140+
controlPlaneSubnet: <control_plane_subnet>
141+
computeSubnet: <compute_subnet>
142+
----
143+
+
144+
For the `platform.gcp.network` parameter, specify the name for the existing Google VPC. For the `platform.gcp.controlPlaneSubnet` and `platform.gcp.computeSubnet` parameters, specify the existing subnets to deploy the control plane machines and compute machines, respectively.
145+
endif::gcp-private[]
146+
ifdef::gcp-shared[]
147+
. Edit the `install-config.yaml` file to set the parameters necessary for installation into a shared VPC.
148+
.. Define the network, subnets, and project names for the shared VPC:
149+
+
150+
[source,yaml]
151+
----
152+
# ...
153+
platform:
154+
gcp:
155+
computeSubnet: <shared_vpc_compute_subnet>
156+
controlPlaneSubnet: <shared_vpc_control_plane_subnet>
157+
network: <shared_vpc_name>
158+
networkProjectID: <host_project_name>
159+
projectID: <service_project_name>
160+
----
161+
where:
162+
163+
`<shared_vpc_compute_subnet>`:: Specifies the name of the subnet in the shared VPC for compute machines to use.
164+
`<shared_vpc_control_plane_subnet>`:: Specifies the name of the subnet in the shared VPC for control plane machines to use.
165+
`<shared_vpc_name>`:: Specifies the name of the shared VPC.
166+
`<host_project_name>`:: Specifies the name of the host project where the shared VPC exists.
167+
`<service_project_name>`:: Specifies the name of the project where you want to install the cluster.
168+
endif::gcp-shared[]
169+
130170
. Customize the provided sample `install-config.yaml` file template and save the file in the `<installation_directory>`.
131171
ifdef::ibm-cloud-restricted[]
132172
+

modules/installation-initializing.adoc

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ ifeval::["{context}" == "installing-gcp-customizations"]
6969
endif::[]
7070
ifeval::["{context}" == "installing-gcp-vpc"]
7171
:gcp:
72+
:gcp-vpc:
7273
endif::[]
7374
ifeval::["{context}" == "installing-gcp-shared-vpc"]
7475
:gcp:
@@ -89,6 +90,7 @@ ifeval::["{context}" == "installing-restricted-networks-gcp"]
8990
endif::[]
9091
ifeval::["{context}" == "installing-restricted-networks-gcp-installer-provisioned"]
9192
:gcp:
93+
:gcp-restricted:
9294
:restricted:
9395
endif::[]
9496
ifeval::["{context}" == "installing-ibm-cloud-customizations"]
@@ -459,6 +461,20 @@ endif::aws-outposts[]
459461
ifndef::restricted,nutanix,aws-outposts[]
460462
. Modify the `install-config.yaml` file. You can find more information about the available parameters in the "Installation configuration parameters" section.
461463
endif::restricted,nutanix,aws-outposts[]
464+
ifdef::gcp-vpc[]
465+
.. Define the network and subnets for the VPC to install the cluster in under the parent `platform.gcp` field:
466+
+
467+
[source,yaml]
468+
----
469+
platform:
470+
gcp:
471+
network: <existing_vpc>
472+
controlPlaneSubnet: <control_plane_subnet>
473+
computeSubnet: <compute_subnet>
474+
----
475+
+
476+
For `platform.gcp.network`, specify the name for the existing Google VPC. For `platform.gcp.controlPlaneSubnet` and `platform.gcp.computeSubnet`, specify the existing subnets to deploy the control plane machines and compute machines, respectively.
477+
endif::gcp-vpc[]
462478
ifdef::three-node-cluster[]
463479
+
464480
[NOTE]
@@ -581,19 +597,21 @@ where:
581597
`<control_plane_subnet>`:: Replace `<control_plane_subnet>` with the existing subnet name to deploy the control plane machines.
582598
`<compute_subnet>:: Replace `<compute_subnet>` with the existing subnet name to deploy compute machines.
583599
endif::azure+restricted[]
584-
ifdef::gcp+restricted[]
600+
ifdef::gcp-restricted[]
585601
+
586602
.. Define the network and subnets for the VPC to install the cluster in under the parent `platform.gcp` field:
587603
+
588604
[source,yaml]
589605
----
590-
network: <existing_vpc>
591-
controlPlaneSubnet: <control_plane_subnet>
592-
computeSubnet: <compute_subnet>
606+
platform:
607+
gcp:
608+
network: <existing_vpc>
609+
controlPlaneSubnet: <control_plane_subnet>
610+
computeSubnet: <compute_subnet>
593611
----
594612
+
595613
For `platform.gcp.network`, specify the name for the existing Google VPC. For `platform.gcp.controlPlaneSubnet` and `platform.gcp.computeSubnet`, specify the existing subnets to deploy the control plane machines and compute machines, respectively.
596-
endif::gcp+restricted[]
614+
endif::gcp-restricted[]
597615
ifdef::ibm-power-vs+restricted[]
598616
+
599617
.. Define the network for the VPC to install the cluster in under the parent `platform.powervs` field:
@@ -672,7 +690,7 @@ Only one VPE can be specified per service.
672690
endif::ibm-cloud[]
673691
ifdef::restricted[]
674692
+
675-
.. Set the publishing strategy to `Internal`:
693+
.. Optionally, set the publishing strategy to `Internal`:
676694
+
677695
[source,yaml]
678696
----
@@ -764,6 +782,7 @@ ifeval::["{context}" == "installing-gcp-network-customizations"]
764782
endif::[]
765783
ifeval::["{context}" == "installing-gcp-vpc"]
766784
:!gcp:
785+
:!gcp-vpc:
767786
endif::[]
768787
ifeval::["{context}" == "installing-gcp-shared-vpc"]
769788
:!gcp:
@@ -781,6 +800,7 @@ ifeval::["{context}" == "installing-restricted-networks-gcp"]
781800
endif::[]
782801
ifeval::["{context}" == "installing-restricted-networks-gcp-installer-provisioned"]
783802
:!gcp:
803+
:!gcp-restricted:
784804
:!restricted:
785805
endif::[]
786806
ifeval::["{context}" == "installing-ibm-cloud-customizations"]

modules/private-clusters-about-gcp.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
[id="private-clusters-about-gcp_{context}"]
77
= Private clusters in {gcp-short}
88

9-
To create a private cluster on {gcp-first}, you must provide an existing private VPC and subnets to host the cluster. The installation program must also be able to resolve the DNS records that the cluster requires. The installation program configures the Ingress Operator and API server for only internal traffic.
9+
[role="_abstract"]
10+
To create a private cluster on {gcp-first}, you must provide an existing VPC network and subnets to host the cluster, and you must specify `publish: Internal` in your `install-config.yaml` file. The installation program must also be able to resolve the DNS records that the cluster requires. The installation program configures the Ingress Operator and API server for only internal traffic.
1011

1112
The cluster still requires access to internet to access the {gcp-short} APIs.
1213

0 commit comments

Comments
 (0)