Skip to content

Commit b808b24

Browse files
committed
organizing aliababa vs. gcp
merge review feedback
1 parent 80b36dc commit b808b24

17 files changed

+278
-52
lines changed

_topic_maps/_topic_map.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ Topics:
142142
File: installing-alibaba-customizations
143143
- Name: Installing a cluster on Alibaba Cloud with network customizations
144144
File: installing-alibaba-network-customizations
145+
- Name: Installing a cluster on Alibaba Cloud into a shared VPC
146+
File: installing-alibaba-vpc
145147
- Name: Uninstalling a cluster on Alibaba Cloud
146148
File: uninstall-cluster-alibaba
147149
- Name: Installing on AWS
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
:_content-type: ASSEMBLY
2+
[id="installing-alibaba-vpc"]
3+
= Installing a cluster on Alibaba Cloud into an existing VPC
4+
include::_attributes/common-attributes.adoc[]
5+
:context: installing-alibaba-vpc
6+
7+
toc::[]
8+
9+
In {product-title} version {product-version}, you can install a cluster into an existing Alibaba Virtual Private Cloud (VPC) on Alibaba Cloud Services. The installation program provisions the required infrastructure, which can then be customized. To customize the VPC installation, modify the parameters in the 'install-config.yaml' file before you install the cluster.
10+
11+
[NOTE]
12+
====
13+
The scope of the {product-title} installation configurations is intentionally narrow. It is designed for simplicity and ensured success. You can complete many more {product-title} configuration tasks after an installation completes.
14+
====
15+
16+
:FeatureName: Alibaba Cloud on {product-title}
17+
include::snippets/technology-preview.adoc[]
18+
19+
[id="prerequisites_installing-alibaba-vpc"]
20+
== Prerequisites
21+
22+
* You reviewed details about the xref:../../architecture/architecture-installation.adoc#architecture-installation[{product-title} installation and update] processes.
23+
* You read the documentation on xref:../../installing/installing-preparing.adoc#installing-preparing[selecting a cluster installation method and preparing it for users].
24+
* You xref:../../installing/installing_alibaba/preparing-to-install-on-alibaba.adoc#installation-alibaba-dns_preparing-to-install-on-alibaba[registered your domain].
25+
* If you use a firewall, you xref:../../installing/install_config/configuring-firewall.adoc#configuring-firewall[configured it to allow the sites] that your cluster requires access to.
26+
* If the cloud Resource Access Management (RAM) APIs are not accessible in your environment, or if you do not want to store an administrator-level credential secret in the `kube-system` namespace, you can xref:../../installing/installing_alibaba/manually-creating-alibaba-ram.adoc#manually-creating-alibaba-ram[manually create and maintain Resource Access Management (RAM) credentials].
27+
28+
include::modules/installation-custom-alibaba-vpc.adoc[leveloffset=+1]
29+
30+
include::modules/cluster-entitlements.adoc[leveloffset=+1]
31+
32+
include::modules/ssh-agent-using.adoc[leveloffset=+1]
33+
34+
include::modules/installation-obtaining-installer.adoc[leveloffset=+1]
35+
36+
include::modules/installation-initializing.adoc[leveloffset=+2]
37+
38+
include::modules/installation-configuration-parameters.adoc[leveloffset=+2]
39+
40+
include::modules/installation-alibaba-config-yaml.adoc[leveloffset=+2]
41+
42+
include::modules/manually-creating-alibaba-manifests.adoc[leveloffset=+2]
43+
44+
include::modules/cco-ccoctl-configuring.adoc[leveloffset=+2]
45+
46+
include::modules/cco-ccoctl-creating-at-once.adoc[leveloffset=+2]
47+
48+
include::modules/installation-launching-installer.adoc[leveloffset=+1]
49+
50+
include::modules/cli-installing-cli.adoc[leveloffset=+1]
51+
52+
include::modules/cli-logging-in-kubeadmin.adoc[leveloffset=+1]
53+
54+
include::modules/logging-in-by-using-the-web-console.adoc[leveloffset=+1]
55+
56+
include::modules/cluster-telemetry.adoc[leveloffset=+1]
57+
58+
[role="_additional-resources"]
59+
.Additional resources
60+
61+
* 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.
62+
* 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
63+
64+
[id="next-steps_installing-alibaba-vpc"]
65+
== Next steps
66+
67+
* xref:../../installing/validating-an-installation.adoc#validating-an-installation[Validating an installation].
68+
* xref:../../post_installation_configuration/cluster-tasks.adoc#available_cluster_customizations[Customize your cluster].
69+
* If necessary, you can xref:../../support/remote_health_monitoring/opting-out-of-remote-health-reporting.adoc#opting-out-remote-health-reporting_opting-out-remote-health-reporting[opt out of remote health reporting].
70+
//Given that manual mode is required to install on Alibaba Cloud, I do not believe this xref is necessary.
71+
//* If necessary, you can xref:../../authentication/managing_cloud_provider_credentials/cco-mode-mint.adoc#manually-removing-cloud-creds_cco-mode-mint[remove cloud provider credentials].
72+

