Creating Storage Classes
In this lesson, we will create the Storage Class defined in the previous lesson and verify it.
Creating the Class
Let’s create our StorageClass.
Press + to interact
kubectl create -f pv/sc.yml
The output shows that the storageclass "fast"
was created
.
Verification
We’ll list the StorageClassses in our cluster.
Press + to interact
kubectl get sc
The output is as follows.
Press + to interact
NAME PROVISIONER AGEdefault kubernetes.io/aws-ebs 58mfast kubernetes.io/aws-ebs 19sgp2 (default) kubernetes.io/aws-ebs 58m
We can see that, this time, we have a new StorageClass.
Creating the Deployment
Let’s take a ...
Access this course and 1400+ top-rated courses and projects.