Skip to content

Commit

Permalink
Merge branch 'main' of github.com:hoeg/bluepill
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoeg committed Apr 29, 2024
2 parents 793a084 + 4106d90 commit c733e7c
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# bluepill

Mutating admission controller for kubernetes that ensures restricted ingress.

![alt text](https://github.com/hoeg/bluepill/blob/main/pill.jpg?raw=true)
![alt text](https://github.com/hoeg/bluepill/blob/main/media/pills.png?raw=true)

## Configuration

The hook services utilizes a mix of environment variables and files for configuration.


### BLUEPILL_HTTP_PORT

Port that the webhook will listen on, defaults to `8443`.
Expand Down Expand Up @@ -42,4 +42,16 @@ nameN=ipN

### BLUEPILL_ENFORCEMENT_ENFORCE

Indicates if the we should mutate or just log.
Indicates if the we should mutate or just log.

## Deployment

The `deploy/` folder contains all resources to get up and running except the secret containing the self signed certificate.

`./setup-kind` prepares a cluster where the functionality can be tested by running:

```
kubectl apply -f deploy/admission-webhook.yaml && kubectl apply -f deploy/test/ingress-blue.yaml
```

and then inspecting the ingress resource afterwards.

0 comments on commit c733e7c

Please sign in to comment.