Skip to content

Commit

Permalink
Merge pull request 2i2c-org#4881 from sgibson91/docs/expandable-stora…
Browse files Browse the repository at this point in the history
…ge-class

Ensure volume expansion is permitted when creating a new AWS cluster
  • Loading branch information
sgibson91 authored Sep 24, 2024
2 parents 2bedb50 + d206f01 commit 46d605b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/hub-deployment-guide/new-cluster/new-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -679,3 +679,17 @@ kubectl get node
It should show you the provisioned node on the cluster if everything works out ok.
````
`````

## AWS only: Expandable storage class

The default storage class that is created when we deploy a cluster to AWS does permit auto-expansion of persistent volumes.
This can cause problems when we want to expand the size of a disk, say used by Prometheus to store metrics data.
We will therefore patch the default storage class to permite auto-expansion.

```bash
# Gain k8s access to the cluster
deployer use-cluster-credentials $CLUSTER_NAME

# Patch the storage class
kubectl patch storageclass gp2 --patch '{\"allowVolumeExpansion\": true}'
```

0 comments on commit 46d605b

Please sign in to comment.