Skip to content

Commit

Permalink
Add docs on how to mark StorageClass as default in AWS (#683)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernauer authored Nov 27, 2024
1 parent bf8e8ad commit 8b30710
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/ROOT/nav1.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
* xref:quickstart.adoc[]
* xref:kubernetes/index.adoc[]
** xref:kubernetes/aks.adoc[]
** xref:kubernetes/eks.adoc[]
** xref:kubernetes/gke.adoc[]
** xref:kubernetes/huawei-cloud.adoc[]
** xref:kubernetes/ibm-cloud.adoc[]
Expand Down
17 changes: 17 additions & 0 deletions modules/ROOT/pages/kubernetes/eks.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
= Amazon Elastic Kubernetes Service (EKS)

Please make sure that you have a default StorageClass in your cluster, so that PVCs will be provisioned.

You can list available StorageClasses using the command

```bash
➜ ~ kubectl get storageclasses
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
gp2 (default) kubernetes.io/aws-ebs Delete WaitForFirstConsumer false 9h
```

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):

```bash
➜ ~ kubectl patch storageclass gp2 -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
```

0 comments on commit 8b30710

Please sign in to comment.