Untitled

Validating Admission Controller

NamespaceExists admission controller rejects a request to create a resource in a namespace that doesn’t exist. This way, it validates the request.

Untitled

Mutating Admission Controller

NamespaceAutoProvision is another admission controller which is not enabled by default. It creates the namespace automatically if a request is made to create a resource in that namespace.

DefaultStorageClass admission controller observes the creation of PVC objects that do not request any specific storage class and automatically adds a default storage class to them. This way it modifies the request.

Note: NamespaceExists and NamespaceAutoProvision admission controllers have now been deprecated and replaced with NamespaceLifecycle admission controller. It makes sure that requests to a non-existent namespace is rejected and that the default namespaces such as defaultkube-system and kube-public cannot be deleted.

Commands