Comments (3)
Hi @ttruong-actian!
To replicate this issue we need the full name of the terraform resource, I found the service google_service_account in terraform registry, but it don't contain any argument or attribute called disk_type
Also please share the full code of the resource, because we can't replicate the issue with information that only you know. For sensitive information you could change it with examples like:
project = "my-project"
org_id = "1234567890"
email = "[email protected]"
from terraform-provider-google.
hi @ggtisc ,
my bad about the missing details. Here's my sample code for the cluster_autoscaling
block with auto_provisioning_defaults. I wanted to use this block to define the ServiceAccount and KMSEncryptionKey for all node pools. In this block, the disk_type
and disk_size
are indicated as optional but they're set with a Default Value of 100Gb and pd-standard
.
enabled = var.cluster_autoscaling.enabled
dynamic "auto_provisioning_defaults" {
for_each = var.cluster_autoscaling.enabled ? [1] : []
content {
service_account = google_service_account.main_cluster.email
oauth_scopes = local.node_oauth_scopes
boot_disk_kms_key = var.cluster_autoscaling.manual_updated_nap ? var.kms_encryption_key : null
management {
auto_repair = lookup(var.cluster_autoscaling, "auto_repair", false)
auto_upgrade = lookup(var.cluster_autoscaling, "auto_upgrade", false)
}
upgrade_settings {
strategy = "SURGE"
max_surge = 1
max_unavailable = 0
}
}
}
When I tried to enable node-autoprovisioning via gcloud
cli with a config file, the disk_type
and disk_size
are not required. my sample nap-config file below
autoprovisioningLocations:
- us-central1-a
- us-central1-c
bootDiskKmsKey: projects/<name>/locations/us-central1/keyRings/<ring>/cryptoKeys/<key>
imageType: COS_CONTAINERD
serviceAccount: <name>@<project>.iam.gserviceaccount.com
scopes:
- https://www.googleapis.com/auth/logging.write
- https://www.googleapis.com/auth/monitoring
resourceLimits:
- resourceType: 'cpu'
maximum: 100
- resourceType: 'memory'
maximum: 100
from terraform-provider-google.
Thanks!
As you can see in Google Cloud documentation looking for the diskType
field you'll notice that the default disk type
is pd-standard
if you don't set a value for this optional field.
If you're looking to use a hyperdisk-balanced
you need to define it. If you need help on how to use it you could check the documentation here, and the different disk types here.
If after this you continue with issues please share a full code of your google_container_cluster
like this.
from terraform-provider-google.
Related Issues (20)
- `google_service_networking_connection` fails with `project: required field is not set` HOT 2
- google_cloudbuild_trigger:
- google_cloudbuild_trigger uses deprecated workerPool field HOT 4
- Failed on destroy: using a module that creates SVC Projects & Shared VPC Host project "Cannot disable project as a shared VPC host because it has active service projects" HOT 1
- google_dialogflow_cx_security_settings isn't consistently create-able HOT 1
- Issue when adding labels to existing google_compute_global_address HOT 6
- Add allowAutoTiering in google_netapp_storage_pool and TieringPolicy in google_netapp_volume
- google_cloudfunctions2_function - .service_config[0].environment_variables: was null, but now... HOT 1
- google_dns_record_set does not allow empty names HOT 2
- Cannot add server TLS policy to existing google_compute_region_target_https_proxy HOT 1
- google_gkeonprem_bare_metal_admin_cluster does not support bgp_lb_config {} HOT 1
- PAM Entitlement not correctly replaced when approvalWorkflow changed HOT 1
- Error: Provider produced inconsistent result after apply HOT 9
- google_client_config data-source fails to issue token when provider block contains "credentials" attribute HOT 4
- Add deletion_protection field to Project resource HOT 2
- google_network_security_firewall_endpoint_association missing 'network'
- Data sources for Access Context Manager (VPC Service Controls) Supported Services
- Data source for artifact registry locations
- Add adaptive_protection_config.layer_7_ddos_defense_config.threshold_configs block in google_compute_security_policy
- Inconsistent resource_manager_tags behavior on google_container_cluster HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-google.