Skip to content

Commit 1609da9

Browse files
committed
Modifying installation initializing module for private and xpn
1 parent 3211bf4 commit 1609da9

5 files changed

Lines changed: 34 additions & 39 deletions

File tree

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ 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]
56-
5755
include::modules/installation-gcp-config-yaml-simple.adoc[leveloffset=+2]
5856

5957
[role="_additional-resources"]

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

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

modules/installation-initializing-manual.adoc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,33 @@ $ 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+
endif::gcp-private[]
133+
ifdef::gcp-shared[]
134+
. Edit the `install-config.yaml` file to set the parameters necessary for installation into a shared VPC.
135+
.. Define the network, subnets, and project names for the shared VPC:
136+
+
137+
[source,yaml]
138+
----
139+
# ...
140+
platform:
141+
gcp:
142+
computeSubnet: <shared_vpc_compute_subnet>
143+
controlPlaneSubnet: <shared_vpc_control_plane_subnet>
144+
network: <shared_vpc_name>
145+
networkProjectID: <host_project_name>
146+
projectID: <service_project_name>
147+
----
148+
where:
149+
150+
`<shared_vpc_compute_subnet>`:: Specifies the name of the subnet in the shared VPC for compute machines to use.
151+
`<shared_vpc_control_plane_subnet>`:: Specifies the name of the subnet in the shared VPC for control plane machines to use.
152+
`<shared_vpc_name>`:: Specifies the name of the shared VPC.
153+
`<host_project_name>`:: Specifies the name of the host project where the shared VPC exists.
154+
`<service_project_name>`:: Specifies the name of the project where you want to install the cluster.
155+
endif::gcp-shared[]
156+
130157
. Customize the provided sample `install-config.yaml` file template and save the file in the `<installation_directory>`.
131158
ifdef::ibm-cloud-restricted[]
132159
+

modules/installation-initializing.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -587,9 +587,11 @@ ifdef::gcp+restricted[]
587587
+
588588
[source,yaml]
589589
----
590-
network: <existing_vpc>
591-
controlPlaneSubnet: <control_plane_subnet>
592-
computeSubnet: <compute_subnet>
590+
platform:
591+
gcp:
592+
network: <existing_vpc>
593+
controlPlaneSubnet: <control_plane_subnet>
594+
computeSubnet: <compute_subnet>
593595
----
594596
+
595597
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.

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 private VPC 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)