MagaluCloud / terraform-provider-mgc

Magalu Cloud terraform provider
https://docs.magalu.cloud/docs/terraform/overview
7 stars 1 forks source link

Kubeconfig no Terraform #24

Closed lfpicoloto1 closed 3 months ago

lfpicoloto1 commented 4 months ago

Permitir utilizar o Kubeconfig pelo terraform

Exemplo:

data "google_container_cluster" "primary" {
  name     = "my-gke-cluster"
  location = "us-central1-a"
}
data "google_client_config" "default" {}

provider "kubernetes" {
  host                   = data.google_container_cluster.primary.endpoint
  cluster_ca_certificate = base64decode(data.google_container_cluster.primary.master_auth[0].cluster_ca_certificate)
  token                  = data.google_client_config.default.access_token
}
lfpicoloto1 commented 3 months ago

Lançado na versão #30