Giter Site home page Giter Site logo

paulbes / gcp-auth-webhook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecontainertools/gcp-auth-webhook

0.0 0.0 0.0 266 KB

A Kubernetes webhook for automated GCP authentication.

License: Apache License 2.0

Go 89.42% Makefile 6.35% Dockerfile 4.22%

gcp-auth-webhook's Introduction

gcp-auth-webhook

A server that includes:

  • A mutating webhook that will patch any newly created pods in your Kubernetes cluster with GCP credentials (whose location is currently hardcoded to /var/lib/minikube/google_application_credentials.json).
  • A mutating webhook that will patch any newly created service accounts in your Kubernetes cluster with an image pull secret.
  • A thread that monitors namespaces to make sure all namespaces include a image pull secret to be able to pull from GCR and AR.

Setting the environment variable MOCK_GOOGLE_TOKEN to true will prevent using the google application credentials to fetch the token used for the image pull secret. Instead the token will be mocked.

Deployment

Use the image gcr.io/k8s-minikube/gcp-auth-webhook as the image for a Deployment in your Kubernetes manifest and add that to a MutatingWebhookConfiguration. See minikube for details.

Running Locally

The easiest way to run the server locally is:

  • Modify minikube's gcp-auth Deployment image to be local/gcp-auth-webhook:$(VERSION) (replace $(VERSION) with your version)
  • Build and run minikube
  • Run eval $(path_to_minikube/minikube docker-env) and then make local-image to make the image available from within minikube
  • Run path_to_minikube/minikube addons enable gcp-auth to enable the addon, which creates a pod in the gcp-auth namespace with the gcp-auth-webhook server

gcp-auth-webhook's People

Contributors

spowelljr avatar sharifelgamal avatar dependabot[bot] avatar iastewar avatar medyagh avatar klaases avatar akakakakakaa avatar

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.