January 2019
Intermediate to advanced
484 pages
11h 48m
English
As of December 2018, if you deploy Kubernetes version 1.10, EKS doesn't create storage classes by default. On the other hand, in version 1.11 or above, EKS creates default storage classes automatically. Using the following command, you can check whether a storage class exists or not:
$ kubectl get scNo resources found.
In this case, you need to create a storage class to make a storage class. Note that AWS EBS and EC2 are zone sensitive. Therefore, EBS and EC2 must be located on the same availability zone. Therefore, it's recommended to create StorageClass for each availability zone as follows:
//Storage Class for us-east-1a$ cat storage-class-us-east-1a.yaml kind: StorageClassapiVersion: storage.k8s.io/v1metadata: name: gp2-us-east-1a ...Read now
Unlock full access