Reputation: 19312
I am trying to find in the official GCP documentation the exact permission (not Role) that corresponds to the ability to invoke this command
gcloud container clusters resize
The list does not include such a permission.
Any suggestion about the least privilege that needs to be granted for such an operation?
Upvotes: 0
Views: 533
Reputation: 11237
gcloud container clusters resize
operation probably needs the caller to have container.clusters.update
permission. You can find this permission in the following predefined roles :
roles/container.admin
)roles/container.clusterAdmin
)See Kubernetes Engine roles. I have not listed other roles containing this permission because they are too broad (roles/owner
, roles/editor
) or not appropriate (roles/composer.worker
).
Based on the principle of least privilege and if you want to keep things simple using predefined roles, your user only needs to be granted roles/container.clusterAdmin
because roles/container.clusterAdmin
role contains a subset of roles/container.admin
permissions.
Additionally, if you want/need to be more restrictive, you could also create a custom role with only the permission you need.
Upvotes: 1