May 2018
Intermediate to advanced
554 pages
13h 51m
English
We've learned about Volumes in Chapter 2, Walking through Kubernetes Concepts. We know PersistentVolumeClaims is used to abstract storage resources from users. It can dynamically provision the PersistentVolume via StorageClass. The default provisioner in StorageClass in AWS CloudProvider is Elastic Block Storage Service (aws-ebs). Whenever you request a PVC, aws-ebs provisioner will create a volume in AWS EBS.
Let's check the storage class in our cluster:
// list all storageclass# kubectl get storageclassNAME PROVISIONER AGEdefault kubernetes.io/aws-ebs 2hgp2 (default) kubernetes.io/aws-ebs 2hIn this recipe, we'll reuse the PVC example we mentioned in Chapter 2-6:# cat chapter2/2-6_volumes/2-6-7_pvc.yaml ...
Read now
Unlock full access