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

Autopilot Support #835

Closed
cmcga1125 opened this issue Feb 25, 2021 · 11 comments
Closed

Autopilot Support #835

cmcga1125 opened this issue Feb 25, 2021 · 11 comments
Labels
enhancement New feature or request triaged Scoped and ready for work upstream Work required on Terraform core or provider

Comments

@cmcga1125
Copy link
Contributor

So, when can we expect to see some Autopilot Enabled Cluster Terraform :)

@cmcga1125
Copy link
Contributor Author

FWIW: i went digging around this morning the GCP provider and i don't see it mentioned anywhere, but did find this related issue:
hashicorp/terraform-provider-google#8553

@bharathkkb bharathkkb added blocked Blocked by some other work upstream Work required on Terraform core or provider labels Mar 2, 2021
@hcharley
Copy link

hcharley commented Mar 9, 2021

Note that upstream of the GCP provider is the GCP Go library. It was just updated:

hashicorp/terraform-provider-google#8553 (comment)

@cmcga1125
Copy link
Contributor Author

anyone watching this, i was able to manually click a cluster into existence, then use a data object to let us start using it. like this:

data "google_container_cluster" "gke" {
  name     = local.cluster_name
  location = local.region
  project = local.project_id
}
data "google_client_config" "default" {
}
provider "kubernetes" {
  # load_config_file       = false
  host                   = "https://${data.google_container_cluster.gke.private_cluster_config.0.public_endpoint}"
  token                  = data.google_client_config.default.access_token
  cluster_ca_certificate = base64decode(data.google_container_cluster.gke.master_auth.0.cluster_ca_certificate)
}

@paulwilljones
Copy link

hashicorp/terraform-provider-google#8632

@cmcga1125
Copy link
Contributor Author

i'll take a stab at updating the modules here :)

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label May 15, 2021
@morgante morgante added enhancement New feature or request triaged Scoped and ready for work and removed Stale blocked Blocked by some other work labels May 17, 2021
@groksrc
Copy link
Contributor

groksrc commented Jun 16, 2021

FWIW, it looks like when you enable autopilot with the enable_autopilot it prevents you from being able to specify a custom service account. To me that's a bit of a blocker.

@BenCoughlan15
Copy link

FWIW, it looks like when you enable autopilot with the enable_autopilot it prevents you from being able to specify a custom service account. To me that's a bit of a blocker.

Have you tried using workload identity, and SA's per service?

@dahlmo
Copy link

dahlmo commented Sep 9, 2021

Seems support for this was added in v3.63.0?

https://github.com/hashicorp/terraform-provider-google/releases/tag/v3.63.0

@cvega77
Copy link

cvega77 commented Oct 26, 2021

FWIW, it looks like when you enable autopilot with the enable_autopilot it prevents you from being able to specify a custom service account. To me that's a bit of a blocker.

There is a bug open for this: hashicorp/terraform-provider-google#9505 but it seems that hasn't been updated in a while.

@cmcga1125
Copy link
Contributor Author

This is live!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triaged Scoped and ready for work upstream Work required on Terraform core or provider
Projects
None yet
Development

No branches or pull requests

9 participants