Question - When creating an Autopilot gke cluster, how can we define a service account for the nodes? We’ve specified a custom service account in our Terraform as such:
service_account = "my_sa@ ..."
}```
However, when we look at the resulting GKE cluster the default SA is used instead of the custom one. There's been several opened issues regarding this and none of workarounds have worked for me. e,g, <https://github.com/hashicorp/terraform-provider-google/issues/9505>
Maybe try too?
I’ve never used autopilot, but from what I can see from https://github.com/GoogleCloudPlatform/magic-modules/pull/6733 you’re supposed to not set it in node_config, and then set the SA you’d like to use in the cluster_autoscaling settings?
in your example above, do you have a literal "" in auto_provisioning_defaults.service_account, or did you just remove the value when posting it here?