Kubernetes dynamic admission controllers let us validate or mutate our Kubernetes request objects to either approve, deny, or change the object upon creation. In this hands-on lab, we review a provided admission controller that add labels to a resource and then create the needed configuration to test it. We’ll also see if we can update the deployment code to use our own labels.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Update Deployment
Update the deployment to use the desired labels when the webhook is run.
- Create Test Resources
Create a test pod and test deployment.
- Test
Deploy the webhook and test.