Skip to content

Commit 8b30710

Browse files
authored
Add docs on how to mark StorageClass as default in AWS (#683)
1 parent bf8e8ad commit 8b30710

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

modules/ROOT/nav1.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
* xref:quickstart.adoc[]
22
* xref:kubernetes/index.adoc[]
33
** xref:kubernetes/aks.adoc[]
4+
** xref:kubernetes/eks.adoc[]
45
** xref:kubernetes/gke.adoc[]
56
** xref:kubernetes/huawei-cloud.adoc[]
67
** xref:kubernetes/ibm-cloud.adoc[]
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
= Amazon Elastic Kubernetes Service (EKS)
2+
3+
Please make sure that you have a default StorageClass in your cluster, so that PVCs will be provisioned.
4+
5+
You can list available StorageClasses using the command
6+
7+
```bash
8+
➜ ~ kubectl get storageclasses
9+
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
10+
gp2 (default) kubernetes.io/aws-ebs Delete WaitForFirstConsumer false 9h
11+
```
12+
13+
In case you don't have a StorageClass marked as `default`, you can change a StorageClass to the default using the following command (make sure to update it to your StorageClass name):
14+
15+
```bash
16+
➜ ~ kubectl patch storageclass gp2 -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
17+
```

0 commit comments

Comments
 (0)