Error deploying zonal cluster in GCP
- GET version: 3.3.1
- Cloud Provider: GCP
- Environment configuration:
"module": {
"gitlab_ref_arch_gcp": {
"geo_site": "${var.geo_site}",
"gitaly_machine_type": "n1-standard-4",
"gitaly_node_count": 1,
"gke_location": "us-central1-a",
"machine_image": "${var.machine_image}",
"monitor_machine_type": "n1-highcpu-2",
"monitor_node_count": 1,
"postgres_machine_type": "n1-highcpu-4",
"postgres_node_count": 1,
"prefix": "${var.prefix}",
"project": "${var.project}",
"redis_machine_type": "n1-standard-1",
"redis_node_count": 1,
"service_account_prefix": "${var.sa_prefix}",
"sidekiq_node_pool_machine_type": "n1-standard-4",
"sidekiq_node_pool_max_count": 2,
"sidekiq_node_pool_min_count": 0,
"source": "../../../../gitlab-environment-toolkit/terraform/modules/gitlab_ref_arch_gcp",
"supporting_node_pool_machine_type": "n1-standard-2",
"supporting_node_pool_max_count": 2,
"supporting_node_pool_min_count": 1,
"webservice_node_pool_machine_type": "n1-standard-8",
"webservice_node_pool_max_count": 3,
"webservice_node_pool_min_count": 1
}
},
Generates error:
Error: error creating NodePool: googleapi: Error 404: Not found: projects/ibaum-d00cbcc6/locations/us-central1/clusters/ibaum-geo-primary.
Details:
[
{
"@type": "type.googleapis.com/google.rpc.RequestInfo",
"requestId": "0x1fa1bf496feba4a8"
}
]
, notFound
with module.gitlab_ref_arch_gcp.google_container_node_pool.gitlab_supporting_pool[0],
on ../../../../gitlab-environment-toolkit/terraform/modules/gitlab_ref_arch_gcp/gke.tf line 245, in resource "google_container_node_pool" "gitlab_supporting_pool":
245: resource "google_container_node_pool" "gitlab_supporting_pool" {