You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kubernetes Webhook RBAC authentication service written in NodeJS to run as a daemon set across cluster master nodes.
4
+
5
+
- Handles RBAC authentication requests from K8s by checking if the user (token) is valid and exists for a user in Github with the username associated against any relevant Kubernetes rolebindings or clusterrolebinding mappings.
6
+
7
+
## Install and run local dev
8
+
9
+
- npm install (to install required npm packages)
10
+
- npm install -g nodemon (to install nodemon)
11
+
- nodemon (from the repo directory to launch node and invoke server.js) - this is better for local dev iteration than running ```node server.js``` as it will restart the app every time you make changes to files
12
+
13
+
## Docker image building
14
+
15
+
From the root directory of the project (i.e. where the .dockerignore file is, as well as server.js), run:
This will build the Dockerfile in the context of the root project folder, so that the COPY command in the Dockerfile copies in the files from this level (locally).
20
+
21
+
## Docker run local dev
22
+
23
+
docker run node-kubernetes-github-authn:{VERSION TAG}/latest
24
+
25
+
## Pull image down from the public Docker registry
26
+
27
+
Pull the image down using: shoganator/kubernetes-github-authn-node
28
+
29
+
## AWS ECR push Docker images
30
+
31
+
If you want to build and push up to ECR (e.g. for private K8s clusters that don't have access to public docker registry) you can use the following:
Winston is configured to write logs to both the console of the container as well as to a rolling log file under /logs. Please ensure your docker container build includes the /logs directory.
0 commit comments