Skip to content

Commit 3d7454a

Browse files
authored
Merge pull request #56842 from mjpytlak/osdocs-5230
OSDOCS#5230: Installing a three-node GCP cluster
2 parents 64ed528 + a3a3b39 commit 3d7454a

10 files changed

+48
-14
lines changed

_topic_maps/_topic_map.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ Topics:
260260
File: installing-gcp-user-infra-vpc
261261
- Name: Installing a cluster on GCP in a restricted network with user-provisioned infrastructure
262262
File: installing-restricted-networks-gcp
263+
- Name: Installing a three-node cluster on GCP
264+
File: installing-gcp-three-node
263265
- Name: Uninstalling a cluster on GCP
264266
File: uninstalling-cluster-gcp
265267
- Name: Installing on IBM Cloud VPC

installing/installing_aws/installing-aws-three-node.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:_content-type: ASSEMBLY
22
[id="installing-aws-three-node"]
3-
= Installing a three-node AWS cluster
3+
= Installing a three-node cluster on AWS
44
include::_attributes/common-attributes.adoc[]
55
:context: installing-aws-three-node
66

installing/installing_gcp/installing-gcp-customizations.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
= Installing a cluster on GCP with customizations
44
include::_attributes/common-attributes.adoc[]
55
:context: installing-gcp-customizations
6+
:platform: GCP
67

78
toc::[]
89

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
:_content-type: ASSEMBLY
2+
[id="installing-gcp-three-node"]
3+
= Installing a three-node cluster on GCP
4+
include::_attributes/common-attributes.adoc[]
5+
:context: installing-gcp-three-node
6+
7+
toc::[]
8+
9+
In {product-title} version {product-version}, you can install a three-node cluster on Google Cloud Platform (GCP). A three-node cluster consists of three control plane machines, which also act as compute machines. This type of cluster provides a smaller, more resource efficient cluster, for cluster administrators and developers to use for testing, development, and production.
10+
11+
You can install a three-node cluster using either installer-provisioned or user-provisioned infrastructure.
12+
13+
include::modules/installation-three-node-cluster-cloud-provider.adoc[leveloffset=+1]
14+
15+
== Next steps
16+
* xref:../../installing/installing_gcp/installing-gcp-customizations.adoc#installing-gcp-customizations[Installing a cluster on GCP with customizations]
17+
* xref:../../installing/installing_gcp/installing-gcp-user-infra.adoc#installing-gcp-user-infra[Installing a cluster on user-provisioned infrastructure in GCP by using Deployment Manager templates]

installing/installing_gcp/installing-gcp-user-infra.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
= Installing a cluster on user-provisioned infrastructure in GCP by using Deployment Manager templates
44
include::_attributes/common-attributes.adoc[]
55
:context: installing-gcp-user-infra
6+
:platform: GCP
67

78
toc::[]
89

modules/installation-creating-gcp-worker.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
// * installing/installing_gcp/installing-gcp-user-infra.adoc
44
// * installing/installing_gcp/installing-restricted-networks-gcp.adoc
55

6+
ifeval::["{context}" == "installing-gcp-user-infra"]
7+
:three-node-cluster:
8+
endif::[]
69
ifeval::["{context}" == "installing-gcp-user-infra-vpc"]
710
:shared-vpc:
811
endif::[]
@@ -16,6 +19,13 @@ to use by launching individual instances discretely or by automated processes
1619
outside the cluster, such as auto scaling groups. You can also take advantage of
1720
the built-in cluster scaling mechanisms and the machine API in {product-title}.
1821

22+
ifdef::three-node-cluster[]
23+
[NOTE]
24+
====
25+
If you are installing a three-node cluster, skip this step. A three-node cluster consists of three control plane machines, which also act as compute machines.
26+
====
27+
endif::three-node-cluster[]
28+
1929
In this example, you manually launch one instance by using the Deployment
2030
Manager template. Additional instances can be launched by including additional
2131
resources of type `06_worker.py` in the file.
@@ -135,6 +145,9 @@ $ gcloud deployment-manager deployments create ${INFRA_ID}-worker --config 06_wo
135145
** {oke}: `\https://www.googleapis.com/compute/v1/projects/redhat-marketplace-public/global/images/redhat-coreos-oke-48-x86-64-202206140145`
136146
--
137147

148+
ifeval::["{context}" == "installing-gcp-user-infra"]
149+
:!three-node-cluster:
150+
endif::[]
138151
ifeval::["{context}" == "installing-gcp-user-infra-vpc"]
139152
:!shared-vpc:
140153
endif::[]

modules/installation-generate-aws-user-infra-install-config.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ platform:
149149
endif::localzone[]
150150
151151
ifdef::three-node-cluster[]
152-
. If you are installing a three-node cluster, modify the `install.config.yaml` file by setting the `compute.replicas` parameter to `0`. This ensures that the cluster's control planes are schedulable. For more information, see "Installing a three-node cluster on AWS".
152+
. If you are installing a three-node cluster, modify the `install-config.yaml` file by setting the `compute.replicas` parameter to `0`. This ensures that the cluster's control planes are schedulable. For more information, see "Installing a three-node cluster on AWS".
153153
endif::three-node-cluster[]
154154
155155
. Optional: Back up the `install-config.yaml` file.