modules/cco-ccoctl-creating-at-once.adoc

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// * authentication/managing_cloud_provider_credentials/cco-mode-gcp-workload-identity.adoc
55
// * installing/installing_alibaba/manually-creating-alibaba-ram.adoc
66
// * installing/installing_alibaba/installing-alibaba-network-customizations.adoc
7+
// * installing/installing_alibaba/installing-alibaba-vpc.adoc
78

89
ifeval::["{context}" == "cco-mode-sts"]
910
:aws-sts:
@@ -17,6 +18,9 @@ endif::[]
1718
ifeval::["{context}" == "installing-alibaba-customizations"]
1819
:alibabacloud-customizations:
1920
endif::[]
21+
ifeval::["{context}" == "installing-alibaba-vpc"]
22+
:alibabacloud-vpc:
23+
endif::[]
2024

2125
:_content-type: PROCEDURE
2226
[id="cco-ccoctl-creating-at-once_{context}"]
@@ -34,12 +38,12 @@ ifdef::google-cloud-platform[]
3438

3539
You can use the `ccoctl gcp create-all` command to automate the creation of GCP resources.
3640
endif::google-cloud-platform[]
37-
ifdef::alibabacloud-default,alibabacloud-customizations[]
41+
ifdef::alibabacloud-default,alibabacloud-customizations,alibabacloud-vpc[]
3842
[id="cco-ccoctl-creating-at-once_{context}"]
3943
= Creating credentials for {product-title} components with the ccoctl tool
4044

4145
You can use the {product-title} Cloud Credential Operator (CCO) utility to automate the creation of Alibaba Cloud RAM users and policies for each in-cluster component.
42-
endif::alibabacloud-default,alibabacloud-customizations[]
46+
endif::alibabacloud-default,alibabacloud-customizations,alibabacloud-vpc[]
4347

4448
[NOTE]
4549
====
@@ -51,14 +55,23 @@ By default, `ccoctl` creates objects in the directory in which the commands are
5155
You must have:
5256

5357
* Extracted and prepared the `ccoctl` binary.
54-
ifdef::alibabacloud-default,alibabacloud-customizations[]
58+
ifdef::alibabacloud-default,alibabacloud-customizations,alibabacloud-vpc[]
5559
* Created a RAM user with sufficient permission to create the {product-title} cluster.
5660
* Added the AccessKeyID (`access_key_id`) and AccessKeySecret (`access_key_secret`) of that RAM user into the link:https://www.alibabacloud.com/help/en/doc-detail/311667.htm#h2-sls-mfm-3p3[`~/.alibabacloud/credentials` file] on your local computer.
57-
endif::alibabacloud-default,alibabacloud-customizations[]
61+
endif::alibabacloud-default,alibabacloud-customizations,alibabacloud-vpc[]
5862
5963
.Procedure
6064

