|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * installing/installing-gcp-vpc.adoc |
| 4 | +// * installing/installing-restricted-networks-gcp |
| 5 | + |
| 6 | +[id="nw-gcp-global-access-configuration_{context}"] |
| 7 | += Create an Ingress Controller with global access on GCP |
| 8 | +You can create an Ingress Controller with global access on a new GCP cluster when your. Global access is only available to Ingress Controllers using internal load balancers. |
| 9 | + |
| 10 | +.Prerequisites |
| 11 | + |
| 12 | +* You created the `install-config.yaml` and complete any modifications to it. |
| 13 | + |
| 14 | +.Procedure |
| 15 | + |
| 16 | +Create an Ingress Controller with global access on a new GCP cluster. |
| 17 | + |
| 18 | +. Change to the directory that contains the installation program and create a manifest file: |
| 19 | ++ |
| 20 | +[source,terminal] |
| 21 | +---- |
| 22 | +$ ./openshift-install create manifests --dir=<installation_directory> <1> |
| 23 | +---- |
| 24 | +<1> For `<installation_directory>`, specify the name of the directory that |
| 25 | +contains the `install-config.yaml` file for your cluster. |
| 26 | ++ |
| 27 | +After creating the file, several network configuration files are in the |
| 28 | +`manifests/` directory, as shown: |
| 29 | ++ |
| 30 | +[source,terminal] |
| 31 | +---- |
| 32 | +$ ls <installation_directory>/manifests/cluster-ingress-default-ingresscontroller.yaml |
| 33 | +---- |
| 34 | ++ |
| 35 | +.Example output |
| 36 | +[source,terminal] |
| 37 | +---- |
| 38 | +cluster-ingress-default-ingresscontroller.yaml |
| 39 | +---- |
| 40 | + |
| 41 | +. Open the `cluster-ingress-default-ingresscontroller.yaml` file in an editor and enter a custom resource (CR) that describes the Operator configuration you want: |
| 42 | ++ |
| 43 | +.Sample `clientAccess` configuration to `Global` |
| 44 | +[source,yaml] |
| 45 | +---- |
| 46 | + spec: |
| 47 | + endpointPublishingStrategy: |
| 48 | + loadBalancer: |
| 49 | + providerParameters: |
| 50 | + gcp: |
| 51 | + clientAccess: Global <1> |
| 52 | + type: GCP |
| 53 | + scope: Internal <2> |
| 54 | + type: LoadBalancerService |
| 55 | +---- |
| 56 | +<1> Set `gcp.clientAccess` to `Global`. |
| 57 | +<2> Global access is only available to Ingress Controllers using internal load balancers. |
0 commit comments