mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
171 lines
3.8 KiB
Plaintext
171 lines
3.8 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * installing/installing_gcp/installing-gcp-user-infra.adoc
|
|
// * installing/installing_gcp/installing-restricted-networks-gcp.adoc
|
|
|
|
|
|
ifeval::["{context}" == "installing-gcp-user-infra-vpc"]
|
|
:gcp:
|
|
:user-infra-vpc:
|
|
endif::[]
|
|
|
|
ifeval::["{context}" == "installing-gcp-user-infra"]
|
|
:cp-first: Google Cloud
|
|
:cp: Google Cloud
|
|
:cp-template: Deployment Manager
|
|
endif::[]
|
|
|
|
ifeval::["{context}" == "installing-restricted-networks-gcp"]
|
|
:cp-first: Google Cloud
|
|
:cp: Google Cloud
|
|
:cp-template: Deployment Manager
|
|
endif::[]
|
|
|
|
ifeval::["{context}" == "installing-restricted-networks-gcp-vpc"]
|
|
:cp-first: Google Cloud
|
|
:cp: Google Cloud
|
|
:cp-template: Deployment Manager
|
|
endif::[]
|
|
|
|
ifeval::["{context}" == "installing-gcp-user-infra-vpc"]
|
|
:cp-first: Google Cloud
|
|
:cp: Google Cloud
|
|
:cp-template: Deployment Manager
|
|
:shared-vpc:
|
|
endif::[]
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="installation-user-infra-exporting-common-variables_{context}"]
|
|
= Exporting common variables for {cp-template} templates
|
|
|
|
You must export a common set of variables that are used with the provided {cp-template} templates used to assist in completing a user-provided infrastructure install on {cp-first}.
|
|
|
|
[NOTE]
|
|
====
|
|
Specific {cp-template} templates can also require additional exported variables, which are detailed in their related procedures.
|
|
====
|
|
|
|
.Procedure
|
|
|
|
. Export the following common variables to be used by the provided {cp-template} templates. For any command with `<installation_directory>`, specify the path to the directory that you stored the installation files in.
|
|
+
|
|
ifndef::shared-vpc[]
|
|
[source,terminal]
|
|
----
|
|
$ export BASE_DOMAIN='<base_domain>'
|
|
----
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ export BASE_DOMAIN_ZONE_NAME='<base_domain_zone_name>'
|
|
----
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ export NETWORK_CIDR='10.0.0.0/16'
|
|
----
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ export MASTER_SUBNET_CIDR='10.0.0.0/17'
|
|
----
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ export WORKER_SUBNET_CIDR='10.0.128.0/17'
|
|
----
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ export KUBECONFIG=<installation_directory>/auth/kubeconfig
|
|
----
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ export CLUSTER_NAME=`jq -r .clusterName <installation_directory>/metadata.json`
|
|
----
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ export INFRA_ID=`jq -r .infraID <installation_directory>/metadata.json`
|
|
----
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ export PROJECT_NAME=`jq -r .gcp.projectID <installation_directory>/metadata.json`
|
|
----
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ export REGION=`jq -r .gcp.region <installation_directory>/metadata.json`
|
|
----
|
|
endif::shared-vpc[]
|
|
|
|
ifdef::shared-vpc[]
|
|
[source,terminal]
|
|
----
|
|
$ export BASE_DOMAIN='<base_domain>'
|
|
----
|
|
* `<base_domain>`: Supply the values for the host project.
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ export BASE_DOMAIN_ZONE_NAME='<base_domain_zone_name>'
|
|
----
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ export NETWORK_CIDR='10.0.0.0/16'
|
|
----
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ export KUBECONFIG=<installation_directory>/auth/kubeconfig
|
|
----
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ export CLUSTER_NAME=`jq -r .clusterName <installation_directory>/metadata.json`
|
|
----
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ export INFRA_ID=`jq -r .infraID <installation_directory>/metadata.json`
|
|
----
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ export PROJECT_NAME=`jq -r .gcp.projectID <installation_directory>/metadata.json`
|
|
----
|
|
endif::shared-vpc[]
|
|
|
|
ifeval::["{context}" == "installing-gcp-user-infra-vpc"]
|
|
:!gcp:
|
|
:!user-infra-vpc:
|
|
endif::[]
|
|
|
|
ifeval::["{context}" == "installing-gcp-user-infra"]
|
|
:!cp-first:
|
|
:!cp:
|
|
:!cp-template:
|
|
endif::[]
|
|
|
|
ifeval::["{context}" == "installing-restricted-networks-gcp"]
|
|
:!cp-first:
|
|
:!cp:
|
|
:!cp-template:
|
|
endif::[]
|
|
|
|
ifeval::["{context}" == "installing-restricted-networks-gcp-vpc"]
|
|
:!cp-first: Google Cloud
|
|
:!cp: Google Cloud
|
|
:!cp-template: Deployment Manager
|
|
endif::[]
|
|
|
|
ifeval::["{context}" == "installing-gcp-user-infra-vpc"]
|
|
:!cp-first: Google Cloud
|
|
:!cp: Google Cloud
|
|
:!cp-template: Deployment Manager
|
|
:!shared-vpc:
|
|
endif::[]
|