Skip to content

A Kubernetes Admission Controller to inject node labels as environment variables for Pods.

License

Notifications You must be signed in to change notification settings

shopstic/k8s-env-injector

Repository files navigation

Kubernetes ENV Injector

CI License

The purpose of k8s-env-injector is to inject node labels as environment variables to pods in a selected namespace.

Local development

Enter shell with ./shell.sh and then watch for changes with ./cli.sh watch.

Deployment

Helm chart is provided in the charts directory.

Using Helm chart

Values that always need to be specified:

  • mutationWebhook.namespaceSelector. It should select only the namespace where k8s-env-injector is deployed to.