61-
. Extract the list of `CredentialsRequest` objects from the {product-title} release image:
65+
ifdef::alibabacloud-default,alibabacloud-customizations,alibabacloud-vpc[]
66+
. Set the `$RELEASE_IMAGE` variable by running the following command:
67+
+
68+
[source,terminal]
69+
----
70+
$ RELEASE_IMAGE=$(./openshift-install version | awk '/release image/ {print $3}')
71+
----
72+
endif::alibabacloud-default,alibabacloud-customizations,alibabacloud-vpc[]
73+
74+
. Extract the list of `CredentialsRequest` objects from the {product-title} release image by running the following command:
6275
+
6376
[source,terminal]
6477
ifdef::aws-sts[]
@@ -79,15 +92,15 @@ $ oc adm release extract \
7992
quay.io/<path_to>/ocp-release:<version>
8093
----
8194
endif::google-cloud-platform[]
82-
ifdef::alibabacloud-default,alibabacloud-customizations[]
95+
ifdef::alibabacloud-default,alibabacloud-customizations,alibabacloud-vpc[]
8396
----
8497
$ oc adm release extract \
8598
--credentials-requests \
8699
--cloud=alibabacloud \
87100
--to=<path_to_directory_with_list_of_credentials_requests>/credrequests \ <1>
88-
quay.io/<path_to>/ocp-release:<version>
101+
$RELEASE_IMAGE
89102
----
90-
endif::alibabacloud-default,alibabacloud-customizations[]
103+
endif::alibabacloud-default,alibabacloud-customizations,alibabacloud-vpc[]
91104
+
92105
<1> `credrequests` is the directory where the list of `CredentialsRequest` objects is stored. This command creates the directory if it does not exist.
93106
+
@@ -142,7 +155,7 @@ ifdef::google-cloud-platform[]
142155
<6> The Network Operator CR is required.
143156
<7> The Storage Operator CR is an optional component and might be disabled in your cluster.
144157
endif::google-cloud-platform[]
145-
ifdef::alibabacloud-default,alibabacloud-customizations[]
158+
ifdef::alibabacloud-default,alibabacloud-customizations,alibabacloud-vpc[]
146159
. If your cluster uses cluster capabilities to disable one or more optional components, delete the `CredentialsRequest` custom resources for any disabled components.
147160
+
148161
.Example `credrequests` directory contents for {product-title} 4.12 on Alibaba Cloud
@@ -159,7 +172,7 @@ ifdef::alibabacloud-default,alibabacloud-customizations[]
159172
<2> The Image Registry Operator CR is required.
160173
<3> The Ingress Operator CR is required.
161174
<4> The Storage Operator CR is an optional component and might be disabled in your cluster.
162-
endif::alibabacloud-default,alibabacloud-customizations[]
175+
endif::alibabacloud-default,alibabacloud-customizations,alibabacloud-vpc[]
163176

