Git Product home page Git Product logo

terraform-gke-kubeconfig's Introduction

CircleCI License GitHub release

Terraform GKE Kubeconfig

๐Ÿ“ Terraform module that generates a Kubeconfig for accessing GKE clusters

Motivations

When provisioning GKE clusters, there is no direct (API) way to obtain a kubeconfig, and the only way to do so requires a hard external dependency on the gcloud cli, and by extension, a working python installation.

Additionally, gcloud provides no means of obtaining a kubeconfig that uses certificate or password authentication.

This module streamlines this process by generating a kubeconfig file similar to how gcloud would, without needing it as a dependency. This config can then be passed to other units (kubectl, helm, etc) for usage.

Usage

To use this module, a pre-built release version can be sourced.

module "kubeconfig" {
  source = "https://github.com/joshdk/terraform-gke-kubeconfig/releases/download/0.1.0/module.tgz"
  ...
}

Alternatively, a development version can be sourced instead.

module "kubeconfig" {
  source = "github.com/joshdk/terraform-gke-kubeconfig//module"
  ...
}

To configure inputs for the module, refer to the bundled readme.

License

This code is distributed under the MIT License, see LICENSE.txt for more information.

terraform-gke-kubeconfig's People

Contributors

joshdk avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

zzh8829 metacron

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.