From the course: Certified Kubernetes Administrator (CKA) Cert Prep (2024)

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Using StorageClass

Using StorageClass

- In this video, I'd like to tell you about StorageClass. So, StorageClass is an API resource that allows storage to be automatically provisioned. And StorageClass can also be used as a property that connects PVC and PV without using an actual StorageClass resource. If you create a PVC and you want to bind a PVC to a PV where no StorageClass is available, actually, using that property is mandatory. Multiple StorageClass resources can coexist in the same cluster to provide access to different types of storage, and that makes it easy to connect some applications to your fast storage and other applications to your slow storage. If you wanted to work automatically, one StorageClass must be set as default. The fancy way to do so is by using the kubectl patch command. We haven't seen that command before, so let's give it some attention. kubectl patch storageclass. In that part, storageclass is the name of the resource. mysc is the name of your specific StorageClass that you want to edit…

Contents