164177
ifdef::aws-sts,google-cloud-platform[]
165178
. Use the `ccoctl` tool to process all `CredentialsRequest` objects in the `credrequests` directory:
@@ -211,7 +224,7 @@ If your cluster uses Technology Preview features that are enabled by the `TechPr
211224
====
212225
endif::google-cloud-platform[]
213226

214-
ifdef::alibabacloud-default,alibabacloud-customizations[]
227+
ifdef::alibabacloud-default,alibabacloud-customizations,alibabacloud-vpc[]
215228
. Use the `ccoctl` tool to process all `CredentialsRequest` objects in the `credrequests` directory:
216229

217230
.. Run the following command to use the tool:
@@ -287,8 +300,8 @@ $ cp ./<path_to_ccoctl_output_dir>/manifests/*credentials.yaml ./<path_to_instal
287300
where:
288301
289302
`<path_to_ccoctl_output_dir>`:: Specifies the directory created by the `ccoctl alibabacloud create-ram-users` command.
290-
`<path_to_installation>dir>`:: Specifies the directory in which the installation program creates files.
291-
endif::alibabacloud-default,alibabacloud-customizations[]
303+
`<path_to_installation_dir>`:: Specifies the directory in which the installation program creates files.
304+
endif::alibabacloud-default,alibabacloud-customizations,alibabacloud-vpc[]
292305
293306
ifdef::aws-sts,google-cloud-platform[]
294307
.Verification
@@ -333,3 +346,6 @@ endif::[]
333346
ifeval::["{context}" == "installing-alibaba-customizations"]
334347
:!alibabacloud-customizations:
335348
endif::[]
349+
ifeval::["{context}" == "installing-alibaba-vpc"]
350+
:!alibabacloud-vpc:
351+
endif::[]

modules/cli-installing-cli.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Module included in the following assemblies:
22
//
3-
// installing/installing_alibaba/installing-alibaba-network-customizations.adoc
3+
// * installing/installing_alibaba/installing-alibaba-network-customizations.adoc
4+
// * installing/installing_alibaba/installing-alibaba-vpc.adoc
45
// * cli_reference/openshift_cli/getting-started.adoc
56
// * installing/installing_aws/installing-aws-user-infra.adoc
67
// * installing/installing_aws/installing-aws-customizations.adoc

modules/cli-logging-in-kubeadmin.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Module included in the following assemblies:
22
//
3-
// installing/installing_alibaba/installing-alibaba-network-customizations.adoc
3+
// * installing/installing_alibaba/installing-alibaba-network-customizations.adoc
4+
// * installing/installing_alibaba/installing-alibaba-vpc.adoc
45
// * installing/installing_aws/installing-aws-user-infra.adoc
56
// * installing/installing_aws/installing-aws-customizations.adoc
67
// * installing/installing_aws/installing-aws-default.adoc

modules/cluster-entitlements.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Module included in the following assemblies:
22
//
3-
// installing/installing_alibaba/installing-alibaba-network-customizations.adoc
3+
// * installing/installing_alibaba/installing-alibaba-network-customizations.adoc
4+
// * installing/installing_alibaba/installing-alibaba-vpc.adoc
45
// * installing/installing_bare_metal/installing-bare-metal-network-customizations.adoc
56
// * installing/installing_bare_metal/installing-bare-metal.adoc
67
// * installing/installing_bare_metal/installing-restricted-networks-bare-metal.adoc

modules/cluster-telemetry.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Module included in the following assemblies:
22
//
3-
// installing/installing_alibaba/installing-alibaba-network-customizations.adoc
3+
// * installing/installing_alibaba/installing-alibaba-network-customizations.adoc
4+
// * installing/installing_alibaba/installing-alibaba-vpc.adoc
45
// * installing/installing_bare_metal/installing-bare-metal-network-customizations.adoc
56
// * installing/installing_bare_metal/installing-bare-metal.adoc
67
// * installing/installing_bare_metal/installing-restricted-networks-bare-metal.adoc

modules/installation-alibaba-config-yaml.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ platform:
4848
systemDiskSize: 200
4949
region: ap-southeast-1 <4>
5050
resourceGroupID: rg-acfnw6j3hyai <5>
51+
vpcID: vpc-0xifdjerdibmaqvtjob2b <8>
52+
vswitchIDs: <8>
53+
- vsw-0xi8ycgwc8wv5rhviwdq5
54+
- vsw-0xiy6v3z2tedv009b4pz2
5155
publish: External
5256
pullSecret: '{"auths": {"cloud.openshift.com": {"auth": ... }' <6>
5357
sshKey: |
@@ -60,3 +64,4 @@ sshKey: |
6064
<5> Optional. Specify an existing resource group where the cluster should be installed.
6165
<6> Required. The installation program prompts you for the pull secret.
6266
<7> Optional. The installation program prompts you for the SSH key value that you use to access the machines in your cluster.
67+
<8> Optional. These are example vswitchID values.

0 commit comments

Comments
 (0)