Skip to content

Support --dns-endpoint in kubectl-wrapper #210

@michaelbannister

Description

@michaelbannister

TL;DR

The internal kubectl-wrapper module uses gcloud container clusters get-credentials. GKE recently introduced DNS-based endpoints which essentially just needs the user to add the flag --dns-endpoint on that command.

Terraform Resources

module "kubectl" {
  source = "terraform-google-modules/gcloud/google//modules/kubectl-wrapper"

  project_id              = var.project_id
  cluster_name            = var.cluster_name
  cluster_location        = var.cluster_location
  use_dns_endpoint        = true # potential new variable
  kubectl_create_command  = "kubectl create deploy nginx --image=nginx"
  kubectl_destroy_command = "kubectl delete deploy nginx"
}

Detailed design

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions