Working with dynamic provisioning simplifies a few things. Still, a user needs to know which volume type to use. While in many cases that is an important choice, there are often situations when a user might not want to worry about that. It might be easier to use the cluster administrator's choice for volume types and let all claims that do not specify storageClassName get a default volume. We'll try to accomplish that through one of the admission controllers.
Admission controllers are intercepting requests to the Kubernetes API server. We won't go into details of admission controllers since the list of those supported by Kubernetes is relatively big. We are interested only in the DefaultStorageClass which happens to be already enabled in the cluster we created with kops.
DefaultStorageClass admission controller observes creation of...