...

/

Creating Storage Classes

Creating Storage Classes

Learn to create the StorageClass defined in the previous lesson and verify it.

Creating the class

Let’s create our StorageClass:

kubectl create -f pv/sc.yml

The output shows that the storageclass "fast" was created.

Verification

Let’s list the StorageClasses in our cluster.

kubectl get sc

The output is as follows:

NAME PROVISIONER AGE
default kubernetes.io/aws-ebs 58m
fast kubernetes.io/aws-ebs 19s
gp2 (default) kubernetes.io/aws-ebs 58m

We can see that, this time, we have a new StorageClass.

Creating the Deployment

Let’s look at yet another Jenkins definition:

cat pv/jenkins-sc.yml

The output (limited to ...