|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * installing/installing_gcp/installing-gcp-account.adoc |
| 4 | + |
| 5 | +:_mod-docs-content-type: PROCEDURE |
| 6 | +[id="minimum-required-permissions-ipi-gcp-provided-sas_{context}"] |
| 7 | += Required GCP permissions for user-provided service accounts |
| 8 | + |
| 9 | +When you are installing a cluster, the compute and control plane nodes require their own service accounts. |
| 10 | +By default, the installation program creates a service account for the control plane and compute nodes. |
| 11 | +The service account that the installation program uses requires the roles and permissions that are listed in the _Creating a service account in GCP_ section, as well as the `resourcemanager.projects.getIamPolicy` and `resourcemanager.projects.setIamPolicy` permissions. |
| 12 | +These permissions should be applied to the service account in the host project. |
| 13 | +If this approach does not meet the security requirements of your organization, you can provide a service account email address for the control plane or compute nodes in the `install-config.yaml` file. |
| 14 | +For more information, see the _Installation configuration parameters for GCP_ page. |
| 15 | +If you provide a service account for control plane nodes during an installation into a shared VPC, you must grant that service account the `roles/compute.networkUser` role in the host project. |
| 16 | +If you want the installation program to automatically create firewall rules when you supply the control plane service account, you must grant that service account the `roles/compute.networkAdmin` and `roles/compute.securityAdmin` roles in the host project. |
| 17 | +If you only supply the `roles/compute.networkUser` role, you must create the firewall rules manually. |
| 18 | + |
| 19 | +[IMPORTANT] |
| 20 | +==== |
| 21 | +The following roles are required for user-provided service accounts for control plane and compute nodes respectively. |
| 22 | +==== |
| 23 | + |
| 24 | +.Required roles for control plane nodes |
| 25 | +[%collapsible] |
| 26 | +==== |
| 27 | +* `roles/compute.instanceAdmin` |
| 28 | +* `roles/compute.networkAdmin` |
| 29 | +* `roles/compute.securityAdmin` |
| 30 | +* `roles/storage.admin` |
| 31 | +==== |
| 32 | +
|
| 33 | +.Required roles for compute nodes |
| 34 | +[%collapsible] |
| 35 | +==== |
| 36 | +* `roles/compute.viewer` |
| 37 | +* `roles/storage.admin` |
| 38 | +* `roles/artifactregistry.reader` |
| 39 | +==== |
0 commit comments