Skip to content

Update runners-gke CIDR reservation to final version

Tomasz Maczukin requested to merge fix-runners-gke-cidr-reservation into master

Part of https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/13886

I've made a mistake when describing the CIDRs for the first time. 10.9.0.0/24 and 10.9.1.0/22 are overlapping, as 10.9.1.0/22 describes a network that starts at 10.9.0.0 and ends at 10.9.3.255. This also shows that using 10.9.1.0/22, while technically proper, is not fully natural, as it uses the IP in the middle of the range. The usual way of describing the network is using the network address (first IP in the range) with the mask, which in this case means 10.9.0.0/22.

The final values used in terraform module are as following:

  • 10.9.4.0/24 - as subnetwork's primary range for GKE nodes,
  • 10.9.8.0/16 - as subnetwork's secondary range for GKE pods,
  • 10.9.0.0/22 - as subnetwork's secondary range for GKE services,
Edited by Tomasz Maczukin

Merge request reports