Skip to content

Kubernetes k8s admission controller webhooks setup example with a validatingwebhookconfiguration

License

Notifications You must be signed in to change notification settings

isaaguilar/admissions-controller-webhook-setup

Repository files navigation

Admission Controller Webhooks Setup

This is an example of setting up a ValidatingWebhookConfiguration using a locally (ie same k8s-cluster) hosted webhook server. It will create a fully functional admission-controller that validates namespaces and pods using the namespace/label checking api and the pod/probe checking api respectively.

Setup

Running ./setup.sh which will create the following resources in your cluster:

  1. The TLS secret for the server, admissions-webhook-tls in the admissions namespace.
  2. The admissions-webhook deployment & service in the admissions namespace.
  3. Two validating webhook configurations; pods and namespaces.

Requirements

  • docker
  • envsubst (on OSX can be installed with brew install gettext)

About

Kubernetes k8s admission controller webhooks setup example with a validatingwebhookconfiguration

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published