简体   繁体   English

如何更改现有 GKE 节点池的 API 访问 scope?

[英]How to change API access scope for an existing GKE node pool?

Is there a way to allow access to all APIs for an existing node pool in GKE?有没有办法允许访问 GKE 中现有节点池的所有 API? When creating a node pool, you can choose it, but I can't find a way to change it.创建节点池的时候可以选择,但是我找不到改的方法。

To change the API Access scope on a running GKE Cluster, you can create a new node pool with your desired scope, migrate the workload, and then delete the old node pool.要在正在运行的 GKE 集群上更改 API 访问 scope,您可以使用所需的 scope 创建一个新节点池,迁移工作负载,然后删除旧节点池。 In that way, the cluster will be available all the time.这样,集群将始终可用。

https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances#changeserviceaccountandscopes https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances#changeserviceaccountandscopes

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM