Skip to content

Commit 3d1a714

Browse files
committed
Update permissions for GCP shared VPC installs.
1 parent 8b642a5 commit 3d1a714

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

installing/installing_gcp/installing-gcp-account.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ include::modules/installation-gcp-permissions.adoc[leveloffset=+2]
2828

2929
include::modules/minimum-required-permissions-ipi-gcp.adoc[leveloffset=+2]
3030

31+
include::modules/minimum-required-permissions-ipi-gcp-xpn.adoc[leveloffset=+2]
32+
3133
include::modules/installation-gcp-regions.adoc[leveloffset=+1]
3234

3335
== Next steps

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The installation program provisions the rest of the required infrastructure, whi
2020
* If the cloud identity and access management (IAM) 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_gcp/manually-creating-iam-gcp.adoc#manually-creating-iam-gcp[manually create and maintain IAM credentials].
2121
* You have a GCP host project which contains a shared VPC network.
2222
* You xref:../../installing/installing_gcp/installing-gcp-account.adoc#installing-gcp-account[configured a GCP project] to host the cluster. This project, known as the service project, must be attached to the host project. For more information, see link:https://cloud.google.com/vpc/docs/provisioning-shared-vpc#create-shared[Attaching service projects in the GCP documentation].
23-
* You have a GCP service account that has the xref:../../installing/installing_gcp/installing-gcp-account.adoc#installation-gcp-permissions_installing-gcp-account[required GCP permissions] in the host project.
23+
* You have a GCP service account that has the xref:../../installing/installing_gcp/installing-gcp-account.adoc#minimum-required-permissions-ipi-gcp-xpn[required GCP permissions] in both the host and service projects.
2424

2525
include::modules/cluster-entitlements.adoc[leveloffset=+1]
2626

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * installing/installing_gcp/installing-gcp-account.adoc
4+
5+
[id="minimum-required-permissions-ipi-gcp-xpn"]
6+
= Required GCP permissions for shared VPC installations
7+
8+
When you are installing a cluster to a link:https://cloud.google.com/vpc/docs/shared-vpc[shared VPC], you must configure the service account for both the host project and the service project. If you are not installing to a shared VPC, you can skip this section.
9+
10+
You must apply the minimum roles required for a standard installation as listed above, to the service project. Note that custom roles, and therefore fine-grained permissions, cannot be used in shared VPC installations because GCP does not support adding the required permission `compute.organizations.administerXpn` to custom roles.
11+
12+
In addition, the host project must apply one of the following configurations to the service account:
13+
14+
.Required permissions for creating firewalls in the host project
15+
[%collapsible]
16+
====
17+
* `projects/<host-project>/roles/dns.networks.bindPrivateDNSZone`
18+
* `roles/compute.networkAdmin`
19+
* `roles/compute.securityAdmin`
20+
====
21+
22+
.Required minimal permissions
23+
[%collapsible]
24+
====
25+
* `projects/<host-project>/roles/dns.networks.bindPrivateDNSZone`
26+
* `roles/compute.networkUser`
27+
====

0 commit comments

Comments
 (0)