Kubernetes admission controllers act on request by validating their parameters or modifying (i.e., mutating) them to meet certain requirements or criteria. In this hands-on lab, you will be tasked with enabling and disabling specific admission controllers in order to take advantage of the functionality they provide.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Enable and Disable Admission Controllers
- Modify the
kube-apiserver.yaml
file with the following updates:- Ensure that the following admission controllers are enabled:
NodeRestriction
,NamespaceAutoProvision
,AlwaysPullImages
, andPodSecurity
. - Ensure that the following admission controllers are disabled:
MutatingAdmissionWebhook
,ValidatingAdmissionWebhook
, andDenyServiceExternalIPs
. - Save and quit the
kube-apiserver.yaml
file.
- Ensure that the following admission controllers are enabled:
- Validate that the
kube-apiserver
pod redeploys successfully by issuing a simplekubectl
command (the pod can take several seconds to redeploy).
- Modify the