modules/installation-initializing.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ ifeval::["{context}" == "installing-azure-user-infra"]
8585
endif::[]
8686
ifeval::["{context}" == "installing-gcp-customizations"]
8787
:gcp:
88+
:three-node-cluster:
8889
endif::[]
8990
ifeval::["{context}" == "installing-gcp-vpc"]
9091
:gcp:
@@ -97,7 +98,7 @@ ifeval::["{context}" == "installing-gcp-network-customizations"]
9798
endif::[]
9899
ifeval::["{context}" == "installing-gcp-user-infra"]
99100
:gcp:
100-
:gcp-user-infra:
101+
:three-node-cluster:
101102
endif::[]
102103
ifeval::["{context}" == "installing-gcp-user-infra-vpc"]
103104
:gcp:
@@ -446,7 +447,7 @@ ifdef::openshift-origin[]
446447
This field is optional.
447448
endif::[]
448449
endif::rhv[]
449-
ifdef::gcp-user-infra,azure-user-infra[]
450+
ifdef::azure-user-infra[]
450451
.. Optional: If you do not want the cluster to provision compute machines, empty
451452
the compute pool by editing the resulting `install-config.yaml` file to set
452453
`replicas` to `0` for the `compute` pool:
@@ -707,6 +708,7 @@ ifeval::["{context}" == "installing-azure-user-infra"]
707708
endif::[]
708709
ifeval::["{context}" == "installing-gcp-customizations"]
709710
:!gcp:
711+
:!three-node-cluster:
710712
endif::[]
711713
ifeval::["{context}" == "installing-gcp-network-customizations"]
712714
:!gcp:
@@ -719,7 +721,7 @@ ifeval::["{context}" == "installing-gcp-shared-vpc"]
719721
endif::[]
720722
ifeval::["{context}" == "installing-gcp-user-infra"]
721723
:!gcp:
722-
:!gcp-user-infra:
724+
:!three-node-cluster:
723725
endif::[]
724726
ifeval::["{context}" == "installing-gcp-user-infra-vpc"]
725727
:!gcp:

modules/installation-three-node-cluster-cloud-provider.adoc

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Module included in the following assemblies:
22
// * installing/installing_aws/installing-aws-three-node.adoc
33
// * installing/installing_vsphere/installing-vsphere-three-node.adoc
4-
// *
4+
// * installing/installing_gcp/installing-gcp-three-node.adoc
55

66
ifeval::["{context}" == "installing-vsphere-three-node"]
77
:vsphere:
@@ -37,22 +37,18 @@ compute:
3737
replicas: 0
3838
----
3939
ifndef::vsphere,vmc[]
40-
. If you are deploying a cluster with user-provisioned infrastructure, do not create additional worker nodes.
40+
. If you are deploying a cluster with user-provisioned infrastructure:
41+
** After you create the Kubernetes manifest and Ignition config files, make sure that the `spec.mastersSchedulable` parameter is set to `true` in `cluster-scheduler-02-config.yml` file. You can locate this file in `<installation_directory>/manifests`.
42+
** Do not create additional worker nodes.
4143
endif::vsphere,vmc[]
4244

4345
ifdef::vsphere,vmc[]
4446
. If you are deploying a cluster with user-provisioned infrastructure:
4547
** Configure your application ingress load balancer to route HTTP and HTTPS traffic to the control plane nodes. In a three-node cluster, the Ingress Controller pods run on the control plane nodes. For more information, see the "Load balancing requirements for user-provisioned infrastructure".
48+
** After you create the Kubernetes manifest and Ignition config files, make sure that the `spec.mastersSchedulable` parameter is set to `true` in `cluster-scheduler-02-config.yml` file. You can locate this file in `<installation_directory>/manifests`.
4649
** Do not create additional worker nodes.
4750
endif::vsphere,vmc[]
4851

49-
.Verification
50-
51-
To verify that the control plane nodes are schedulable, open the `cluster-scheduler-02-config.yml` Kubernetes manifest file and confirm that the `spec.mastersSchedulable` parameter is set to `true`. You can locate this file in `<installation_directory>/manifests`.
52-
53-
* If you install a cluster on infrastructure that the installation program provisions, you can complete this verification step after the cluster is deployed.
54-
* If you install a cluster on infrastructure that you provision, you can complete this verification step after creating the Kubernetes manifest and Ignition configuration files.
55-
5652
.Example `cluster-scheduler-02-config.yml` file for a three-node cluster
5753
[source,yaml]
5854
----

modules/installation-user-infra-generate-k8s-manifest-ignition.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ ifeval::["{context}" == "installing-restricted-networks-bare-metal"]
5454
endif::[]
5555
ifeval::["{context}" == "installing-gcp-user-infra"]
5656
:gcp:
57+
:three-node-cluster:
5758
endif::[]
5859
ifeval::["{context}" == "installing-gcp-user-infra-vpc"]
5960
:gcp:
@@ -511,6 +512,7 @@ ifeval::["{context}" == "installing-azure-stack-hub-user-infra"]
511512
endif::[]
512513
ifeval::["{context}" == "installing-gcp-user-infra"]
513514
:!gcp:
515+
:!three-node-cluster:
514516
endif::[]
515517
ifeval::["{context}" == "installing-gcp-user-infra-vpc"]
516518
:!gcp:

0 commit comments

Comments
 (0)