Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create an Autopilot cluster with the CSI driver enabled using terraform #60

Closed
songjiaxun opened this issue Sep 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@songjiaxun
Copy link
Contributor

Symptom

When create an Autopilot cluster with the CSI driver enabled using terraform, you will get the following error:

│ Error: Conflicting configuration arguments
│ 
│   with module.cluster.google_container_cluster.cluster,
│   on ../../../DH9514_thdgit/tf-mod-gke-cluster/main.tf line 44, in resource "google_container_cluster" "cluster":
│   44:     gcs_fuse_csi_driver_config {
│ 
│ "addons_config.0.gcs_fuse_csi_driver_config": conflicts with enable_autopilot

See hashicorp/terraform-provider-google#15817 for details.

Workaround

You can create an Autopilot cluster with the CSI driver disabled, and then run the additional step below to enable CSI driver.

gcloud container clusters update ${CLUSTER} --update-addons GcsFuseCsiDriver=ENABLED --region=${REGION}

Fix

This PR GoogleCloudPlatform/magic-modules#8998 will fix the issue.

@songjiaxun songjiaxun added the bug Something isn't working label Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant