Assigned
Status Update
Comments
ba...@google.com <ba...@google.com>
on...@google.com <on...@google.com> #2
Hello,
Thank you for reaching out. I'm going to create an internal feature request. Please keep in mind that this feature request has to be analyzed and considered by the product team and I can't provide you ETA for it to be delivered. However, you can keep track of the status by following this thread.
Description
- If I have the constraint/compute.vmExternalIpAccess set to DENY at the Organization level. However, at the project level, the policy is set to Allowed to all VM resources [1]. According to [2], setting a policy at the project level overrides the policy at the organization level.
- Therefore, I have been required to set an allowedList/deniedList at the project level to specify which VMs you’d like to have an external IP address [2] [3]. The allowed/denied list of VM instances must be identified by the VM instance name, in the form: projects/PROJECT_ID/zones/ZONE/instances/INSTANCE [4]. For more information see the document [5].
- When I’m trying to create public clusters that got blocked by an organization-level policy that denied external IPs.
- I want to know the way to add the cluster in the allowed list of the constraint. But as the constraint only supports the VM instance name it should be the VM instance name. But the cluster spins up the VM instances with random characters so it is not possible to update the org policy everytime.
- However, we want to whitelist the Cluster (GKE nodes) to create a cluster with external IP, but here the node's name is managed by the GKE itself as it gives unique random characters to its nodes. So we cannot allow all the cluster nodes with the node name.
What is needed to be implemented:
- Need to whitelist the GKE cluster in the organization policy "constraints/compute.vmExternalIpAccess" so it will allow existing nodes as well as newly created nodes to have the public IP address while this org policy is enabled.
[1] Project Level_Define allows external IPs for VM instances
[2] Set the policy at the project level
[3] Restricting external IP addresses to specific VMs
[4] Organization policy constraints
[5] Specifications for restricting external IP addresses