In Kubernetes, dynamic admission controllers let us validate or otherwise change the request objects for creating resources. Most often, these are webhooks that are deployed with Kubernetes itself. In this lab, we create and register one of these webhooks within our Kubernetes cluster.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Deploy Webhook
Create a Kubernetes deployment for the
label-add-webhook
webhook container. Deploy the webhook.- Register Controller
Register the deployed webhook as an admission controller.
- Test
Run the test Pod and ensure the label has been added.