Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A Kubernetes webhook for automated GCP authentication.

License

NotificationsYou must be signed in to change notification settings

GoogleContainerTools/gcp-auth-webhook

Repository files navigation

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 variableMOCK_GOOGLE_TOKEN totrue 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 imagegcr.io/k8s-minikube/gcp-auth-webhook as the image for a Deployment in your Kubernetes manifest and add that to a MutatingWebhookConfiguration. Seeminikube for details.

Running Locally

The easiest way to run the server locally is:

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

About

A Kubernetes webhook for automated GCP authentication.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors8


[8]ページ先頭

©2009-2025 Movatter.jp