CDP requires that you pre-create a set of firewall rules allowing your organization SSH and UI access to CDP and allowing internal communication between CDP components. CDP does not offer an option to create these firewall rules for you.
You have two options:
|Option||VPC type supported for this option||What to do during environment registration|
||Per project VPC
|In this case, you do not provide them to CDP during environment registration (That is, during environment registration you select "Do not create firewall rule").|
||Per project VPC||In this case, you should select the firewall rules created for SSH and UI access during environment registration|
Firewall rule requirements
You can add firewall rules in Google Cloud directly at the VPC level or via the security access control mechanism from VPC network > Firewall > Create firewall rule. For instructions on how to create and manage firewall rules in GCP, refer to Using firewall rules in Google documentation.
The firewall rules that you add should:
- Allow the instances in the VPC to connect with each other using TCP and UDP
protocols on any port. To achieve this, add a TCP/UDP rule that is set to the subnet IP
range. This is required for internal communication within the VPC. As an example, see
the intravpcconnection firewall rule, which is set to the subnet IP range
10.0.0.0/16) in the following screenshot:
- Open ports 22 and 443 to allow access from your organization's CIDR.
- If not using CCM, also open ports 9443 to allow access from CDP CIDR.
- If not using CCM, also open ports 443 to allow access from CDP CIDR. This is required for the gateway nodes.