Sign inSign up

kepuvv/kube-admission-webhook-server

By kepuvv

•Updated 5 months ago

Simply webhook server example for Kubernetes Dynamic Admission Control

Image
0

1.2K

kepuvv/kube-admission-webhook-server repository overview

Small Flask-based Kubernetes admission webhook example that provides a mutate and validate endpoint for Pods.

Quick start

docker run -d -p 5001:5001 kepuvv/kube-admission-webhook-server:latest

Test /validate with curl (example):

curl -X POST http://127.0.0.1:5001/validate \
  -H "Content-Type: application/json" \
  -d '{"request": {"uid": "1234", "object": {"metadata": {"name": "test-pod"}, "spec": {"containers": [{"name": "app", "image": "nginx", "resources": {"requests": {"cpu": "100m","memory": "128Mi"},"limits": {"cpu": "200m","memory": "256Mi"}}}]}}}}'

Tag summary

Content type

Image

Digest

sha256:e91f7a662…

Size

45.9 MB

Last updated

5 months ago

docker pull kepuvv/kube-admission-webhook-server