Authenticate users to Kubernetes based on Github team membership.
You can run the auth server in Docker by using the following command:
docker run --publish 8989:8989 --env GITHUB_ORG=CommercialTribe --env GITHUB_TEAM=Engineering CommercialTribe/github-kube-auth
The following environment variables are supported for configuration:
| ENV Var | Description | Default |
|---|---|---|
GITHUB_ORG | The GitHub organization of the team you wish to authenticate users against. | |
GITHUB_TEAM | The GitHub team that you wish to authenticate users against. | |
PORT | The port to start the HTTP server on. | 8989 |
The user should create a personal access token with the org:read and user:email scopes. The user should then use the following command to setup kubectl.
kubectl config set-credentials [github-username] --token=[access-token]
See CONTRIBUTING for details.
Content type
Image
Digest
Size
246.8 MB
Last updated
almost 10 years ago
docker pull commercialtribe/kube-auth-github